Template:Documentation: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1:
<onlyinclude><includeonly>
<div style="border:1px solid #aaaaaa; background-color:#fafafa; padding:.5em10px;">
<div style="padding-bottom: 3px; border-bottom: 1px solid #aaaaaa; margin-bottom: 1ex;"><!--
-->[[File:Template-info.png|50px]] <span style="font-weight:bold; font-size:125%; margin-right:10px;">Documentation</span><!--
Line 6:
-->{{#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>
{{#ifexist: Template:{{{1|{{PAGENAME}}}}}/doc|{{Template:{{{1|{{PAGENAME}}}}}/doc|{{{1|}}}}}|No documentation subpage exists yet for this template. {{FULLPAGENAMEE:Template:{{{1|{{PAGENAME}}}}}}}/doc|action{{=}}edit&preload{{=}}Template:Doc/preload|text=Create one now}}.}}</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 14:
<code><nowiki><noinclude>{{documentation}}</noinclude></nowiki></code><br/>
<code><nowiki><noinclude>{{documentation|templatename}}</noinclude></nowiki></code><br/>
 
[[Category:Templates]]