« Modèle:Documentation subpage » : différence entre les versions

De wiki-spl
Aller à la navigation Aller à la recherche
test0>Pathoschild
(simplified, provide more information, link to subjectspace (for weird cases))
test0>Pathoschild
(merged in Template:Template doc page transcluded (switch based on whether current subpage name is "doc"))
Ligne 1 : Ligne 1 :
{| style="width:100%; border:1px solid #CCC;"
{{#ifeq:{{lc:{{SUBPAGENAME}}}}|{{{override|doc}}}|
|- style="vertical-align:top;"
<!-- on documentation subpages -->
| style="width:30px;" | [[Image:Edit-paste.svg|30px]]
<table style="width:100%; border:1px solid #CCC;">
| 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}}]]}}}.
  <tr style="vertical-align:top;">
|} <includeonly>{{#if: {{{inhib|{{{inhibit|}}}}}} |<!-- skip -->|[[Category:Documentation subpages|{{PAGENAME}}]]}}</includeonly><noinclude>
    <td style="width:30px;"> [[Image:Edit-paste.svg|30px]]</td>
    <td>This is a [[template:documentation|documentation subpage]], where instructions, categories, or other information are stored for [[w:Project:Transclusion costs and benefits|technical reasons]]. To view the {{SUBJECTSPACE}} page itself, see {{{1|[[{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}.</td>
  </tr>
</table>{{#if: {{{inhib|{{{inhibit|}}}}}} |<!-- skip -->|[[category:Documentation subpages<noinclude>| {{PAGENAME}}</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}}
{{pp-semi-template|small=yes}}
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Version du 2 octobre 2007 à 02:21

{{#ifeq:documentation subpage|doc|

Edit-paste.svg This is a documentation subpage, where instructions, categories, or other information are stored for technical reasons. To view the Modèle page itself, see Modèle:Documentation subpage.

{{#if: ||}}

| This documentation is transcluded from Modèle:Documentation subpage/doc. (edithistory){{#ifexist: {{#rel2abs: /sandbox }}| {{#ifexist: {{#rel2abs: /testcases}}|
This template has a sandbox (edit) and testcases for editors to experiment.}}}} }} Modèle:Pp-semi-template {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}{{#if:| [[Category:Template documentation pages{{#translation:}}]] }}