Template

WorldSwitch

From Dogcraft Wiki

No edit summary
No edit summary
Line 8: Line 8:
  | Survival 4 (Husky) = Survival 4
  | Survival 4 (Husky) = Survival 4
  | Survival 4 (Beagle) = Survival 4
  | Survival 4 (Beagle) = Survival 4
| [[Survival 4]] = Survival 4
| [[Survival 4]] (Husky) = Survival 4
| [[Survival 4]] (Beagle) = Survival 4
  | Husky = Survival 4
  | Husky = Survival 4
  | Beagle = Survival 4
  | Beagle = Survival 4
Line 15: Line 18:
  | MCMMO = MCMMO
  | MCMMO = MCMMO
  | {{{1}}}}}|{{#if: {{{2|}}}|[[Survival 4]]|}}}}
  | {{{1}}}}}|{{#if: {{{2|}}}|[[Survival 4]]|}}}}
| Subworld = {{#if: {{{2|}}} | {{{2}}} | {{#if: {{{1}}} | {{#switch: {{{1}}} | Survival 4 (Husky) = Husky | Survival 4 (Beagle) = Beagle | Husky = Husky | Beagle = Beagle |}} |}}}}
| Subworld = {{#if: {{{2|}}} | {{{2}}} | {{#if: {{{1|}}} | {{#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}}}
| 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 (Beagle) = [[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]]
| [[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]] (Beagle) = [[Survival Railway Network (Survival 4)|Survival 4 {{{2|}}} Railway Network]]
|[[Survival Railway Network ({{{1}}})]]}}
|{{#if: {{{1}}} | {{#switch: {{{1}}}  
|{{#if: {{{1}}} | {{#switch: {{{1}}}  
  | Survival = [[Survival]]  
  | Survival = [[Survival]]  
Line 33: Line 53:
  | Creative = [[Creative]]  
  | Creative = [[Creative]]  
  | MCMMO = [[MCMMO]]  
  | MCMMO = [[MCMMO]]  
  | {{{1}}} }}|{{#if: {{{2}}}|{{#switch: {{{2|}}}  
  | {{{1}}} }}|{{#if: {{{2|}}}|{{#switch: {{{2|}}}  
  | Husky = [[Survival 4]] (Husky)  
  | Husky = [[Survival 4]] (Husky)  
  | Beagle = [[Survival 4]] (Beagle)  
  | Beagle = [[Survival 4]] (Beagle)  

Revision as of 00:26, 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: Survival 4

{{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 00:26. (3 months ago)