Difference between revisions of "Template:Rank"
From eRepublik Official Wiki
(Change default rank to Recruit as in the game (hope it works :d)) |
|||
Line 1: | Line 1: | ||
− | <includeonly>[[File:{{Rank/Switch|{{{1|}}}}}|20px]] [[Military rank|{{{2|{{#ifeq:{{{1|}}}|| | + | <includeonly>[[File:{{Rank/Switch|{{{1|}}}}}|20px]] [[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| | + | 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 | + | 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 | + | 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 " 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 " 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 " V1 Private".