Template:Iconify:修订间差异

无编辑摘要
无编辑摘要
第1行: 第1行:
<span style="white-space: nowrap;">[[File:{{{1}}}.png|link={{{1}}}]]</span><includeonly>[[分类: 需要替换iconify模板的页面]]</includeonly><noinclude>
<includeonly>{{icon|{{lc:{{{1}}}}}|{{{3|}}}}}{{#if:{{{4|}}}|&nbsp;{{#if:{{{5|}}}|{{{{{5}}}|{{{4}}}}}|{{{4}}}}}}}&nbsp;{{#if:{{{text|{{{2|}}}}}}|{{{text|{{{2}}}}}}|{{{1}}}}}</includeonly><noinclude>{{template doc}}[[Category:模板]]</noinclude>
 
== Usage ==
 
Usage is based on common naming convention that icons will be directly named after what they represent.
 
For instance:
<pre>The {{iconify|genius}} genius trait</pre>
The {{iconify|genius}} genius trait
 
If the name is composed of several words with different capitalization, a file redirect can be used to support the cases. For instance: {{iconify|Game master}} vs {{iconify|Game Master}}
[[Category:模板]]
</noinclude>

2020年12月25日 (五) 23:08的版本

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

这个模板用于将Template:Icon中的图标与文字一起生成。

Usage

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

For instance:

The {{iconify|genius}} genius trait

The (unrecognized string "genius" for Template:Icon) genius genius trait

If the name is composed of several words with different capitalization, a file redirect can be used to support the cases. For instance: (unrecognized string "game master" for Template:Icon) Game master vs (unrecognized string "game master" for Template:Icon) Game Master