Template:Server-switch

From RPC Library
Jump to navigation Jump to search
Warning! This template uses arcane features of template syntax, such as parser functions, or is particularly complex. Please don't edit it unless you know exactly what you're doing.

This template, which is related to Template:Citizenship-switch, inserts a block of marked up text that depends on the value of its server parameter. Server-switch only supports known servers with significant RP populations as determined by the RPC staff. If you want your server added, please contact the site's administration.

Because of the limitations of template transclusion, if you need a pipe symbol in the blocks (say, if your block contains an Image tag), you should use Template:! instead of |.

Syntax

{{Server-switch
| server = The character's server, which should be some reasonable facsimile of the server name. 
    The template will attempt to automagically handle misspellings.
| balmung_block = The block to display if server is Balmung.
| famfrit_block = The block to display if server is Famfrit.
| gilgamesh_block = The block to display if server is Gilgamesh.
| hyperion_block = The block to display if server is Hyperion.
| jenova_block = The block to display if server is Jenova.
| moogle_block = The block to display if server is Moogle.
| siren_block = The block to display if server is Siren.
| mateus_block = The block to display if server is Mateus.
| default_block = (optional) The block to display if server can't be reasonably matched to any of the above. 
    If this isn't included, a failure to match returns empty text.
}}

Copy-paste

{{Server-switch
| server = 
| balmung_block = 
| famfrit_block = 
| gilgamesh_block = 
| hyperion_block = 
| jenova_block = 
| moogle_block = 
| siren_block = 
| mateus_block = 
| default_block =
}}