Template:Iconify:修订间差异

(merge from offical wiki)
 
无编辑摘要
第1行: 第1行:
<includeonly>{{icon|{{lc:{{{1}}}}}|{{{2|}}}}} {{{1}}}</includeonly><noinclude>{{template doc}}[[Category:Templates]]</noinclude>
<includeonly>{{icon|{{lc:{{{1}}}}}|{{{2|}}}}} {{#if: {{{3|}}}|{{{3}}}|{{{1}}}}}
</includeonly><noinclude>{{template doc}}[[Category:Templates]]</noinclude>

2020年10月20日 (二) 16:47的版本

[view] [edit]Template-info.png Template documentation

This template can be used for to add icons as generated by Template:Icon in front of words. The icons serve as a link to the concept they represent.

Parameters

1
The first parameter is the word to iconify. It has no default value and is always required.
2
The second parameter is the width of the icon. It is optional. The default value is 28px.

Usage

Syntax
{{iconify|word}}} or {{iconify|word|width}}
Insert the relevant identifier in the above syntax. The available identifier can be found in the table linked below.
Example
{{iconify|Mahayana}}} will generate Mahayana.png Mahayana

.

List of available icons

主条目:Template:Icon#List of available icons