Template:Documentation: Difference between revisions

From All things Canadian tennis
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 5: Line 5:
-->{{#ifeq: {{SUBPAGENAME}} | doc |<!-- nothing -->|<!--
-->{{#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 -->}} }}<!--
-->{{#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>
--><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>
{{#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.
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.

Revision as of 22:57, 19 December 2019

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.

Examples of usage

The doc transclusion should be placed at the end of the template code:

<noinclude>{{documentation}}</noinclude>
<noinclude>{{documentation|templatename}}</noinclude>