Difference between revisions of "Template:Rank"

From eRepublik Official Wiki
Jump to: navigation, search
m (Undo revision 495455 by Sampo555 (talk))
 
(Change default rank to Recruit as in the game (hope it works :d))
 
Line 1: Line 1:
<includeonly>[[File:{{Rank/Switch|{{{1|}}}}}|20px]]&nbsp;[[Military rank|{{{2|{{#ifeq:{{{1|}}}||Private|{{{1|Private}}}}}}}}]]</includeonly><noinclude>
+
<includeonly>[[File:{{Rank/Switch|{{{1|}}}}}|20px]]&nbsp;[[Military rank|{{{2|{{#ifeq:{{{1|}}}||Recruit|{{{1|Recruit}}}}}}}}]]</includeonly><noinclude>
 
This is a simple '''rank template''', which can be used similarly to [[Template:SmFlag]].
 
This is a simple '''rank template''', which can be used similarly to [[Template:SmFlag]].
  
 
== Usage ==
 
== Usage ==
Writing "<nowiki>{{Rank|Recruit}}</nowiki>" will produce "{{Rank|Recruit}}". All of the links this template produces will point to the [[Military rank]] page.
+
Writing "<nowiki>{{Rank|Private}}</nowiki>" will produce "{{Rank|Private}}". All of the links this template produces will point to the [[Military rank]] page.
  
 
Ranks with stars can be added by writing "<nowiki>{{Rank|Field Marshal**}}</nowiki>", which will produce "{{Rank|Field Marshal**}}"
 
Ranks with stars can be added by writing "<nowiki>{{Rank|Field Marshal**}}</nowiki>", which will produce "{{Rank|Field Marshal**}}"
  
If the rank icon isn't found, an icon of Private will be shown. Please check the name of the rank in case this happens (list of ranks can be found [[Military rank|here]]).
+
If the rank icon isn't found, an icon of Recruit will be shown. Please check the name of the rank in case this happens (list of ranks can be found [[Military rank|here]]).
  
 
=== How to use [[One:Military rank|version 1 military ranks]]? ===
 
=== How to use [[One:Military rank|version 1 military ranks]]? ===
If you want to use military ranks from Version 1, you must put "V1" prefix before the rank name (if the name isn't right, it will default to current private icon).
+
If you want to use military ranks from Version 1, you must put "V1" prefix before the rank name (if the name isn't right, it will default to current recruit icon).
  
 
<nowiki>{{Rank|V1 Private}}</nowiki> will produce "{{Rank|V1 Private}}".
 
<nowiki>{{Rank|V1 Private}}</nowiki> will produce "{{Rank|V1 Private}}".

Latest revision as of 18:03, 8 April 2020

This is a simple rank template, which can be used similarly to Template:SmFlag.

Usage

Writing "{{Rank|Private}}" will produce "Icon rank Private.png Private". All of the links this template produces will point to the Military rank page.

Ranks with stars can be added by writing "{{Rank|Field Marshal**}}", which will produce "Icon rank Field Marshal**.png Field Marshal**"

If the rank icon isn't found, an icon of Recruit will be shown. Please check the name of the rank in case this happens (list of ranks can be found here).

How to use version 1 military ranks?

If you want to use military ranks from Version 1, you must put "V1" prefix before the rank name (if the name isn't right, it will default to current recruit icon).

{{Rank|V1 Private}} will produce "Icon Private.jpg V1 Private".