Template:Documentation: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 5:
-->{{#ifeq: {{SUBPAGENAME}} | doc |<!-- nothing -->|<!--
-->{{#ifexist:Template:{{{1|{{PAGENAME}}}}}/doc|<span style="font-size:90%">''The documentation below is transcluded from [[Template:{{{1|{{PAGENAME}}}}}/doc]].''</span>|<!-- nothing -->}} }}<!--
--><div style="float:right; margin-left: 5px"></div></div></includeonly></onlyinclude>
{{#ifexist: Template:{{{1|{{PAGENAME}}}}}/doc|{{Template:{{{1|{{PAGENAME}}}}}/doc|{{{1|}}}}}}}</div></includeonly></onlyinclude>
Use this template within a template page to transclude its documentation. If the template shares the same documentation as another template, pass the other template's name as parameter 1.
 
Line 13 ⟶ 14:
<code><nowiki><noinclude>{{documentation}}</noinclude></nowiki></code><br/>
<code><nowiki><noinclude>{{documentation|templatename}}</noinclude></nowiki></code><br/>
 
[[Category:Templates]]