Template:Iconify: Difference between revisions

No edit summary
m (文本替换 - 替换“Category:Templates”为“Category:模板”)
 
Line 1: Line 1:
<includeonly><span style="white-space:nowrap">[[File:{{{file|{{{1}}}}}}.png|{{ucfirst:{{{1}}}}}|link={{{link|{{{1}}}}}}|{{#if:{{{2|}}}|{{{2}}}|x22px}}]]&thinsp;{{#if:{{{link|}}}|[[{{{link}}}|{{{link}}}]]|[[{{{1}}}]]}}</span></includeonly><noinclude>
<includeonly><span style="white-space:nowrap">[[File:{{{file|{{{1}}}}}}.png|{{ucfirst:{{{1}}}}}|link={{{link|{{{1}}}}}}|{{#if:{{{2|}}}|{{{2}}}|x22px}}]]&thinsp;{{#if:{{{link|}}}|[[{{{link}}}|{{{link}}}]]|[[{{{1}}}]]}}</span></includeonly><noinclude>
{{template doc}}
{{template doc}}
[[Category:Templates]]</noinclude>
[[Category: 模板]]</noinclude>

Latest revision as of 18:38, 31 December 2020

[阅读] [编辑]Template-info.png 模板文档

This template can be used for embedding icons in the text. It provides the icon followed by the corresponding link.

Parameters

Parameter Description Status Default
1 identifier for the icon required empty
2 width of the icon optional x22px
file alternative file optional {{{1}}}
link alternative link optional {{{1}}}

Usage

Usage is based on common naming convention that icons will be directly named after what they represent.

For instance:

Has trait {{iconify|Panzer Leader}}
Has trait Panzer LeaderPanzer Leader