Difference between revisions of "Template:AI War 2 Icon"
m |
m |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
+ | Examples: | ||
{{AI_War_2_Icon|name=V-Wing|icon=Fighter}} {{AI_War_2_Icon|name=Fusion Bomber|icon=Bomber}} {{AI_War_2_Icon|name=Vicious Metabolizing Gangsaw|icon=VorticularCutlass}} {{AI_War_2_Icon|name=Concussion Corvette|icon=Corvette}} {{AI_War_2_Icon|name=Assault Frigate|icon=Starship}} | {{AI_War_2_Icon|name=V-Wing|icon=Fighter}} {{AI_War_2_Icon|name=Fusion Bomber|icon=Bomber}} {{AI_War_2_Icon|name=Vicious Metabolizing Gangsaw|icon=VorticularCutlass}} {{AI_War_2_Icon|name=Concussion Corvette|icon=Corvette}} {{AI_War_2_Icon|name=Assault Frigate|icon=Starship}} | ||
Line 21: | Line 22: | ||
For future users, it will be useful to remove the Ships prefix in all images to enable this to work for every icon upload. | For future users, it will be useful to remove the Ships prefix in all images to enable this to work for every icon upload. | ||
+ | ----- | ||
</noinclude> | </noinclude> | ||
[[File:AIW2_Ships_{{{icon|{{{name}}}}}}.png|{{{va=middle}}}|{{{ha=none}}}|{{{size|32}}}px|link=AI_War_2:{{{name}}}|{{{name}}}]]{{#ifeq:{{{label|}}}|{{{label|-}}}|'''{{{name}}}'''|}} | [[File:AIW2_Ships_{{{icon|{{{name}}}}}}.png|{{{va=middle}}}|{{{ha=none}}}|{{{size|32}}}px|link=AI_War_2:{{{name}}}|{{{name}}}]]{{#ifeq:{{{label|}}}|{{{label|-}}}|'''{{{name}}}'''|}} |
Latest revision as of 00:33, 5 August 2019
Examples:
Usage
This AI War 2 template loads an image with a link to the CSV exports done by Dominus. The default behaviour is in-line, showing the Fusion Bomber as an example.
It's possible to ignore the icon argument for entries like Spider, where the icon name is the same as the actual name.
Passing anything to the optional label argument adds a label to the image after the text using name.
The size argument is optional, and defaults to 32px.
The alignment arguments are va and ha. This defaults to in-line, but can be set to things like middle and center as a standard image.
The icon for a basic ship type is:
- The same name without spaces if it is a strikecraft, or the parent type that it has been templated from in the XML.
- Corvette if it ends with corvette. These are distinguished in game by a sub-icon.
- Starship if frigate. These are distinguished in game by a sub-icon.
For future users, it will be useful to remove the Ships prefix in all images to enable this to work for every icon upload.
[[File:AIW2_Ships_{{{name}}}.png|{{{va=middle}}}|{{{ha=none}}}|32px|link=AI_War_2:{{{name}}}|{{{name}}}]]