Template:Ownership insert: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
No edit summary
RB (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>{{#vardefine:{{otag|{{Owned by code|{{{1}}} }} }}{{#ifeq:{{#var:otag}}|National Trust|{{Owned by NT|{{Part-BI|{{{2}}}}}}}|{{#ifexist:{{#var:otag}}|[[{{#var:otag}}]]|{{#var:otag}} }} }}</includeonly><noinclude>'''Template:Ownership insert''' is for placing in infoboxes.
<includeonly>{{#vardefine:otag|{{Owned by code|{{{1}}} }} }}{{#ifeq:{{#var:otag}}|National Trust|{{Owned by NT|{{Part-BI|{{{2}}}}}}}|{{#ifexist:{{#var:otag}}|[[{{#var:otag}}]]|{{#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]]

Revision as of 22:55, 14 May 2016

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.