Difference between revisions of "Template:Major"
From Space Engineers Wiki
Cryptkeeper (talk | contribs) m |
Cryptkeeper (talk | contribs) m (formatting) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[File:Major_Button.png|{{{1}}}|link=]] | + | [[File:Major_Button.png|{{{1}}}{{#if: {{{vert|}}} | {{!}}{{{vert}}} }}|link=]]<noinclude>{{Template:Major/doc}}</noinclude> |
Latest revision as of 09:22, 28 August 2017
Documentation
Required parameters
- Either height or width, but not both. This must be the first parameter.
- Height example:
x17px
. Note the preceding "x". - Width example:
65px
.
- Height example:
Optional parameters
- vert - Vertical alignment can be specified. The default is "middle". If used in line of text, use "text-bottom". This is a named parameter.
- link - Where the image should link to. Suppressed by default. This is a named parameter.
Syntax
Minimum syntax: {{Major|size}}
Full syntax: {{Major|size|vert=|link=}}
Examples
{{Major|x17px|vert=text-bottom}}
This syntax creates an image suitable for placing inline with text.
{{Major|80px}}
This syntax creates a slightly larger image than the previous example. This is half of the image's native size.