Template:Documentation subpage: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
imported>Patrick
better link for "technical reasons"
m →‎top: cleanup using AWB, replaced: <br/> → <br />
 
(60 intermediate revisions by 25 users not shown)
Line 1: Line 1:
{{#ifeq:{{lc:{{SUBPAGENAME}}}}|{{{override|doc}}}|
<includeonly>{{#if:{{IsDocSubpage|override={{{override|doc}}}}}
| <!--doc subpage--></includeonly>{{#ifeq:{{{doc-notice|show}}}|show
<!-- on documentation subpages -->
| {{Ombox|type=notice|image=[[File:Edit-copy green.svg|40px|link=]]
<table style="width:100%; border:1px solid #CCC;">
|text='''This is a [[Help:Template documentation|documentation]] [[:mw:Help:Subpages|subpage]] for {{#if:{{{1|}}}
<tr style="vertical-align:top;">
| {{{1}}}
<td style="width:30px;"> [[Image:Edit-paste.svg|30px]]</td>
| [[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]
<td>This is a [[template:documentation|documentation subpage]], where instructions, categories, or other information are stored for [[Template:Template_doc#Advantages|technical reasons]]. To view the {{SUBJECTSPACE}} page itself, see {{{1|[[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}.</td>
}}.'''<br /> It contains usage information, [[Categorization|categories]], and other content that is not part of the original<!--
</tr>
--> {{#if: {{{text2|}}}
</table>{{#if: {{{inhib|{{{inhibit|}}}}}} |<!-- skip -->|[[category:Documentation subpages<noinclude>| {{PAGENAME}}</noinclude>]]}}
| {{{text2|}}}
|
| {{#if: {{{text1|}}}
<!-- on template pages -->
| {{{text1|}}}
''This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from {{{2|[[{{FULLPAGENAME}}/doc]]}}}''.{{#ifexist: {{#rel2abs: /sandbox }}| {{#ifexist: {{#rel2abs: /testcases}}| <br>''This template has a [[/sandbox|sandbox]]'' <small>([{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit}} edit])</small> ''and [[/testcases|testcases]]'' for editors to experiment.}}<!-- else don't show when just 1 of /sandbox or /testcases exists -->}}
| {{#ifeq: {{SUBJECTSPACE}} | {{ns:User}}
}}<noinclude>
| {{lc:{{SUBJECTSPACE}}}} template page
{{pp-semi-template|small=yes}}
| {{#if: {{SUBJECTSPACE}}
{{documentation}}
| {{lc:{{SUBJECTSPACE}}}} page
<!-- Add categories and interwikis to the /doc subpage, not here! -->
| article
</noinclude>
}}
}}
}}
}}.
}}
<!--If not on a doc subpage, do nothing-->}}{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}{{#if: {{{inhibit|}}}
| <!--Skip-->
| <includeonly>{{#ifexist: {{NAMESPACE}}:{{BASEPAGENAME}}
| [[Category:{{#switch: {{SUBJECTSPACE}}
|Template=Template
|Module=Module
|User=User
|#default=Template
}} documentation pages{{#translation:}}]]
| [[Category:Documentation subpages without corresponding pages{{#translation:}}]]
}}</includeonly>
}}<includeonly>
}}</includeonly><noinclude>{{Documentation}}<!--Add categories and interwikis to the /doc subpage, not here!--></noinclude>

Latest revision as of 01:55, 10 March 2024

Template documentation