Template:TSLR-bot
From TrainzOnline
- 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.
- This template closes a <div style=" ..."> HTML block initiated by {{TSLR}} which calls {{ORP-top}} with an alternate message.
- It will also auto-categorize the page to the category:Trainz Script reference pages.
- 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.)
{{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:
- {{ORP-bot}} - {{ORP-bot}} on KIND Engine will alphabetize the article under 'K', just as a normal [[category:Trainz reference pages]] would do.
- {{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}}
- 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.
- 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.