Difference between revisions of "Template:Major/doc"

From Space Engineers Wiki
Jump to: navigation, search
(-)
 
m (__NOTOC__)
Line 19: Line 19:
 
<code><nowiki>{{Major|80px}}</nowiki></code><br>
 
<code><nowiki>{{Major|80px}}</nowiki></code><br>
 
This syntax creates a slightly larger image than the previous example. This is half of the image's native size.
 
This syntax creates a slightly larger image than the previous example. This is half of the image's native size.
 +
__NOTOC__

Revision as of 09:18, 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.

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.