Difference between revisions of "Template:Ownership insert"
From Wikishire
(Created page with '<includeonly>{{#ifeq:{{Owned by code|{{{1}}}}}|National Trust|{{Owned by NT|{{Part-BI|{{{2}}}}}}}|{{#ifexist:{{{1}}}|[[{{{1}}}]]|{{{1}}}}}}}</includeonly><noinclude>'''Template:O…') |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{# | + | <includeonly>{{#vardefine:otag|{{Owned by code|{{{1}}} }} }}{{#switch:{{#var:otag}} |
+ | |National Trust={{Owned by NT|{{Part-BI|{{{2}}}}}}} | ||
+ | |State care=(State care) | ||
+ | |{{ifif|{{#var:otag}}}} }}</includeonly><noinclude>'''Template:Ownership insert''' is for placing in infoboxes. | ||
This template interrogates the ''<nowiki>{{{</nowiki>ownership<nowiki>}}}</nowiki>'' field and ''<nowiki>{{#var:shire}}</nowiki>'' variable to produce a visible "Ownership" label and to decide whether or not it has a link. | This template interrogates the ''<nowiki>{{{</nowiki>ownership<nowiki>}}}</nowiki>'' field and ''<nowiki>{{#var:shire}}</nowiki>'' variable to produce a visible "Ownership" label and to decide whether or not it has a link. | ||
[[Category:Ownership templates|Ownership insert]] | [[Category:Ownership templates|Ownership insert]] |
Latest revision as of 22:33, 7 November 2017
Template:Ownership insert is for placing in infoboxes.
This template interrogates the {{{ownership}}} field and {{#var:shire}} variable to produce a visible "Ownership" label and to decide whether or not it has a link.