Template:Template link: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
allow linking to templates in any namespace; unnest parameters 2-5
i hate the indiscriminate application of <includeonly/> tags to templates =/ 
Line 1: Line 1:
<includeonl y><code>{{[[{{ #ifeq: {{ #pos: {{{1}}} | : }} | 0 || {{ #if: {{NAMESPACE:{{{1}}}}} | {{NAMESPACE:{{{1}}}}} | {{ #if: {{{ns|}}} | {{{ns}}} | Template }} }} }}:{{{1}}}|{{{1}}}]]{{ #if: {{{2|}}} | {{!}}{{{2}}} }}{{ #if: {{{3|}}} | {{!}}{{{3}}} }}{{ #if: {{{4|}}} | {{!}}{{{4}}} }}{{ #if: {{{5|}}} | {{!}}{{{5}}} }}}}</code></includeonly><noinclude>
<includeonly><code>{{[[{{ #ifeq: {{ #pos: {{{1}}} | : }} | 0 || {{ #if: {{NAMESPACE:{{{1}}}}} | {{NAMESPACE:{{{1}}}}} | {{ #if: {{{ns|}}} | {{{ns}}} | Template }} }} }}:{{{1}}}|{{{1}}}]]{{ #if: {{{2|}}} | {{!}}{{{2}}} }}{{ #if: {{{3|}}} | {{!}}{{{3}}} }}{{ #if: {{{4|}}} | {{!}}{{{4}}} }}{{ #if: {{{5|}}} | {{!}}{{{5}}} }}}}</code></includeonly><noinclude>
{{/doc}}
{{/doc}}


[[Category:Templates]][[fr:Modèle:M]]
[[Category:Templates]][[fr:Modèle:M]]
</noinclude>
</noinclude>

Revision as of 14:08, 2 September 2014