Difference between revisions of "Template:GetInsigniaThumb"
From Pathfinder Wiki
DesignerThan (talk | contribs) (add support for pilots) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>[[File:{{{insignia|No_Patch.png}}}|30px|center]]</includeonly><noinclude> | + | <includeonly>[[File:{{#if:{{{insignia|}}}|{{{insignia}}}|{{#if:{{{usePilotNoPatch|}}}|Pilot_No_Patch.png|No_Patch.png}}}}|30px|center]]</includeonly><noinclude> |
Turns an insignia filename to <nowiki>[[</nowiki>File:''insignia''|30px|center]]. If the first argument is empty, it returns <nowiki>[[</nowiki>File:No_Patch.png|30px|center]]. | Turns an insignia filename to <nowiki>[[</nowiki>File:''insignia''|30px|center]]. If the first argument is empty, it returns <nowiki>[[</nowiki>File:No_Patch.png|30px|center]]. | ||
---- | ---- | ||
<nowiki>{{GetInsigniaThumb}}</nowiki> -> {{GetInsigniaThumb}} | <nowiki>{{GetInsigniaThumb}}</nowiki> -> {{GetInsigniaThumb}} | ||
− | <nowiki>{{GetInsigniaThumb|insignia=}}</nowiki> -> {{GetInsigniaThumb|}} | + | <nowiki>{{GetInsigniaThumb|insignia=}}</nowiki> -> {{GetInsigniaThumb|insignia=}} |
+ | |||
+ | <nowiki>{{GetInsigniaThumb|insignia=|usePilotNoPatch=true}}</nowiki> -> {{GetInsigniaThumb|insignia=|usePilotNoPatch=true}} | ||
<nowiki>{{GetInsigniaThumb|insignia=Smell_AY_Honour.png}}</nowiki> -> {{GetInsigniaThumb|insignia=Smell_AY_Honour.png}} | <nowiki>{{GetInsigniaThumb|insignia=Smell_AY_Honour.png}}</nowiki> -> {{GetInsigniaThumb|insignia=Smell_AY_Honour.png}} | ||
</noinclude> | </noinclude> |
Latest revision as of 16:20, 3 April 2022
Turns an insignia filename to [[File:insignia|30px|center]]. If the first argument is empty, it returns [[File:No_Patch.png|30px|center]].
{{GetInsigniaThumb}} ->
{{GetInsigniaThumb|insignia=}} ->
{{GetInsigniaThumb|insignia=|usePilotNoPatch=true}} ->
{{GetInsigniaThumb|insignia=Smell_AY_Honour.png}} ->