Difference between revisions of "Template:Infobox dam/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Galobtter
(ad)
imported>Galobtter
(try something)
 
Line 1: Line 1:
{{#invoke:Type in location|main|{{#switch:{{uc:{{{dam_type|}}}}}
+
{{#invoke:Type in location|main|{{#if:{{#invoke:String|match|{{PAGENAME}}|Power Station}}||{{#switch:{{uc:{{{dam_type|}}}}}
 
                   |A=[[Arch dam]]
 
                   |A=[[Arch dam]]
 
                   |B=[[Barrage (dam)|Barrage]]
 
                   |B=[[Barrage (dam)|Barrage]]
Line 8: Line 8:
 
                   |AG=[[Arch-gravity dam]]
 
                   |AG=[[Arch-gravity dam]]
 
                   |#default={{{dam_type|}}}
 
                   |#default={{{dam_type|}}}
                   }}|{{{location|}}}{{#if:{{{country|}}}|, {{{country|}}}}}|check-patterns=[Dd]am;[Bb]arrage|invalidadd = dam}}{{Infobox
+
                   }}}}|{{{location|}}}{{#if:{{{country|}}}|, {{{country|}}}}}|check-patterns=[Dd]am;[Bb]arrage|invalidadd = dam}}{{Infobox
 
| bodyclass    = vcard
 
| bodyclass    = vcard
 
| child        = {{{child|{{{embed|}}}}}}
 
| child        = {{{child|{{{embed|}}}}}}

Latest revision as of 15:37, 19 May 2018