Template:Documentation subpage: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
+ history link
m →‎top: cleanup using AWB, replaced: <br/> → <br />
 
(54 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=]]
<div class="messagebox" id="template_doc_page_viewed_directly" style="text-align: center">
|text='''This is a [[Help:Template documentation|documentation]] [[:mw:Help:Subpages|subpage]] for {{#if:{{{1|}}}
This subpage contains [[Wikipedia:Template documentation|documentation]], [[Wikipedia:Categories|categories]] and other content that is not part of the template. <br/> <span style="font-size: 88%">To view the {{#ifeq:{{NAMESPACE}}|Template|template|page}} itself, see {{{1|[[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}.</span></div>
| {{{1}}}
{{DEFAULTSORT:{{PAGENAME}}}}{{#if:{{{inhibit|}}}|<!-- skip -->|[[Category:Documentation subpages<noinclude>| </noinclude>]]}}
| [[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]
|
}}.'''<br /> It contains usage information, [[Categorization|categories]], and other content that is not part of the original<!--
<!-- on template pages -->
--> {{#if: {{{text2|}}}
<span id="template_doc_page_transcluded">''This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from {{{2|[[{{FULLPAGENAME}}/doc]]}}}'' (<span class="plainlinks">[{{fullurl:{{{1|{{SUBJECTPAGENAME}}/doc}}}|action=history}} history]</span>).</span>{{#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 -->}}
| {{{text2|}}}
}}<noinclude>
| {{#if: {{{text1|}}}
{{documentation}}
| {{{text1|}}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
| {{#ifeq: {{SUBJECTSPACE}} | {{ns:User}}
</noinclude>
| {{lc:{{SUBJECTSPACE}}}} template page
| {{#if: {{SUBJECTSPACE}}
| {{lc:{{SUBJECTSPACE}}}} page
| article
}}
}}
}}
}}.
}}
<!--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