Difference between revisions of "Template:Major"

From Space Engineers Wiki
Jump to: navigation, search
m (Updated with documentation)
m (formatting)
 
Line 1: Line 1:
[[File:Major_Button.png|{{{1}}}{{#if: {{{vert|}}} | {{!}}{{{vert}}} }}|link=]]
+
[[File:Major_Button.png|{{{1}}}{{#if: {{{vert|}}} | {{!}}{{{vert}}} }}|link=]]<noinclude>{{Template:Major/doc}}</noinclude>
<noinclude>{{Template:Major/doc}}</noinclude>
 

Latest revision as of 09:22, 28 August 2017

{{{1}}}

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.

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.