Difference between revisions of "Template:Armour add"

From Discworld MUD Wiki
Jump to: navigation, search
(Show Shield in tables of shield instead of Armour)
(fix header and switch)
Line 1: Line 1:
 
{{!}}- {{#if:{{{header|}}}|class="unsortable"|}}
 
{{!}}- {{#if:{{{header|}}}|class="unsortable"|}}
 
{{#if:{{{header|}}}|
 
{{#if:{{{header|}}}|
! {{#switch: {{#ifeq:{{{pagetype|}}}||{{#titleparts: {{PAGENAME}} | 1 | 1 }}|{{{pagetype|}}}}}
+
! {{#switch: {{#ifeq:{{{pagetype|}}}||{{#titleparts: {{PAGENAME}} | 1 | 1 }}|{{#titleparts: {{{pagetype|}}} | 1 | 1 }} }}
 
| Shield  
 
| Shield  
 
| Endorphin's Floating Friend = Shield
 
| Endorphin's Floating Friend = Shield
 
| #default = Armour
 
| #default = Armour
 
}}
 
}}
{{Armour line|header=yes|pagetype={{{pagetype|}}}}}
+
{{Armour line|header=yes|pagetype={{#titleparts: {{{pagetype|}}} | 1 | 1 }}
 
|
 
|
 
{{!}} [[{{{1|}}}{{#if:{{{2|}}}|{{!}}{{{2|}}}|}}]]
 
{{!}} [[{{{1|}}}{{#if:{{{2|}}}|{{!}}{{{2|}}}|}}]]

Revision as of 04:35, 13 July 2020

|- {{#if:| ! Armour

[edit]

Documentation