Template:Documentation subpage: Difference between revisions

Template page
Content added Content deleted
(rewrote (simpler, more flexible override, fixes non-working), + tracking category for display-always syntax (unused?))
(updated to work with citizen skin)
 
(58 intermediate revisions by 29 users not shown)
Line 1: Line 1:
<div class="mbox mbox-normal" role="presentation"><span class="mbox-title"><span class="mbox-icon metadata">[[File:OOjs UI icon notice.svg|14px|link=]]</span>'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.</span>
{{#switch:{{SUBPAGENAME}}
<div class="mbox-text">In most cases it contains usage information, example, [[Wikipedia:Categorization|categories]] 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}}}}}}}}.</div>
|{{{display on|doc}}}
</div><templatestyles src="Template:Mbox/styles.css" />
|{{#ifeq:{{{1}}}|override|{{SUBPAGENAME}}|%}}} = <div class="messagebox" style="text-align:center;">
<includeonly>
This [[template:documentation|documentation subpage]] contains instructions, categories, or other information for [[w:Project:Transclusion costs and benefits|technical reasons]].<br /><small>To view the {{SUBJECTSPACE}} page itself, see {{{1|[[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}.</small>
</div>{{{category|[[Category:Template documentation|<noinclude> </noinclude>{{PAGENAME}}]]}}}
[[Category:Template documentation pages]]
</includeonly>
}}{{#ifeq:{{{1}}}|override|[[Category:Documentation subpage using 1=override]]}}<noinclude>
{{documentation}}
</noinclude>

Latest revision as of 18:49, 16 December 2023

Cookies help us deliver our services. By using our services, you agree to our use of cookies.