Template:CroppedPips2Collar: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div style="position: relative; width: {{{1}}}px; overflow: hidden"><div style="position: relative; left: -{{#expr: 120-({{{1}}}/2)}}px;">{{Pips2Collar|{{{2}}}|{{{3}}}|{{{4|}}}}}</div></div></includeonly><noinclude>
<includeonly><div style="position: relative; width: {{{1}}}px; overflow: hidden"><div style="position: relative; left: -{{#expr: {{#switch: {{{4|}}}|TOS=144|120}}-({{{1}}}/2)}}px;">{{Pips2Collar|{{{2}}}|{{{3}}}|{{{4|}}}}}</div></div></includeonly><noinclude>
Create a cropped version of the [[Template:Pips2Collar]]. Just specify desired width of the crop:
Create a cropped version of the [[Template:Pips2Collar]]. Just specify desired width of the crop:


Line 8: Line 8:
<pre>{{CroppedPips2Collar|180|Lt. Commander|Red}}</pre>
<pre>{{CroppedPips2Collar|180|Lt. Commander|Red}}</pre>


{{CroppedPips2Collar|180|Lt. Commander|Red}}
{{CroppedPips2Collar|180|Lt. Commander|Red|TOS}}


See original [[Template:Pips2Collar]] for full instructions on other parameters.
See original [[Template:Pips2Collar]] for full instructions on other parameters.

Revision as of 03:55, 18 September 2016

Create a cropped version of the Template:Pips2Collar. Just specify desired width of the crop:

Original:

04-LtCmdr-Red.png
00-Blank-Red.png

Cropped version (example of total width of 180 pixels):

{{CroppedPips2Collar|180|Lt. Commander|Red}}
TOS-Lt. Commander.png
TOS-Red.png
TOS-Blank.png
TOS-Red.png

See original Template:Pips2Collar for full instructions on other parameters.