Template:Types: Difference between revisions

Created page with "{{TemplateUsage |usage=<pre>{{Types|Border Color|Custom Sort Key for Category:Types}}</pre> |description=Links to the translation of the provided page in the same language as the interface language of the user if it exists. }} <onlyinclude><div style="{{rounded|5px}} float:right; text-align:center; background:#FFF; border: 2px solid #{{ {{{1|Other}}}Color}}; margin-left: 5px; margin-bottom: 5px"> <div style="padding-top:3px">'''{{color|000|Types}}'''</div> <div..."
 
No edit summary
Line 1: Line 1:
{{TemplateUsage
<translate>{{TemplateUsage
|usage=<pre>{{Types|Border Color|Custom Sort Key for Category:Types}}</pre>
|usage=<pre>{{Types|Border Color|Custom Sort Key for Category:Types}}</pre>
|description=Links to the translation of the provided page in the same language as the interface language of the user if it exists.
|description=Creates a navigation table for all types.
}}
The custom sort key defines the page's '''index in Category:Types''' (<code>* 1</code> will appear first in the category)
<onlyinclude><div style="{{rounded|5px}} float:right; text-align:center; background:#FFF; border: 2px solid #{{ {{{1|Other}}}Color}}; margin-left: 5px; margin-bottom: 5px">
}}</translate>
 
<onlyinclude><div class="rounded5" style="float: right; text-align: center; background: #F0F0F7; border: 2px solid #{{{1|{{OtherColor}}}}}; margin-left: 5px; margin-bottom: 5px">
<div style="padding-top:3px">'''[[Type|{{color|000|Types}}]]'''</div>
<div style="padding-top:3px">'''[[Type|{{color|000|Types}}]]'''</div>
<div style="display:grid; grid-template-columns: 1fr 1fr">
<div style="display:grid; grid-template-columns: 1fr 1fr">
Line 21: Line 23:
</div>
</div>
</div><includeonly>[[Category:Types|{{{2|{{PAGENAME}}}}}]]</includeonly></onlyinclude>
</div><includeonly>[[Category:Types|{{{2|{{PAGENAME}}}}}]]</includeonly></onlyinclude>
[[Category:Navigation templates]]
[[Category:Navigation templates]]