小 (文本替换 - 替换“Category:Templates”为“Category:模板”) |
小 (试验一下) |
||
第1行: | 第1行: | ||
<includeonly>{{icon|{{lc:{{{1}}}}}|{{{2|}}}}}{{#if:{{{3|}}}| {{#if:{{{4|}}}|{{{{{4}}}|{{{3}}}}}|{{{3}}}}}}} {{#if:{{{text|{{{5|}}}}}}|{{{text|{{{5}}}}}}|{{{1}}}}}</includeonly><noinclude>{{template doc}}[[Category:模板]]</noinclude> | <includeonly>{{icon|{{lc:{{{1}}}}}|{{{2|}}}}}{{#if:{{{3|}}}| {{#if:{{{4|}}}|{{{{{4}}}|{{{3}}}}}|{{{3}}}}}}} {{#if:{{{text|{{{5|}}}}}}|{{#cargo_query: | ||
| tables= GLOSSARY | |||
| where = 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 | |||
| fields = GLOSSARY.cn,GLOSSARY.en | |||
| format = template | |||
| named args = no | |||
| template = ruby | |||
| default = {{{text|{{{5}}}}}} | |||
}}|{{#cargo_query: | |||
| tables= GLOSSARY | |||
| where = GLOSSARY.en = "{{{1|1000}}}" OR GLOSSARY.cn = "{{{1|1000}}}" OR GLOSSARY.id = "{{{1|1}}}" OR GLOSSARY.alias1 = "{{{1|1000}}}" OR GLOSSARY.alias2 = "{{{1|1000}}}" OR GLOSSARY.alias3 = "{{{1|1000}}}" OR GLOSSARY.alias4 = "{{{1|1000}}}" <> 0 | |||
| fields = GLOSSARY.cn,GLOSSARY.en | |||
| format = template | |||
| named args = no | |||
| template = ruby | |||
| default = {{{1}}} | |||
}}}}</includeonly><noinclude>{{template doc}}[[Category:模板]]</noinclude> |
2022年4月3日 (日) 02:55的版本
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
List of available icons
: