Template:Rank

From Gineipaedia, the Legend of Galactic Heroes wiki

(Difference between revisions)
Jump to: navigation, search
(created rank template (might not work...))
m (try again)
Line 1: Line 1:
-
<includeonly>{{#ifexist: {{{2|}}} | {{#switch: {{lc:{{{1|}}}}} | free planets| free planets alliance| fpa= [[Military ranks of the Free Planets Alliance#| galactic empire| ge| empire| imperial= [[Military ranks of the Galactic Empire#| #default= [[}}{{#switch: {{lc:{{{2|}}}}} | warrant| wo| warrant officer= Warrant_officer|{{#switch: {{{3|}}}|lc = warrant officer|sc = Warrant officer|#default = Warrant Officer}}| ens| ensign= Ensign|{{#switch: {{{3|}}}|lc = ensign|sc = Ensign|#default = Ensign}}| sub| sublt| sub lt| sub lieutenant| sublieutenant| sub-lieutenant= Sub-lieutenant|{{#switch: {{{3|}}}|lc = sub-lieutenant|sc = Sub-lieutenant|#default = Sub-lieutenant}}| lt| lieutenant= Lieutenant|{{#switch: {{{3|}}}|lc = lieutenant|sc = Lieutenant|#default = Lieutenant}}| ltcmdr| lt cmdr| lieutenant commander| lt commander= Lieutenant_commander|{{#switch: {{{3|}}}|lc = lieutenant commander|sc = Lieutenant commander|#default = Lt Commander}}| cmdr| commander= Commander|{{#switch: {{{3|}}}|lc = commander|sc = Commander|#default = Commander}}| capt| cpt| cptn| captain= Captain|{{#switch: {{{3|}}}|lc = captain|sc = Captain|#default = Captain}}| cdre| como| commodore= Commodore|{{#switch: {{{3|}}}|lc = commodore|sc = Commodore|#default = Commodore}}| radm| rear adm| rear admiral= Rear_admiral|{{#switch: {{{3|}}}|lc = rear admiral|sc = Rear admiral|#default = Rear Admiral}}| vadm| vice adm| vice admiral= Vice_admiral|{{#switch: {{{3|}}}|lc = vice admiral|sc = Vice admiral|#default = Vice Admiral}}| adm| admiral= Admiral|{{#switch: {{{3|}}}|lc = admiral|sc = Admiral|#default = Admiral}}| high| high adm| high admiral= High_admiral|{{#switch: {{{3|}}}|lc = high admiral|sc = High admiral|#default = High Admiral}}| fleet| fleet adm| flt| flt adm| fadm| fleet admiral= Fleet_admiral|{{#switch: {{{3|}}}|lc = fleet admiral|sc = Fleet admiral|#default = Fleet Admiral}}| #default= ERROR IN TEMPLATE}}]]| ERROR IN TEMPLATE }}</includeonly><noinclude>{{documentation}}[[Category:Custom templates]]</noinclude>
+
<includeonly>[[{{#switch: {{lc:{{{1|}}}}} | free planets| free planets alliance| fpa= Military ranks of the Free Planets Alliance#| galactic empire| ge| empire| imperial= Military ranks of the Galactic Empire#| #default= }}{{#switch: {{lc:{{{2|}}}}} | warrant| wo| warrant officer= Warrant_officer|{{#switch: {{{3|}}}|lc = warrant officer|sc = Warrant officer|#default = Warrant Officer}}| ens| ensign= Ensign|{{#switch: {{{3|}}}|lc = ensign|sc = Ensign|#default = Ensign}}| sub| sublt| sub lt| sub lieutenant| sublieutenant| sub-lieutenant= Sub-lieutenant|{{#switch: {{{3|}}}|lc = sub-lieutenant|sc = Sub-lieutenant|#default = Sub-lieutenant}}| lt| lieutenant= Lieutenant|{{#switch: {{{3|}}}|lc = lieutenant|sc = Lieutenant|#default = Lieutenant}}| ltcmdr| lt cmdr| lieutenant commander| lt commander= Lieutenant_commander|{{#switch: {{{3|}}}|lc = lieutenant commander|sc = Lieutenant commander|#default = Lt Commander}}| cmdr| commander= Commander|{{#switch: {{{3|}}}|lc = commander|sc = Commander|#default = Commander}}| capt| cpt| cptn| captain= Captain|{{#switch: {{{3|}}}|lc = captain|sc = Captain|#default = Captain}}| cdre| como| commodore= Commodore|{{#switch: {{{3|}}}|lc = commodore|sc = Commodore|#default = Commodore}}| radm| rear adm| rear admiral= Rear_admiral|{{#switch: {{{3|}}}|lc = rear admiral|sc = Rear admiral|#default = Rear Admiral}}| vadm| vice adm| vice admiral= Vice_admiral|{{#switch: {{{3|}}}|lc = vice admiral|sc = Vice admiral|#default = Vice Admiral}}| adm| admiral= Admiral|{{#switch: {{{3|}}}|lc = admiral|sc = Admiral|#default = Admiral}}| high| high adm| high admiral= High_admiral|{{#switch: {{{3|}}}|lc = high admiral|sc = High admiral|#default = High Admiral}}| fleet| fleet adm| flt| flt adm| fadm| fleet admiral= Fleet_admiral|{{#switch: {{{3|}}}|lc = fleet admiral|sc = Fleet admiral|#default = Fleet Admiral}}| #default= ERROR IN TEMPLATE}}]]</includeonly><noinclude>{{documentation}}[[Category:Custom templates]]</noinclude>

Revision as of 16:00, 8 May 2011

The following documentation is transcluded from Template:Rank/doc:

Description
Shortcut template for creating links to military ranks.
Syntax
{{rank|<FPA / Imperial>|<rank name>|[<lc / sc>]}}
Sample output
{{rank|fpa|fleet admiral}} produces: Fleet Admiral
{{rank|imperial|fleet admiral|lc}} produces: fleet admiral
{{rank|imperial|fleet admiral|sc}} produces: Fleet admiral
Notes
This template is used for linking to ranks of the FPA/Imperial militaries. The template defaults to title case ('Fleet Admiral') because its primary purpose is to be used in front of characters' names (for instance, 'Fleet Admiral Yang Wen-li'). However, rendering in lower-case ('fleet admiral') or sentence case ('Fleet admiral') is possible via the lc and sc options, respectively.
The template is relatively 'smart' and recognises several different variations on nation and rank names, which should hopefully catch most use cases. When in doubt, however, the fullest rendering of the name should always work.
Currently it is not required to use this when linking to ranks — but it may be at some point in the future.
Since the code for this template is somewhat complex, a formatted version has been made available at Rank/formatted. Please follow the instructions there, and make sure the two versions stay in synch.
Acknowledgements
n/a.
Personal tools
Namespaces
Variants
Actions
Miscellany
Common
Tool box