Difference between revisions of "Template:Division"

From eRepublik Official Wiki
Jump to: navigation, search
(added optional size parameter)
(two versions implemented / resize option temporarily removed)
 
Line 1: Line 1:
<includeonly>[[File:Icon_division_{{{1|}}}.png| {{#if: {{{size|}}} | {{{size|}}}px }}]]</includeonly><noinclude>This is the '''Division template'''. It displays the specified division's icon.
+
<includeonly>{{#if: {{{2|}}}|[[File:Icon_division_{{{1|}}}.png]]|[[File:Icon_division_{{{1|}}}_blue.png]]}}</includeonly><noinclude>This is the '''Division template'''. It displays the specified division's icon. There are two versions:
 +
*Blue (smaller)
 +
*Golden (larger)
  
 +
To use the blue version, simply input Division and number of the division, while for the golden version add G as the second condition. More information below.
 +
 +
==Version 1 (blue)==
 
'''Input:'''
 
'''Input:'''
  
Line 8: Line 13:
 
:<nowiki>{{Division|4}}</nowiki>
 
:<nowiki>{{Division|4}}</nowiki>
 
:<nowiki>{{Division|Airforce}}</nowiki>
 
:<nowiki>{{Division|Airforce}}</nowiki>
 
  
 
'''Output:'''
 
'''Output:'''
 
 
:{{Division|1}}
 
:{{Division|1}}
 
:{{Division|2}}
 
:{{Division|2}}
Line 18: Line 21:
 
:{{Division|Airforce}}
 
:{{Division|Airforce}}
  
 +
==Version 2 (gold)==
 +
'''Input:'''
 +
:<nowiki>{{Division|1|G}}</nowiki>
 +
:<nowiki>{{Division|2|G}}</nowiki>
 +
:<nowiki>{{Division|3|G}}</nowiki>
 +
:<nowiki>{{Division|4|G}}</nowiki>
 +
:<nowiki>{{Division|Airforce|G}}</nowiki>
  
'''Size:'''
+
'''Output:'''
 
+
:{{Division|1|G}}
You can specify icon size by adding optional size parameter.
+
:{{Division|2|G}}
:<nowiki>{{Division|Airforce|size=30}}</nowiki>
+
:{{Division|3|G}}
 
+
:{{Division|4|G}}
:{{Division|Airforce|size=30}}
+
:{{Division|Airforce|G}}
  
 
[[Category:Graphical Aid Templates|Division]]</noinclude>
 
[[Category:Graphical Aid Templates|Division]]</noinclude>

Latest revision as of 00:39, 4 May 2019

This is the Division template. It displays the specified division's icon. There are two versions:

  • Blue (smaller)
  • Golden (larger)

To use the blue version, simply input Division and number of the division, while for the golden version add G as the second condition. More information below.

Version 1 (blue)

Input:

{{Division|1}}
{{Division|2}}
{{Division|3}}
{{Division|4}}
{{Division|Airforce}}

Output:

Icon division 1 blue.png
Icon division 2 blue.png
Icon division 3 blue.png
Icon division 4 blue.png
Icon division Airforce blue.png

Version 2 (gold)

Input:

{{Division|1|G}}
{{Division|2|G}}
{{Division|3|G}}
{{Division|4|G}}
{{Division|Airforce|G}}

Output:

Icon division 1.png
Icon division 2.png
Icon division 3.png
Icon division 4.png
Icon division Airforce.png