Template:FUN-bot

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(genesis)
 
m
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 +
<div style="width:100%;background:#9FdFb4; font-face:Verdana,Garamond,Times,Serif,Arial; font-size:10pt;">
 
<noinclude>
 
<noinclude>
<div style="width:100%;background:#F5FFFA; font-face:Verdana, Garamond,Times,Serif,Arial; font-size:10pt;">
+
 
+
 
;Purpose
 
;Purpose
:This template is used with {{Tl|FUN-top}} to set off mixed user written/''user maintained pages'' and semi-official N3V staff written Wiki pages AIMED AT HELPING BEGINNERS, Trainz Newcomers, on the N3V TrainzOnline Wiki.
+
:This template is used with {{Tl|FUN-top}} to set off Trainz Beginner oriented and organized TrainzOnline Wiki pages from ''[[:category:Trainz reference pages|Trainz reference classed topics]]'' on the N3V TrainzOnline Wiki.
* This template closes a <nowiki><div style=" ..."></nowiki> HTML block initiated by {{Tl|FUN-top}} or by {{Tl|FUN-beg}}.
+
* It will also auto-categorize the page to the [[:category:Trainz fundamentals pages]], unlike {{tl|FUN-end}}, which must be given an explicit category link, if any.
+
* It can be given the <code><nowiki>{{{1}}}</nowiki></code> (default 1st pass parameter) to alter the sort order of the reference page as listed in that category.
+
'''Example:'''
+
#<code><nowiki>{{FUN-bot|ABC}}</nowiki></code> will list the page under the A pages, before any page 'Aeroplane' but after 'Aardvark'.
+
  
* Sorting Difference: <code><nowiki>{{FUN-bot|ABC}}</nowiki></code> will list the page under the A pages, before any page 'Aeroplane' but after 'Aardvark'.
+
* It will also auto-categorize the page to the [[:category:Trainz fundamentals pages]].
'''Contrasting Examples:'''
+
# <nowiki> {{FUN-end}}</nowiki> on [[KIND Engine]] will alphabetize the article under ''''K'''', just as a normal <nowiki>[[category:Trainz reference pages]]</nowiki> would do.
+
# <nowiki> {{FUN-bot}}</nowiki> on [[KIND Engine]] ''will not categorize the page at all''.
+
# <nowiki> {{FUN-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> {{FUN-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.
+
  
 +
* It can be given the <code><nowiki>{{{1}}}</nowiki></code> default parameter to alter the sort order of the reference page as listed in that category.
 +
&nbsp;
 +
'''[[pipetrick]] Examples''' on a theoretical page title: "Session editing in Surveyor":
 +
#<code><nowiki>{{FUN-bot||ABC}}</nowiki></code> ('|ABC' is called a pipe trick) will list the page under the A pages, before any page 'Aeroplane' but after 'Aardvark'.<!--
 +
--- --- --- --- --->
 +
#<code><nowiki>{{FUN-bot|editing}}</nowiki></code> ('|editing' is called a pipe trick) will list the page under the ''''E'''' pages, before any page 'Errors' but after 'Ears'.<!--
 +
--- --- --- --- --->
 +
* Sorting Difference: <code><nowiki>{{FUN-bot|ABC}}</nowiki></code> will list the page under the A pages, before any page 'Aeroplane' but after 'Aardvark'.<!--
 +
--- --- --- --- --->
 +
'''Contrasting Examples:'''<!--
 +
--- --- --- --- --->
 +
# <code><nowiki> {{FUN-bot}}</nowiki></code> on [[Help:Surveyor]] will alphabetize the article under ''''H'''', just as making a normal but ''long winded'' {{h|Links|Internal Category Link}} would do. (<code><nowiki>[[Category:Trainz fundamentals pages|{{PAGENAME}}]]</nowiki></code>)<!--
 +
--- --- --- --- --->
 +
# <code><nowiki> {{FUN-bot|inhibit=yes}}</nowiki></code> on [[Help:Driver]] ''will not categorize the page at all''.{{FAB-todo|ONLY IF ParserFunctions become available!}}<!--
 +
--- --- --- --- --->
 +
# <code><nowiki> {{FUN-bot|Engine}}</nowiki></code> on [[Help:Surveyor]] will alphabetize the article under ''''E''''.<!--
 +
--- --- --- --- --->
 +
# <code><nowiki> {{FUN-bot|cat=category-name|Engine}}</nowiki></code> on [[Help:Session]] will alphabetize the article under '''E''', but not on the  [[:category:Trainz fundamentals pages|default category 'Trainz fundamentals pages']] just as a normal <code><nowiki>[[category:category-name|Engine]]</nowiki></code> line would do.<!--
 +
---
 +
--- --- --- --- --->
 
[[Category:Self-documenting templates|{{PAGENAME}}]]
 
[[Category:Self-documenting templates|{{PAGENAME}}]]
 
[[Category:Trainz fundamentals pages|*{{PAGENAME}}]]
 
[[Category:Trainz fundamentals pages|*{{PAGENAME}}]]
 
[[Category:Auto-categorizing templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Auto-categorizing templates|{{PAGENAME}}]]</noinclude>
</div><includeonly>[[Category:Trainz fundamentals pages|{{{1|{{PAGENAME}}}}}]]</includeonly>
+
<includeonly>[[Category:Trainz fundamentals pages|{{{1|{{PAGENAME}}}}}]]</includeonly></div>

Latest revision as of 10:52, 2 December 2015


Purpose
This template is used with {{FUN-top}} to set off Trainz Beginner oriented and organized TrainzOnline Wiki pages from Trainz reference classed topics on the N3V TrainzOnline Wiki.
  • It can be given the {{{1}}} default parameter to alter the sort order of the reference page as listed in that category.

  pipetrick Examples on a theoretical page title: "Session editing in Surveyor":

  1. {{FUN-bot||ABC}} ('|ABC' is called a pipe trick) will list the page under the A pages, before any page 'Aeroplane' but after 'Aardvark'.
  2. {{FUN-bot|editing}} ('|editing' is called a pipe trick) will list the page under the 'E' pages, before any page 'Errors' but after 'Ears'.
  • Sorting Difference: {{FUN-bot|ABC}} will list the page under the A pages, before any page 'Aeroplane' but after 'Aardvark'.

Contrasting Examples:

  1. {{FUN-bot}} on Help:Surveyor will alphabetize the article under 'H', just as making a normal but long winded Internal Category Link would do. ([[Category:Trainz fundamentals pages|{{PAGENAME}}]])
  2. {{FUN-bot|inhibit=yes}} on Help:Driver will not categorize the page at all.
  3. {{FUN-bot|Engine}} on Help:Surveyor will alphabetize the article under 'E'.
  4. {{FUN-bot|cat=category-name|Engine}} on Help:Session will alphabetize the article under E, but not on the default category 'Trainz fundamentals pages' just as a normal [[category:category-name|Engine]] line would do.
Personal tools