Template:TemplateUsage: Difference between revisions

Created page with "<noinclude> {{TemplateUsage |usage= <pre> {{TemplateUsage |usage=<p r e>{{TransLink|Page name}}</p r e> |description=Links to the translation of the page in the same language as the page being viewed. }} </pre> |description=Creates an infobox detailing the purpose of a template and how to use it.<br /> Note that <u>'''p r e'''</u> should be replaced by <u>'''pre'''</u>.<br /> Usage was written this way to avoid problems on this page, as it uses itself to describe itself...."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<translate><!--T:1-->
{{TemplateUsage
{{TemplateUsage
|usage=
|usage=
<pre>
<pre>
{{TemplateUsage
{{TemplateUsage
|usage=<p r e>{{TransLink|Page name}}</p r e>
|usage=<p r e>{{TransLink|Page name|Link Text}}</p r e>
|description=Links to the translation of the page in the same language as the page being viewed.
|description=Links to the translation of the provided page in the same language as the interface language of the user if it exists.
}}
}}
</pre>
</pre>
Line 12: Line 12:
Usage was written this way to avoid problems on this page, as it uses itself to describe itself.
Usage was written this way to avoid problems on this page, as it uses itself to describe itself.
}}
}}
</noinclude>
<div class="plainlinks" style="font-size:90%; margin-top:1em; border-top:1px solid #aaa; padding-top:0.5em;">
 
<onlyinclude>{| class="template-usage" style="border:1px solid #aaa; background:#f9f9f9; padding:4px; font-size:90%; width:100%;"
{| class="template-usage" style="border:1px solid #aaa; background:#f9f9f9; padding:4px; font-size:90%; width:100%;"
|+
|+
| style="font-weight:bold; width:20%;" | Usage
| style="font-weight:bold; width:20%;" | Usage
Line 21: Line 20:
| style="font-weight:bold;" | Description
| style="font-weight:bold;" | Description
| {{{description}}}
| {{{description}}}
|}
|}</onlyinclude>
</translate>
 
[[Category: Templates]]