Template:Documentation subpage

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(genesis, port unchanged from WikiMedia+cat w/{{Mediawiki})
 
(defang -- needs parserfunction {{#switch: and many {{#if: conditionals)
Line 1: Line 1:
<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
+
<div style="background:#808Ec0; color:white; text-align:center; float:center; font-size:145%; padding:6px 0 6px 0;"><big><!--XXX<xincludeonly>
   | <!-- doc page -->
+
{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
</includeonly>{{
+
   | <XXX!-- doc page --XXX><div style:"background:#90EE90;">
 +
</XXXincludeonly>{{
 
     #ifeq: {{{doc-notice|show}}} | show
 
     #ifeq: {{{doc-notice|show}}} | show
 
     | {{mbox
 
     | {{mbox
Line 7: Line 8:
 
       | image = [[File:Edit-copy green.svg|40px]]
 
       | image = [[File:Edit-copy green.svg|40px]]
 
       | text =  
 
       | text =  
'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.<br />It contains usage information, [[Wikipedia:Categorization|categories]], [[w:Help:Interlanguage links|interlanguage links]] and other content that is not part of the original {{ #if: {{{text2|}}} | {{{text2}}} | {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template page | {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}.  
+
XXX--->
 +
'''This is a [[TrainzOnline:Template documentation|documentation]] [[TrainzOnline:Subpages|subpage]]'''<includeonly><!--
 +
--> for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''</includeonly>.<br /></big></div><div>&nbsp;</div><div style:"background:#90EE90;">It contains usage information,<!--
 +
--> [[TrainzOnline:Categorization|categories]]<!--XXX
 +
, [[wikipedia:Help:Interlanguage links|interlanguage links]]
 +
XXX--> and other informational content that is best arranged so that it is not part of the original <!--XXX
 +
{{ #if: {{{text2|}}} | {{{text2}}} | {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template page |  
 +
XXX--->template page, such as in many cases, examples of how to use the template in question.<br/>
 +
* Documentation subpages were developed to reduce server demands, or to protect the code version of widely used templates.<!--XXX
 +
{{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}.  
 
       }}
 
       }}
     }}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{
+
     }}
 +
{{
 
     #if: {{{inhibit|}}}
 
     #if: {{{inhibit|}}}
     | <!-- skip -->
+
     | <!-- skip --XXX>
 
     | <includeonly>{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:{{
 
     | <includeonly>{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:{{
 
       #switch: {{SUBJECTSPACE}}
 
       #switch: {{SUBJECTSPACE}}
Line 17: Line 28:
 
       | Module  = Module
 
       | Module  = Module
 
       | User      = User
 
       | User      = User
       | #default  = Wikipedia
+
       | #default  = TrainzOnline
     }} documentation pages]]|[[Category:Documentation subpages without corresponding pages]]}}</includeonly>
+
     }} [[Template:documentation pages]]
 +
|[[Category:Documentation subpages without corresponding pages]]}}
 +
</includeonly>
 
   }}<includeonly>
 
   }}<includeonly>
| <!-- if not on a /doc subpage, do nothing -->
+
 
}}</includeonly><noinclude>{{Mediawiki}}
+
| <!-- if not on a /doc subpage, do nothing --XXX>
{{documentation}}
+
}}</includeonly>--><noinclude>
 +
{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}
 +
{{Mediawiki}}
 +
{{tl|documentation}}{{FAB-todo|Restore working versions once ParserFunctions are turned on.
 +
}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 18:35, 5 July 2013

 
It contains usage information, categories and other informational content that is best arranged so that it is not part of the original template page, such as in many cases, examples of how to use the template in question.
  • Documentation subpages were developed to reduce server demands, or to protect the code version of widely used templates.

{{documentation}}

Personal tools