Difference between revisions of "Template:Documentation subpage"

From Shadow of the Throne Wiki
Jump to: navigation, search
m ({{pp-semi-template|small=yes}})
m (129 revisions: Multicol pages)
 
(88 intermediate revisions by 29 users not shown)
Line 1: Line 1:
<center>
+
<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}}
{| class="messagebox" style="width:80%; border:1px solid #c0c090; background:#f8eaba; margin:2px 4px 2px 4px;"
+
  | <!-- doc page -->
|- style="vertical-align:top;"
+
</includeonly>{{
|align="center" style="width:60px; padding:1ex;"| [[Image:Edit-paste.svg|none|40px]]
+
    #ifeq: {{{doc-notice|show}}} | show
| '''This is the [[Wikipedia:Template doc page pattern|template documentation page]] {{#if:{{{1|}}}|{{{1}}}|for [[{{NAMESPACE}}:{{BASEPAGENAME}}]].}}'''<br/><hr/>This page is not necessarily intended to be viewed directly. If it uses [[w:Help:Variable|variable]]s, some links may appear broken. Do not replace these variables with [[w:Hardcoded|hardcoded]] page names or URLs.
+
    | {{mbox
|}<br/><hr/>
+
      | type = notice
</center>
+
      | image = [[File:Edit-copy green.svg|40px]]
<includeonly>[[Category:Template documentation|{{PAGENAME}}]]</includeonly><!--
+
      | text =
 
+
'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.<br />It contains usage information, [[Wikipedia:Categorization|categories]], [[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}}}}}}}}.  
--><noinclude>
+
      }}
<center><small>''[[Template:Template doc page viewed directly]] template ends''</small></center>
+
    }}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{
;Note: This template will take an alternative parameter <nowiki>{{{1}}}</nowiki> when it is applied as a X/doc style warning in a common usage page for several utility templates. (Such as are normally related by function or application and frequently list one another as ''see also'' pages.)
+
    #if: {{{inhibit|}}}
 
+
    | <!-- skip -->
<br/><br/>Ver: fix up interwiki issues, class mesagebox 'standard-talk' not so standard, make links interwiki.// <b>[[User:Fabartus|Fra]]</b><font color="green">[[User talk:Fabartus|nkB]]</font> 21:47, 23 February 2007 (UTC)
+
    | <includeonly>{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:{{
 
+
      #switch: {{SUBJECTSPACE}}
Org: Commons, IWTG perams adusts, (mn) <B>[[User:Fabartus|Fra]]</B><font color="green">[[User talk:Fabartus|nkB]]</font> 18:44, 12 February 2007 (UTC) {{-}}
+
      | Template  = Template
----
+
      | User      = User
{{interwikitmp-grp|inhib=yes|SYS=yes|V=0}}
+
      | #default  = Wikipedia
 
+
    }} documentation pages]]|[[Category:Documentation subpages without corresponding pages]]}}</includeonly>
== See also ==
+
  }}<includeonly>
* [[M:Meta:Template doc page pattern]] or [[W:Wikipedia:Template doc page pattern]] for how this template is used.
+
| <!-- if not on a /doc subpage, do nothing -->
* Related templates:
+
}}</includeonly><noinclude>
# {{tlw| Template doc page transcluded}} (as redirect: ''{{tlw|Template doc page pattern}}'')
+
{{documentation}}
# {{tlw| Interwiki doc page pattern}}
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
+
 
+
 
+
<!--Categories-->
+
[[Category:Template documentation |!{{PAGENAME}}]]
+
[[Category:Template namespace templates|{{PAGENAME}}]]
+
 
+
<!--Interwiki's in Other languages-->{{-}}
+
[[ja:Template:テンプレート文書直接表示]]
+
[[pl:Szablon:Dokumentacja szablonu oglądana bezpośrednio]]
+
[[sl:Predloga:Neposredno prikazana dokumentacijska stran predloge]]
+
[[uk:Шаблон:Документація шаблона (безпосередня)]]
+
[[zh:Template:Template doc page viewed directly]]
+
 
+
{{pp-semi-template|small=yes}}
+
 
</noinclude>
 
</noinclude>

Latest revision as of 13:23, 21 November 2012

{{

   #ifeq: show | show
   | Template:Mbox
   }}{{
   #if: 
   | 
   | 
 }}

{{#ifeq: Documentation subpage | sandbox

|
Template:Template sandbox notice }}Template:Template other
{{#ifeq: ¬ |

|

|
{{
 #if: 
 | 
 | 
   {{
   #if: {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Documentation subpage | sandbox | testcases = Documentation subpage | #default = Documentation subpage }}/doc

   }}
 | yes
 }}
   | [[[{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Documentation subpage | sandbox | testcases = Documentation subpage | #default = Documentation subpage }}/doc

 }}|view]]] [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Documentation subpage | sandbox | testcases = Documentation subpage | #default = Documentation subpage }}/doc

 }}|action=edit}} edit]] [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Documentation subpage | sandbox | testcases = Documentation subpage | #default = Documentation subpage }}/doc

 }}|action=history}} history]] [purge] 
   | 
     [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Documentation subpage | sandbox | testcases = Documentation subpage | #default = Documentation subpage }}/doc

 }}| action=edit&preload={{
       #if:  
       | 
       | {{#ifeq: Template | File
         | Template:Documentation/preload-filespace
         | Template:Documentation/preload
         }} }} }} create]]
   }}
 }} {{#switch: ¬
 | ¬ =   
   {{#switch: Template 
   | Template = 50px Template documentation
   | File = Summary
   | #default = Documentation
   }}
 | #default = 
   ¬
}}

}} {{#switch: {{#if:|1|0}}{{#if:|1|0}}{{#ifexist:|1|0}}{{#ifexist:{{#switch: Template

 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Documentation subpage | sandbox | testcases = Documentation subpage | #default = Documentation subpage }}/doc|1|0}} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = | 0110 | 0111 = {{ {{{1}}} }} | 0001 | 0011 = {{ {{#switch: Template

 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Documentation subpage | sandbox | testcases = Documentation subpage | #default = Documentation subpage }}/doc }} | 0000 | 0100 | 0010 | 0101 = }}

{{#if:
 {{#ifeq:  | off
 |
 | {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Documentation subpage | sandbox | testcases = Documentation subpage | #default = Documentation subpage }}/doc

   }}
 | yes
 }}{{
   #switch: Template
   | User
   | Template = yes
   }}
 }}
| {{#ifeq:none|none | | }} {{#if: |

}}

{{#switch:

| | warning | editnotice | system =

| #default =
This message box is using an invalid "type=" parameter and needs fixing.
[[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Documentation subpage]]

}} }}{{#if:

 {{#switch: Documentation subpage
 | doc
 | testcases = strange
 }}

| [[Category:Wikipedia pages with strange ((documentation)) usage|Template:Main otherTemplate:Documentation subpage]]

}}