Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
search_engine_ranker:macro_guide [2017-11-17 08:23] – [#trans ... #notrans] svensearch_engine_ranker:macro_guide [2018-10-22 16:34] sven
Line 32: Line 32:
 Output 1: For a German Site it will write: Hallo Fremder!\\  Output 1: For a German Site it will write: Hallo Fremder!\\ 
 Output 2: For a Site ending with .com it will write: Hello Stranger!\\  Output 2: For a Site ending with .com it will write: Hello Stranger!\\ 
 +
 +
 +Another syntax is the following where all variations are used but in a random order.
 +
 +Example: <color red>%%~{%%</color>Sentence 1.<color green>%%|%%</color>Sentence 2.<color green>%%|%%</color>Sentence 3.<color red>}</color>\\ 
 +Output 1: Sentence 1. Sentence 3. Sentence 2.\\ 
 +Output 2: Sentence 3. Sentence 1. Sentence 2.\\ 
 +Output 3: Sentence 2. Sentence 2. Sentence 1.\\ 
  
  
Line 45: Line 53:
 |NP|Same as “N” but reads the number of lines not randomly but one after the other.| |NP|Same as “N” but reads the number of lines not randomly but one after the other.|
  
-You can also use a syntax like (<min lines>,<max lines>) or [<min lines>..<max lines>] for the parameter <number of lines>. This would not always use the same number of lines but chose a random one between the given range (e.g. #file_links[names.dat,(2,10),S]).+You can also use a syntax like (<min lines>,<max lines>) or [<min lines>..<max lines>] for the parameter <number of lines>. This would not always use the same number of lines but choose a random one between the given range (e.g. #file_links[names.dat,(2,10),S]).
 Another alternative is to use a directory instead of a a file. Than a random file from that directory is used. Another alternative is to use a directory instead of a a file. Than a random file from that directory is used.