Template:ForceRarity/doc: Difference between revisions
From Elwiki
IceSoulMOG (talk | contribs) (Created page with "__NOTOC__ == What is it used for? == This is an overlay template for Force Skill items. == How to use == === Code === <nowiki>{{ForceRarity|file|link=skilln...") |
m (Ritsu moved page Doc:Template:ForceRarity to Template:ForceRarity/doc) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
*<nowiki>{{ForceRarity|</nowiki>'''file'''<nowiki>}}</nowiki> - name of the image (without the "File:" prefix) | *<nowiki>{{ForceRarity|</nowiki>'''file'''<nowiki>}}</nowiki> - name of the image (without the "File:" prefix) | ||
*'''rarity''' - rarity of the item ({{ItemName|Rare|Rare}}, {{ItemName|Elite|Elite}}, {{ItemName|Unique|Unique}}, or {{ItemName|Legend|Legend}}) | *'''rarity''' - rarity of the item ({{ItemName|Rare|Rare}}, {{ItemName|Elite|Elite}}, {{ItemName|Unique|Unique}}, or {{ItemName|Legend|Legend}}) | ||
*'''link''' - optional link to the | *'''link''' - optional link to the item | ||
*'''size''' - if '''1''', displays a 20px icon, if '''2''' - 32px | *'''name''' - optional name to the item | ||
*'''size''' - if '''1''', displays a 20px icon, if '''2''' - 32px, no value - 64px | |||
*[https://developer.mozilla.org/en-US/docs/Web/CSS/float '''float'''] - if '''right''' or '''left''' specified, pushes the picture to the right or the left of the page | *[https://developer.mozilla.org/en-US/docs/Web/CSS/float '''float'''] - if '''right''' or '''left''' specified, pushes the picture to the right or the left of the page | ||
*[https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align '''valign'''] - vertical align of the picture, useful if inserted in the middle of a text block or so, can equal to top/bottom/baseline/middle | *[https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align '''valign'''] - vertical align of the picture, useful if inserted in the middle of a text block or so, can equal to top/bottom/baseline/middle | ||
Line 19: | Line 20: | ||
result: {{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend}} | result: {{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend}} | ||
<nowiki>{{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend|link=Remaining El's Aspiration}}</nowiki> | <nowiki>{{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend|link=Remaining El's Aspiration|name=Hello El}}</nowiki> | ||
result: {{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend|link=Remaining El's Aspiration}} | result: {{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend|link=Remaining El's Aspiration|name=Hello El}} | ||
<nowiki>{{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend|size=1}}</nowiki> | <nowiki>{{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend|size=1}}</nowiki> | ||
result: {{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend|size=1}} | result: {{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend|size=1}} |
Latest revision as of 17:14, 24 August 2022
What is it used for?
This is an overlay template for Force Skill items.
How to use
Code
{{ForceRarity|file|link=skillname|rarity=itemrarity|size=1|float=position|valign=position}}
Parameters
- {{ForceRarity|file}} - name of the image (without the "File:" prefix)
- rarity - rarity of the item (Rare, Elite, Unique, or Legend)
- link - optional link to the item
- name - optional name to the item
- size - if 1, displays a 20px icon, if 2 - 32px, no value - 64px
- float - if right or left specified, pushes the picture to the right or the left of the page
- valign - vertical align of the picture, useful if inserted in the middle of a text block or so, can equal to top/bottom/baseline/middle
Examples
{{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend}}
result:
{{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend|link=Remaining El's Aspiration|name=Hello El}}
result:
{{ForceRarity|Item - Remaining El's Aspiration.png|rarity=Legend|size=1}}
result: