Template:Pips: Difference between revisions

From Stellar Kennings
Jump to navigation Jump to search
(creating pip template.)
 
(some fixes for invoke)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="position: relative;"><div style="position: relative; float:right">[[File:{{PipStyle|{{{3|}}}}}-{{PipColor|{{{1}}}}}-{{PipRank|{{{2}}}}}.png]]</div></div>
<div style="position: relative;"><div style="position: relative; float:right">[[File:{{PipStyle|{{{3}}}}}-{{PipColor|{{{1}}}}}-{{PipRank|{{{2}}}}}.png]]</div></div>
</includeonly>
</includeonly><noinclude>
This template generates a pip rank image. Example:
 
<nowiki>
{{Pips|Red|Captain|Enterprise}}
</nowiki>
 
produces {{Pips|Red|Captain|Enterprise}}
 
Note the last is optional:
 
 
<nowiki>
{{Pips|Red|Captain}}
</nowiki>
 
produces {{Pips|Red|Captain}}
</noinclude>
 
[[Category: Templates]]

Latest revision as of 12:46, 11 June 2022

This template generates a pip rank image. Example:

{{Pips|Red|Captain|Enterprise}}

produces

Note the last is optional:


{{Pips|Red|Captain}}

produces