Template:T-aids

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(evolve)
(tweak)
Line 1: Line 1:
<noinclude>{{Doc-page-head|border=3px solid blue}}
+
{{Doc-page-head|border=3px solid blue}}
 
;usage
 
;usage
 
:If the first auto-parameter <code><nowiki> {{{1}}} </nowiki></code> is given,  
 
:If the first auto-parameter <code><nowiki> {{{1}}} </nowiki></code> is given,  
 
:that will also auto-categorize the <u>''calling template''</u> to  '''<code><nowiki> [[Category:{{{1}}} ]] </nowiki></code>'''.
 
:that will also auto-categorize the <u>''calling template''</u> to  '''<code><nowiki> [[Category:{{{1}}} ]] </nowiki></code>'''.
 +
<noinclude>
 +
;The purpose of this template documentation page is to provide the common documentation message below for a number of templates.<hr/>
 +
&nbsp;</noinclude>
 +
;Common usage
 +
:This template is one of a few {{cl|typing-aid templates}} which are used primarily in the Template, Help and Main {{h|Namespaces}}.
 +
&nbsp;
 +
* When used in Template pages, they must be located inside the template documentation's<br/><code> &lt;noinclude> {{...}} &lt;/noinclude> </code>block to automatically add the template to the [[:category:{{{1|Typing-aid templates}}}]] page.<!--
 +
------><br/>
 +
* <div style="width:75%;">When used in the any namespaces, each will take the parameter |cat= to override the default category listed below, and the 1st default parameter <tt><code><nowiki>{{{1}}}</nowiki></code></tt> to {{h|pipetrick}} the page to the string given by <tt><code>|1=string</code></tt> (the equivalent call form).
 +
<br/>
  
;The purpose of this template is to provide the common documentation message below for a number of templates.<hr/>
 
 
</noinclude><includeonly>
 
;usage</includeonly>
 
:This template is a typing-aid template which is used only in the Template Namespace inside the template documentation's<br/><code> &lt;noinclude> {{...}} &lt;/noinclude> </code>block to automatically add the template to the [[:category:{{{1|Typing-aid templates}}}]] page.<!--
 
 
-->
 
 
{| style="border:2px solid blue;"
 
{| style="border:2px solid blue;"
 
|
 
|
{| bgcolor="#f9f9f9" border="0" cellspacing="2" cellpadding="3em"<!--
+
{| bgcolor="#f9f9f9" border="1" cellspacing="2" cellpadding="1.3em"<!--
  
  --> style="width:auto; float:center; padding:.3em;"
+
  --> style="width:auto; float:center; padding:.3em;"<!--
</noinclude><!--
+
  
 
  -->
 
  -->
|-bgcolor=""
+
|-bgcolor="white"
 
|colspan="3"|
 
|colspan="3"|
{| style="background:#ffffaa; border:1px solid blue; text-align:left;"
+
{| style="background:#ffffaa; border:1px solid blue; text-align:left;" cellpadding="3" cellspacing="1" border=1
!This is one of '''series of TrainzOnline typing-aid and auto-categorization templates'''<br/> which share the characteristics<br/>{{bull}} a four letter mnemonic identifier <br/>{{bull}}followed by <code>capital 'T'</code> as a middle character, <br/>{{bull}}then another mnemonic as suffix.
+
!
 +
:This is one of '''series of TrainzOnline typing-aid and auto-categorization templates'''<br/>most of which share the characteristics<br/>{{bull}} a four letter mnemonic identifier <br/>{{bull}}followed by <code>capital 'T'</code> as a middle character, <br/>{{bull}}then another mnemonic as suffix.
 
|}
 
|}
 
|-
 
|-
Line 29: Line 32:
 
| <nowiki>{{</nowiki>[[:Template:FormTemp| FormTemp]]<nowiki>}}</nowiki> || &nbsp;corresponding auto-category is &nbsp;||[[:Category:Formatting templates]]
 
| <nowiki>{{</nowiki>[[:Template:FormTemp| FormTemp]]<nowiki>}}</nowiki> || &nbsp;corresponding auto-category is &nbsp;||[[:Category:Formatting templates]]
 
|-
 
|-
 +
 +
| <nowiki>{{</nowiki>[[:Template:HW2FUN|HW2FUN]]<nowiki>}}</nowiki> || &nbsp;corresponding auto-category is &nbsp;||[[:Category:How-to fundamentals]]
 +
|-
 +
 +
| <nowiki>{{</nowiki>[[:Template:LinkTemp| LinkTemp]]<nowiki>}}</nowiki> || &nbsp;corresponding auto-category is &nbsp;||[[:Category:internal link templates]]
 +
|-
 +
 
| <nowiki>{{</nowiki>[[:Template:LinkTnav| LinkTnav]]<nowiki>}}</nowiki> || &nbsp;corresponding auto-category is &nbsp;||[[:Category:Link and Navigation templates]]
 
| <nowiki>{{</nowiki>[[:Template:LinkTnav| LinkTnav]]<nowiki>}}</nowiki> || &nbsp;corresponding auto-category is &nbsp;||[[:Category:Link and Navigation templates]]
 
|-
 
|-
Line 40: Line 50:
  
 
  --><includeonly>{{#if:{{{1|}}}|[[Category:{{{1}}}|{{{2|{{PAGENAME}}}}}]] }} </includeonly>
 
  --><includeonly>{{#if:{{{1|}}}|[[Category:{{{1}}}|{{{2|{{PAGENAME}}}}}]] }} </includeonly>
</div><noinclude>
+
</div>
 
[[Category:Self-documenting templates|{{PAGENAME}}]]
 
[[Category:Self-documenting templates|{{PAGENAME}}]]
 +
<noinclude>
 
[[Category:Template documentation pages|{{PAGENAME}}]]
 
[[Category:Template documentation pages|{{PAGENAME}}]]
  
 
</noinclude>
 
</noinclude>

Revision as of 23:58, 10 July 2013

usage
If the first auto-parameter {{{1}}} is given,
that will also auto-categorize the calling template to [[Category:{{{1}}} ]] .
The purpose of this template documentation page is to provide the common documentation message below for a number of templates.

 

Common usage
This template is one of a few typing-aid templates which are used primarily in the Template, Help and Main Namespaces.

 

  • When used in Template pages, they must be located inside the template documentation's
    <noinclude> … </noinclude> block to automatically add the template to the category:Typing-aid templates page.
  • When used in the any namespaces, each will take the parameter |cat= to override the default category listed below, and the 1st default parameter {{{1}}} to pipetrick the page to the string given by |1=string (the equivalent call form).


This is one of series of TrainzOnline typing-aid and auto-categorization templates
most of which share the characteristics
 • a four letter mnemonic identifier
 • followed by capital 'T' as a middle character,
 • then another mnemonic as suffix.
{{ AutoTcat}}  corresponding auto-category is   Category:Auto-categorizing templates
{{ FormTemp}}  corresponding auto-category is   Category:Formatting templates
{{HW2FUN}}  corresponding auto-category is   Category:How-to fundamentals
{{ LinkTemp}}  corresponding auto-category is   Category:internal link templates
{{ LinkTnav}}  corresponding auto-category is   Category:Link and Navigation templates
{{MainTemp}}  corresponding auto-category is   Category:Maintenance templates
{{TypeTaid}}  corresponding auto-category is   Category:Typing-aid templates
{{SelfTdoc}}  corresponding auto-category is   Category:Self-documenting templates
Views
Personal tools
Navigation
Toolbox