差分

ナビゲーションに移動 検索に移動
1,520 バイト追加 、 2020年10月20日 (火) 15:47
ページの作成:「<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS L…」
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
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 ==
{| class="wikitable"
! 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. {{[[Template:Green|green]]}}) || optional || none
|-
| 5<br>''or'' text || Text to display || optional || same as first parameter
|}

== Examples ==

{| class="wikitable"
! Wiki text
! Produces
|-
| <code><nowiki>{{iconify|Ambitious}}</nowiki></code> || {{iconify|Ambitious}}
|-
| <code><nowiki>{{iconify|Ambitious|36px}}</nowiki></code> || {{iconify|Ambitious|36px}}
|-
| <code><nowiki>{{iconify|intrigue||+4}}</nowiki></code> || {{iconify|intrigue||+4}}
|-
| <code><nowiki>{{iconify|intrigue||−4|red}}</nowiki></code> || {{iconify|intrigue||−4|red}}
|-
| <code><nowiki>{{iconify|prestige||+1|green|monthly prestige}}</nowiki></code> || {{iconify|prestige||+1|green|monthly prestige}}
|}

== List of available icons ==
{{main|Template:Icon#List of available icons}}
29

回編集

案内メニュー