« Modèle:Icon » : différence entre les versions
Aller à la navigation
Aller à la recherche
Page créée avec « <includeonly><span style="font-size: {{#switch:{{{size|{{{3}}}}}} |1=1.4 |2=1.2 |4=0.85 |3 |#default=1}}em;"><!-- Explanations: "right" : minus the icon size "bottom": ... » |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
< | <noinclude> | ||
;Description | |||
| | :Creates an item icon with a stack count overlay. | ||
| | ;Syntax | ||
| | :{{t1link|Icon|icon<nowiki>> | ||
| | |<</nowiki>stack<nowiki>> | ||
| | |<</nowiki>size<nowiki>> | ||
|<</nowiki>size<nowiki>=> | |||
|<</nowiki>float<nowiki>=> | |||
|<</nowiki>margin<nowiki>=</nowiki>}} | |||
;Example | |||
:<nowiki>{{Icon</nowiki> | |||
::|<nowiki>Pure Athelas Extract-icon</nowiki> | |||
|1 = | ::|<nowiki>5</nowiki> | ||
|2 = | :<nowiki>}}</nowiki> | ||
|4 = | ;Result | ||
| | :{{Icon|Pure Athelas Extract-icon|5}}{{clrl}} | ||
;Template | |||
}} | :</noinclude><div style="position: relative; float: {{{float|left}}}; margin: {{{margin|0.3em}}}; font-size: {{#switch:{{{size|{{{3}}}}}}|1=1.4|2=1.2|3=1|4=0.85|1.4}}em;">[[Image:{{{1|-icon}}}.png|{{#switch:{{{size|{{{3}}}}}}|1=64|2=48|3=32|4=24|{{{width|64}}}}}x{{#switch:{{{size|{{{3}}}}}}|1=64|2=48|3=32|4=24|{{{height|64}}}}}px]]<span style="position: absolute; {{#switch:{{{size|{{{3}}}}}}|1=bottom: 0.2em; right: 0.5em;|2=bottom: 0.15em; right: 0.4em;|3=bottom:0.1em; right: 0.4em;|4=bottom: -0.1em; right: 0.4em;|bottom: 0.2em; right: 0.5em;}} color: #000; font-weight: bold;"><span style="position: relative; left: 1px; top: 1px;">{{{2|}}}</span></span><span style="position: absolute; {{#switch:{{{size|{{{3}}}}}}|1=bottom: 0.2em; right: 0.5em;|2=bottom: 0.15em; right: 0.4em;|3=bottom: 0.1em; right: 0.4em;|4=bottom: -0.1em; right: 0.4em;|bottom: 0.2em; right: 0.5em;}} color:gold; font-weight: bold;">{{{2|}}}</span></div><noinclude> | ||
|1= | |||
|2= | |||
|4= | |||
| | |||
</ | |||
[[Category:Item Templates|Icon]] | [[Category:Item Templates|Icon]] | ||
</noinclude> | </noinclude> |
Dernière version du 20 mai 2013 à 22:33
- Description
- Creates an item icon with a stack count overlay.
- Syntax
- Modèle:t1link
- Example
- {{Icon
- |Pure Athelas Extract-icon
- |5
- }}
- Result
- Modèle:clrl
- Template