Template:ORP-end

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(Fabartus moved page Template:ORP-end to Template:ORP-bot: Using top-bot for article spaces, beg-end for category spaces, which should not have auto-categorization to the references pages category.)
 
(complete the set)
Line 1: Line 1:
#REDIRECT [[Template:ORP-bot]]
+
<noinclude>
 +
{{ORP-top}}<!--
 +
<div style="width:100%;background:#F5FFFA; font-face:Verdana, Garamond,Times,Serif,Arial; font-size:10pt;">
 +
-->
 +
 +
;Purpose
 +
:This template is used with {{Tl|ORP-beg}} to set off official N3V Wiki '''category''' pages indexing article space official reference pages making them distinct from ''user maintained pages'' on the N3V TrainzOnline Wiki.
 +
&nbsp;
 +
* This template closes a <nowiki><div style=" ..."></nowiki> HTML block initiated by {{Tl|ORP-top}} or {{tl|ORP-beg}} templates at page top.
 +
** The {{Tl|ORP-beg}} template is used to NOT assert and move the table of contents to the right margin
 +
** whereas the {{Tl|ORP-top}} ''always will''.
 +
<hr/>
 +
'''Notes:'''
 +
* This template is a variation on {{Tl|ORP-bot}} which ''will also auto-categorize'' the page to<br/> the [[:category:Trainz reference pages]], whereas ''this variant'' '''does not''' do any auto-categorization...<br/> unless the parameter <code>|cat=''something''</code> is defined explicitly.
 +
** When and if <code>|cat=''something''</code> is defined, this template can also be given the <code><nowiki>{{{1}}}</nowiki></code> default parameter to alter the sort order of the reference page as listed in that category, just like {{tl|ORP-bot}}.
 +
** Sorting Difference: <code><nowiki>{{ORP-bot|ABC}}</nowiki></code> will list the page under the A pages, before any page 'Aeroplane' but after 'Aardvark'.
 +
'''Example:'''
 +
# <nowiki> {{ORP-end}}</nowiki> on [[KIND Engine]] will alphabetize the article under ''''K'''', just as a normal <nowiki>[[category:Trainz reference pages]]</nowiki> would do.
 +
# <nowiki> {{ORP-bot}}</nowiki> on [[KIND Engine]] ''will not categorize the page at all''.
 +
# <nowiki> {{ORP-bot|Engine}}</nowiki> 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.
 +
#  <nowiki> {{ORP-bot|cat=category-name|Engine}}</nowiki> on [[KIND Engine]] will alphabetize the article under '''E''', just as a normal <nowiki>[[category:category-name|Engine]]</nowiki> call would do.
 +
 
 +
{{FAB-todo|When parser functions are made available, add the if-then-else logic at page bottom for the conditional auto-category}}
 +
[[Category:Self-documenting templates|{{PAGENAME}}]]
 +
[[Category:Trainz reference pages|*{{PAGENAME}}]]
 +
[[Category:Auto-categorizing templates|{{PAGENAME}}]]</noinclude>
 +
</div><includeonly><!-- {{#if:cat[[Category:Trainz reference pages|{{{1|{{PAGENAME}}}}}]] ---
 +
---></includeonly>

Revision as of 16:39, 1 July 2013


Purpose
This template is used with {{ORP-beg}} to set off official N3V Wiki category pages indexing article space official reference pages making them distinct from user maintained pages on the N3V TrainzOnline Wiki.

 

  • This template closes a <div style=" ..."> HTML block initiated by {{ORP-top}} or {{ORP-beg}} templates at page top.
    • The {{ORP-beg}} template is used to NOT assert and move the table of contents to the right margin
    • whereas the {{ORP-top}} always will.

Notes:

  • This template is a variation on {{ORP-bot}} which will also auto-categorize the page to
    the category:Trainz reference pages, whereas this variant does not do any auto-categorization...
    unless the parameter |cat=something is defined explicitly.
    • When and if |cat=something is defined, this template can also be given the {{{1}}} default parameter to alter the sort order of the reference page as listed in that 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'.

Example:

  1. {{ORP-end}} on KIND Engine will alphabetize the article under 'K', just as a normal [[category:Trainz reference pages]] would do.
  2. {{ORP-bot}} on KIND Engine will not categorize the page at all.
  3. {{ORP-bot|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.
  4. {{ORP-bot|cat=category-name|Engine}} on KIND Engine will alphabetize the article under E, just as a normal [[category:category-name|Engine]] call would do.

</div>

Personal tools