Template:Ifsubst and Template:Documentation subpage: Difference between pages

From Frontierpedia, the Microsoft Agent encyclopedia
(Difference between pages)
en>Amalthea
(fix)
 
en>Pathoschild
m (fixed override)
 
Line 1: Line 1:
{{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}NAMESPACE}}|{{NAMESPACE}}|{{{2|}}}|{{{1|}}} }}<noinclude>
{{#ifeq:{{lc:{{SUBPAGENAME}}}}|{{{override|doc}}}|
{{Documentation|content=
<!-- on documentation subpages -->
 
<table style="width:100%; border:1px solid #CCC;">
===Usage===
  <tr style="vertical-align:top;">
Meta template that returns the first parameter if evaluated during substitution, and the second parameter if evaluated during transclusion.<br>Note that this template must be used in [[meta:Help:Safesubst|safesubst]] mode to work properly:
    <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>
:<code><nowiki>{{ {{{|safesubst:}}}ifsubst| yes | no }}</nowiki></code>
  </tr>
 
</table>{{#if: {{{inhib|{{{inhibit|}}}}}} |<!-- skip -->|[[category:Documentation subpages<noinclude>| {{PAGENAME}}</noinclude>]]}}
<!--Categories-->
|
[[Category:Wikipedia metatemplates|{{PAGENAME}}]]
<!-- on template pages -->
 
''This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from {{{2|[[{{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}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 01:25, 2 October 2007

This documentation is transcluded from [[Template:Documentation subpage}/doc]]. (edithistory) Template:Pp-semi-template