Template:Iconify:修订间差异

无编辑摘要
无编辑摘要
第1行: 第1行:
<includeonly>{{icon|{{lc:{{{1}}}}}|{{{2|x24px}}}}}{{#if:{{{3|}}}|&nbsp;{{#if:{{{4|}}}|{{{{{4}}}|{{{3}}}}}|{{{3}}}}}}}&nbsp;{{#if:{{{text|{{{5|}}}}}}|{{#cargo_query:
<includeonly>{{icon|{{lc:{{{1}}}}}|{{{2|24px}}}}}{{#if:{{{3|}}}|&nbsp;{{#if:{{{4|}}}|{{{{{4}}}|{{{3}}}}}|{{{3}}}}}}}&nbsp;{{#if:{{{text|{{{5|}}}}}}|{{#cargo_query:
| tables= GLOSSARY
| tables= GLOSSARY
| where = (GLOSSARY.alias1 IS NULL AND GLOSSARY.en = "{{{text|{{{5|1000}}}}}}") OR GLOSSARY.cn = "{{{text|{{{5|1000}}}}}}" OR GLOSSARY.id = "{{{text|{{{5|1}}}}}}"  OR GLOSSARY.alias1 = "{{{text|{{{5|1000}}}}}}"  OR GLOSSARY.alias2 = "{{{text|{{{5|1000}}}}}}"  OR GLOSSARY.alias3 = "{{{text|{{{5|1000}}}}}}"  OR GLOSSARY.alias4 = "{{{text|{{{5|1000}}}}}}" <> 0
| where = (GLOSSARY.alias1 IS NULL AND GLOSSARY.en = "{{{text|{{{5|1000}}}}}}") OR GLOSSARY.cn = "{{{text|{{{5|1000}}}}}}" OR GLOSSARY.id = "{{{text|{{{5|1}}}}}}"  OR GLOSSARY.alias1 = "{{{text|{{{5|1000}}}}}}"  OR GLOSSARY.alias2 = "{{{text|{{{5|1000}}}}}}"  OR GLOSSARY.alias3 = "{{{text|{{{5|1000}}}}}}"  OR GLOSSARY.alias4 = "{{{text|{{{5|1000}}}}}}" <> 0

2022年4月13日 (三) 16:01的版本

[查看] [编辑]Template-info.png 模板文档

This template can be used to add icons as generated by Template:Icon in front of words.

Use this template to standardise the order of elements in bonuses. It also suppresses alt text for improved accessibility.

Parameters

Parameter Description Required Default
1 The icon to use. For a list of icons see Template:Icon. required none
2 Width of the icon optional 24px
3 Quantity to add between the icon and text optional none
4 Name of template to apply to quantity (e.g. {{green}}) optional none
5
or text
Text to display optional same as first parameter

Examples

Wiki text Produces
{{iconify|Militarist}} 军国主义 Militarist 军国主义Militarist
{{iconify|Militarist|36px}} 军国主义 Militarist 军国主义Militarist
{{iconify|Minerals||+4}} Minerals.png +4 矿物Minerals
{{iconify|Minerals||−4|red}} Minerals.png  −4 矿物Minerals
{{iconify|influence||+1|green|monthly influence}} Influence.png  +1 每月影响力Monthly Influence

List of available icons

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