Difference between revisions of "Template:AI War 2 Icon"

From Arcen Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> {{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=VorticularCutlas...")
 
m
 
(One intermediate revision by the same user not shown)
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 6: Line 7:
 
This AI War 2 template loads an image with a link to the CSV exports done by [[User:Dominus Arbitrationis|Dominus]].
 
This AI War 2 template loads an image with a link to the CSV exports done by [[User:Dominus Arbitrationis|Dominus]].
 
The default behaviour is in-line, showing the {{AI_War_2_Icon|name=Fusion Bomber|icon=Bomber|label=true}} as an example.
 
The default behaviour is in-line, showing the {{AI_War_2_Icon|name=Fusion Bomber|icon=Bomber|label=true}} as an example.
 +
 +
It's possible to ignore the icon argument for entries like {{AI_War_2_Icon|name=Spider|label=yes}}, 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'''.
 
Passing anything to the optional '''label''' argument adds a label to the image after the text using '''name'''.
Line 19: 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}}}.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:

V-Wing Fusion Bomber Vicious Metabolizing Gangsaw Concussion Corvette Assault Frigate

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 BomberFusion Bomber as an example.

It's possible to ignore the icon argument for entries like SpiderSpider, 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}}}]]