Template

WorldSwitch

From Dogcraft Wiki

No edit summary
(Indents! I'm getting lost in the labyrinth of my own system, and have a newfound respect for the people who make the formatting tools for well, everywhere.)
Line 1: Line 1:
<includeonly>{{#switch: {{{mode|}}}  
<includeonly>{{#switch: {{{mode|}}}  
| Category = {{#if: {{{1}}} | {{#switch: {{{1}}}  
| Category = {{#if: {{{1}}}  
| Survival = Survival
  |{{#switch: {{{1}}}  
| Survival 1 = Survival 1
      | Survival = Survival
| Survival 2 = Survival 2
      | Survival 1 = Survival 1
| Survival 3 = Survival 3
      | Survival 2 = Survival 2
| Survival 4 = Survival 4
      | Survival 3 = Survival 3
| Survival 4 (Husky) = Survival 4
      | Survival 4 = Survival 4
| Survival 4 (Beagle) = Survival 4
      | Survival 4 (Husky) = Survival 4
| [[Survival 4]] = Survival 4
      | Survival 4 (Beagle) = Survival 4
| [[Survival 4]] (Husky) = Survival 4
      | [[Survival 4]] = Survival 4
| [[Survival 4]] (Beagle) = Survival 4
      | [[Survival 4]] (Husky) = Survival 4
| Husky = Survival 4
      | [[Survival 4]] (Beagle) = Survival 4
| Beagle = Survival 4
      | Husky = Survival 4
| Amplified = Amplified
      | Beagle = Survival 4
| Skyblock = Skyblock
      | Amplified = Amplified
| Creative = Creative
      | Skyblock = Skyblock
| MCMMO = MCMMO
      | Creative = Creative
| {{{1}}}}}|{{#if: {{{2|}}}|[[Survival 4]]|}}
      | MCMMO = MCMMO
}}
      | {{{1}}}
| Subworld = {{#if: {{{2|}}} | {{{2}}} | {{#if: {{{1|}}} | {{#switch: {{{1|}}}  
    }}
| Survival 4 (Husky) = Husky  
  |{{#if: {{{2|}}}|[[Survival 4]]|}}
| Survival 4 (Beagle) = Beagle  
}}
| Husky = Husky  
| Subworld = {{#if: {{{2|}}}  
| Beagle = Beagle
  | {{{2}}}  
| [[Survival 4]] (Husky) = Husky
  | {{#if: {{{1|}}}  
| [[Survival 4]] (Beagle) = Beagle  
      |{{#switch: {{{1|}}}  
|}}|}}
          | Survival 4 (Husky) = Husky  
}}
          | Survival 4 (Beagle) = Beagle  
          | Husky = Husky  
          | Beagle = Beagle
          | [[Survival 4]] (Husky) = Husky
          | [[Survival 4]] (Beagle) = Beagle  
      |}}
  |}}
}}
| Network = {{#switch: {{{1}}}  
| Network = {{#switch: {{{1}}}  
| Survival 4 = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
  | Survival 4 = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
| Survival 4 (Husky) = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
  | Survival 4 (Husky) = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
| Survival 4 (Beagle) = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
  | Survival 4 (Beagle) = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
| Husky = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
  | Husky = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
| Beagle = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
  | Beagle = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
| [[Survival 4]] = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
  | [[Survival 4]] = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
| [[Survival 4]] (Husky) = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
  | [[Survival 4]] (Husky) = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
| [[Survival 4]] (Beagle) = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
  | [[Survival 4]] (Beagle) = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
|[[Survival Railway Network ({{{1}}})]]
  |[[Survival Railway Network ({{{1}}})]]
}}
}}
|{{#if: {{{1}}} | {{#switch: {{{1}}}  
|{{#if: {{{1}}}  
| Survival = [[Survival]]  
  |{{#switch: {{{1}}}  
| Survival 1 = [[Survival 1]]  
      | Survival = [[Survival]]  
| Survival 2 = [[Survival 2]]  
      | Survival 1 = [[Survival 1]]  
| Survival 3 = [[Survival 3]]  
      | Survival 2 = [[Survival 2]]  
| Survival 4 = {{#switch: {{{2|}}}  
      | Survival 3 = [[Survival 3]]  
  | Husky = [[Survival 4]] (Husky)  
      | Survival 4 = {{#if: {{{2|}}}
  | Beagle = [[Survival 4]] (Beagle)  
        |{{#switch: {{{2|}}}  
  | [[Survival 4]]}}  
            | Husky = [[Survival 4]] (Husky)  
| Survival 4 (Husky) = [[Survival 4]] (Husky)
            | Beagle = [[Survival 4]] (Beagle)  
| Survival 4 (Beagle) = [[Survival 4]] (Beagle)
            | [[Survival 4]]
| Husky = [[Survival 4]] (Husky)  
          }}
| Beagle = [[Survival 4]] (Beagle)  
        |}}  
| Amplified = [[Amplified]]  
      | Survival 4 (Husky) = [[Survival 4]] (Husky)
| Skyblock = [[Skyblock]]  
      | Survival 4 (Beagle) = [[Survival 4]] (Beagle)
| Creative = [[Creative]]  
      | Husky = [[Survival 4]] (Husky)  
| MCMMO = [[MCMMO]]  
      | Beagle = [[Survival 4]] (Beagle)  
| {{{1}}} }}|{{#if: {{{2|}}}|{{#switch: {{{2|}}}  
      | Amplified = [[Amplified]]  
| Husky = [[Survival 4]] (Husky)  
      | Skyblock = [[Skyblock]]  
| Beagle = [[Survival 4]] (Beagle)  
      | Creative = [[Creative]]  
| [[Survival 4]]}}|}}
      | MCMMO = [[MCMMO]]  
      | {{{1}}}  
    }}
  |{{#if: {{{2|}}}
      |{{#switch: {{{2|}}}  
        | Husky = [[Survival 4]] (Husky)  
        | Beagle = [[Survival 4]] (Beagle)  
        | [[Survival 4]]
      }}
  |}}
  }}
  }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>

Revision as of 01:37, 5 July 2021


WorldSwitch template

This is a technical template meant to be used inside other template, mainly infoboxes. It converts server world names to include links. It handles most common ways of refering to past and present worlds.

Example

{{WorldSwitch|Survival}} generates: Survival

{{WorldSwitch|Survival 4}} generates:

{{WorldSwitch|Survival 4|Husky}} generates: Survival 4 (Husky)

{{WorldSwitch|Survival 4 (Husky)}} generates: Survival 4 (Husky)

{{WorldSwitch|Husky}} generates: Survival 4 (Husky)

{{WorldSwitch||Husky}} generates: Survival 4 (Husky)

{{WorldSwitch|Husky|mode=Category}} generates: Survival 4

{{WorldSwitch||Husky|mode=Category}} generates: Survival 4

{{WorldSwitch|Survival 4 (Husky)|mode=Category}} generates: Survival 4

{{WorldSwitch|Survival 4 (Husky)|mode=Subworld}} generates: Husky

This page was last modified on 5 July 2021, at 01:37. (3 months ago)