(merge from offical wiki) |
小 (文本替换 - 替换“Category:Templates”为“Category:模板”) |
||
(未显示同一用户的1个中间版本) | |||
第1行: | 第1行: | ||
<includeonly><span style="white-space:nowrap">[[File:{{{file|{{{1}}}}}}.png|{{ucfirst:{{{1}}}}}|link={{{link|{{{1}}}}}}|{{#if:{{{2|}}}|{{{2}}}|x22px}}]] {{#if:{{{link|}}}|[[{{{link}}}|{{{ | <includeonly><span style="white-space:nowrap">[[File:{{{file|{{{1}}}}}}.png|{{ucfirst:{{{1}}}}}|link={{{link|{{{1}}}}}}|{{#if:{{{2|}}}|{{{2}}}|x22px}}]] {{#if:{{{link|}}}|[[{{{link}}}|{{{link}}}]]|[[{{{1}}}]]}}</span></includeonly><noinclude> | ||
{{template doc}} | {{template doc}} | ||
[[Category: | [[Category: 模板]]</noinclude> |
2020年12月31日 (四) 18:38的最新版本
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 Leader