Difference between pages "Template:Belligerent" and "Template:Flagicon"

Template page
(Difference between pages)
 
 
Line 1: Line 1:
<!--{{#if: {{{2|}}}|
<!--{{#if: {{{1|}}}|
<div style="float:left;">{{flagicon|{{{1}}}}}{{{2}}}</div>|
<div style="float:left; ">[[File:{{{1}}}|23x23px]]</div>
<div style="float:left;">{{{1}}}</div>|
}}-->
}}-->
<span class="flagicon" style="float:left; vertical-align:text-top;">[[File:{{{1}}}|20x20px]]</span>
<noinclude>
This is simply powering the flagicon portion of [[Template:Belligerent]]. It doesn't seem to work if included in the Belligerent template, go figure, so this lives here separately and everything works beautifully.


{{#if: {{{2|}}}|
When calling this, simply use the name of the image you wish to call as a icon for use. Do remember to get the extension correct.
<div style="float:left;">[[File:{{{1}}}|x20px]]{{{2}}}</div>|
{{{1}}}|
}}
 
<noinclude>
This template is controlling the Belligerent field that can be entered into the Conflict infobox box.


Code for it is
<pre>
<pre>
{{belligerent|icon|name}}
{{flagicon|image}}
</pre>
</pre>


If you include the name of an icon picture, it will render on the Conflict infobox. The currently list of icons is as follows:
{{plainlist|
*FEDicon {{flagicon|FEDicon}}
*KDFicon {{flagicon|KDFicon}}
*ROMicon {{flagicon|ROMicon}}
*CARDicon {{flagicon|CARDicon}}
*FERicon {{flagicon|FERicon}}
*DOMicon {{flagicon|DOMicon}}
*BREENicon {{flagicon|BREENicon}}
*Xindi icon {{flagicon|Xindi icon}}
*BORGicon {{flagicon|BORGicon}}
*9icon {{flagicon|9icon}}
*38icon {{flagicon|38icon}}
*64icon {{flagicon|64icon}}
*72icon {{flagicon|72icon}}
*86icon {{flagicon|86icon}}
*93icon {{flagicon|93icon}}
*NXicon {{flagicon|NXicon}}
*TOSicon {{flagicon|TOSicon}}
*WOKicon {{flagicon|WOKicon}}
*SFicon {{flagicon|SFicon}}
*KelvinIcon {{flagicon|KelvinIcon}}
*Canonicon {{flagicon|Canonicon}}
}}
</noinclude>
</noinclude>

Revision as of 12:06, 31 January 2021

[[File:{{{1}}}|20x20px]]

This is simply powering the flagicon portion of Template:Belligerent. It doesn't seem to work if included in the Belligerent template, go figure, so this lives here separately and everything works beautifully.

When calling this, simply use the name of the image you wish to call as a icon for use. Do remember to get the extension correct.

{{flagicon|image}}