Difference between revisions of "Template:Rank"


m
 
Line 1: Line 1:
<div style="position: relative; width: {{{6|144}}}px;"><!-- Opening div -->
+
<div style="position: relative; width: {{{7|144}}}px; {{#if: {{{6|}}} | display:inline-block}};"><!-- Opening div -->
 
<!-- Pips div --><div style="position: absolute; left: 0px; top: 0px; padding: 0;"><!--
 
<!-- Pips div --><div style="position: absolute; left: 0px; top: 0px; padding: 0;"><!--
   Pips image -->[[Image:{{{4|AGT}}}{{{1|Blank}}}.png|{{{6|144}}}px]]</div><!--
+
   Pips image -->[[Image:{{{4|AGT}}}{{{1|Blank}}}.png|{{{7|144}}}px]]</div><!--
   Uniform image -->[[Image:{{{5|{{{4|AGT}}}}}}{{{2|Black}}}.png|{{{6|144}}}px]]<!--
+
   Uniform image -->[[Image:{{{5|{{{4|AGT}}}}}}{{{2|Black}}}.png|{{{7|144}}}px]]<!--
 
   Rank name and link -->{{#if: {{{3|}}} | <br \><div style="text-align:center;"><font size="1">[[{{{3|}}}]]</font></div>}}
 
   Rank name and link -->{{#if: {{{3|}}} | <br \><div style="text-align:center;"><font size="1">[[{{{3|}}}]]</font></div>}}
 
</div><noinclude>
 
</div><noinclude>
Line 27: Line 27:
 
<pre>{{Rank|o3|Yellow|Lieutenant|DS9|VOY}}</pre>
 
<pre>{{Rank|o3|Yellow|Lieutenant|DS9|VOY}}</pre>
 
{{Rank|o3|Yellow|Lieutenant|DS9|VOY}}
 
{{Rank|o3|Yellow|Lieutenant|DS9|VOY}}
 +
 +
<pre>{{Rank|o6|Red||DS9|DS9|inline}}</pre>
 +
{{Rank|o6|Red||DS9|DS9|inline}}
  
 
All fields except RankImage and UniformColour are optional. If you leave off the RankName, no text will appear beneath the uniform. If you give no genre, it will default to AGT (All Good Things). Values must be given in the correct order, so to set a different genre, you must either set a rank name or use the pipe (<nowiki>|</nowiki>) twice to indicate an empty value. You only need to set the PipsGenre unless the genre of the pips and the uniform do not match - for example, the Voyager uniforms use the DS9 pips.
 
All fields except RankImage and UniformColour are optional. If you leave off the RankName, no text will appear beneath the uniform. If you give no genre, it will default to AGT (All Good Things). Values must be given in the correct order, so to set a different genre, you must either set a rank name or use the pipe (<nowiki>|</nowiki>) twice to indicate an empty value. You only need to set the PipsGenre unless the genre of the pips and the uniform do not match - for example, the Voyager uniforms use the DS9 pips.
  
 
[[Category:Rank Templates]]</noinclude>
 
[[Category:Rank Templates]]</noinclude>

Latest revision as of 17:51, 13 March 2016

AGTBlank.png
AGTBlack.png

Usage:

{{Rank
|RankImage
|UniformColour
|RankName
|PipsGenre
|UniformGenre
}}

Examples:

{{Rank|o6|Red|Captain|AGT}}
AGTo6.png
AGTRed.png
{{Rank|mo4|Olive}}
AGTmo4.png
AGTOlive.png
{{Rank|o5|Yellow||TNG}}
TNGo5.png
TNGYellow.png
{{Rank|o3|Yellow|Lieutenant|DS9|VOY}}
DS9o3.png
VOYYellow.png
{{Rank|o6|Red||DS9|DS9|inline}}
DS9o6.png
DS9Red.png

All fields except RankImage and UniformColour are optional. If you leave off the RankName, no text will appear beneath the uniform. If you give no genre, it will default to AGT (All Good Things). Values must be given in the correct order, so to set a different genre, you must either set a rank name or use the pipe (|) twice to indicate an empty value. You only need to set the PipsGenre unless the genre of the pips and the uniform do not match - for example, the Voyager uniforms use the DS9 pips.