Template:Documentation subpage: Difference between revisions

Content deleted Content added
imported>Pathoschild
simplified, provide more information, link to subjectspace (for weird cases)
imported>Pathoschild
merged in Template:Template doc page transcluded (switch based on whether current subpage name is "doc")
Line 1:
{{#ifeq:{{lc:{{SUBPAGENAME}}}}|{{{override|doc}}}|
{| style="width:100%; border:1px solid #CCC;"
<!-- on documentation subpages -->
|- style="vertical-align:top;"
|<table style="width:30px100%;" | [[Imageborder:Edit-paste.svg|30px]]1px solid #CCC;">
|- <tr style="vertical-align:top;">
| This is a [[Wikipedia:Template documentation|documentation subpage]], where instructions, categories, or other information is stored for [[Project:Transclusion costs and benefits|technical reasons]]. To view the {{SUBJECTSPACE}} page itself, see {{{1|[[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}.
<td style="width:30px;"> [[Image:Edit-paste.svg|30px]]</td>
|} <includeonly>{{#if: {{{inhib|{{{inhibit|}}}}}} |<!-- skip -->|[[Category:Documentation subpages|{{PAGENAME}}]]}}</includeonly><noinclude>
| <td>This is a [[Wikipediatemplate:Template documentation|documentation subpage]], where instructions, categories, or other information isare stored for [[w:Project:Transclusion costs and benefits|technical reasons]]. To view the {{SUBJECTSPACE}} page itself, see {{{1|[[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}.</td>
</tr>
|} <includeonly/table>{{#if: {{{inhib|{{{inhibit|}}}}}} |<!-- skip -->|[[Categorycategory:Documentation subpages<noinclude>| {{PAGENAME}}]]}}</includeonly><noinclude>]]}}
|
<!-- on template pages -->
''This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{FULLPAGENAME}}}}}/doc]]''. <small>([{{fullurl:{{{1|{{FULLPAGENAME}}}}}/doc|action=edit}} edit] • [{{fullurl:{{{1|{{FULLPAGENAME}}}}}/doc|action=history}} history])</small>{{#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 -->}}
}}<noinclude>
{{pp-semi-template|small=yes}}
{{documentation}}