Template:Modification Icon
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
- Description
- This template is used to create the modifications icon.
- Use Case #1
- Insert this template using
{{Modification_Icon|name=fireproof|duration=permanent|size=40}}
if you are okay with the default settings for a given modification.
Size defaults to 20px, and the following durations should be used to get the border colours:
- permanent
- week
- season
- item
- game
- Example 1 of Use Case #1
- <span class="" style="
color: {{{color}}};
background: {{{bg}}};
border: Expression error: Unrecognized punctuation character "{".px solid #c2157a;
display: inline-flex;
margin: 0;
height: Expression error: Unrecognized punctuation character "{".px;
width: Expression error: Unrecognized punctuation character "{".px;
border-radius: Expression error: Unrecognized punctuation character "{".px;
align-items: center;
font-size: Expression error: Unrecognized punctuation character "{".px;
justify-content: center;
vertical-align: ;">
{{Modification_Icon|name=fireproof|duration=season}}
- Example 2 of Use Case #1
{{Modification_Icon|name=siphon|duration=item|size=40}}
- Use Case #2
Alternatively, you can fully customize with the following options:
{{Modification_Icon
|name=fire-extinguisher
|size=120
|color=rgb(237, 237, 145)
|bg=rgb(87, 31, 38)
|border=rgb(219, 188, 11)}}
Here, the "name" corresponds to the name found at game-icons.net
- Example 1 of Use Case #2
{{Modification_Icon|name=egg-pod|size=120|color=rgb(255, 254, 168)|bg=rgb(81, 112, 99)|duration=season}}
- Example 2 of Use Case #2
{{Modification_Icon|name=quicksand|size=20|color=rgb(255, 254, 168)|bg=rgb(81, 112, 99)|duration=permanent}}
- Example 3 of Use Case #2
{{Modification_Icon|name=fire-dash|size=20|color=rgb(255, 250, 163)|bg=rgb(87, 0, 38)|duration=game}}