Template:TSLR-bot

From TrainzOnline
Jump to: navigation, search
Purpose1
This template is used with {{TSLR-top}} to set off official 'N3V Wiki Trainz Script reference pages' from user maintained pages on the N3V TrainzOnline Wiki.


  • It can be given the {{{1}}} default parameter (same as setting the explicit parameter call: |1=something) to alter the sort order of the reference page as listed in that category.

Example based on {{ORP-bot}}: (the coding is identical but for the auto-category, use {{ORP-end}} for any page '-bot' mbox template pair where a sub-categorization is needed.)

  1. {{ORP-end|ABC}} will list the page under the A pages, before any page 'Aeroplane' but after 'Aardvark'.

category, just like {{ORP-bot}}.

  • Sorting Difference: {{ORP-bot|ABC}} will list the page under the A pages, before any page 'Aeroplane' but after 'Aardvark'.
  • This is called a pipetrick, and it applies to all category listings, and especially to all '-bot' templates listed in Category:mbox templates.

Contrasting Examples:

  1. {{ORP-bot}} - {{ORP-bot}} on KIND Engine will alphabetize the article under 'K', just as a normal [[category:Trainz reference pages]] would do.
  2. {{ORP-end}} - {{ORP-end}} on KIND Engine will not categorize the page at all. ORP-end does not auto-categorize, unless given an explicit category (would normally be a sub-category) by {{ORP-end|cat=category-name}}
    1. so... {{ORP-end|Engine}} on KIND Engine will alphabetize the article under 'E', if and only if cat=category-name is also defined. In the given example, Engine has no effect, so the same result as case 2.
    2. and, {{ORP-end|cat=category-name|Engine}} on KIND Engine will alphabetize the article under E, just as a normal [[category:category-name|Engine]] call would do.
Personal tools