Template:Force/doc: Difference between revisions
From Elwiki
(Created page with "__NOTOC__ == What is it used for? == This is an overlay template for Force Skill icons. == How to use == === Code === <nowiki>{{Force|file|link=skillname|si...") |
|||
Line 10: | Line 10: | ||
*<nowiki>{{Force|</nowiki>'''file'''<nowiki>}}</nowiki> - name of the image (without the "File:" prefix) | *<nowiki>{{Force|</nowiki>'''file'''<nowiki>}}</nowiki> - name of the image (without the "File:" prefix) | ||
*'''link''' - optional link to the skill (provide only skill name, redirects to [Mod] automatically) | *'''link''' - optional link to the skill (provide only skill name, redirects to [Mod] automatically) | ||
*'''size''' - if '''1''', displays a | *'''size''' - if '''1''', displays a 20px icon, if '''2''' - 27px | ||
*[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 |
Revision as of 16:58, 14 March 2022
What is it used for?
This is an overlay template for Force Skill icons.
How to use
Code
{{Force|file|link=skillname|size=1|float=position|valign=position}}
Parameters
- {{Force|file}} - name of the image (without the "File:" prefix)
- link - optional link to the skill (provide only skill name, redirects to [Mod] automatically)
- size - if 1, displays a 20px icon, if 2 - 27px
- 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
{{Force|MariciSkill4.png}}
result:
{{Force|MariciSkill4.png|link=Iceberg}}
result:
{{Force|MariciSkill4.png|size=1}}
result: