Difference between revisions of "Template:PlaceNamesItemAlsoSee"

From International Robin Hood Bibliography
m
m (Henryfunk moved page Template:PnItemAlsoSee to Template:PlaceNamesItemAlsoSee without leaving a redirect)
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><div class="no-img">This template creates a list of links in the "Also see" section of items pages in IRHB's place-names section. It takes no parameters. They are instead supplied in the template '''[[template:PnItemTop|PnItemTop]]'''.</div></noinclude><includeonly>{{#vardefine:ph|{{#ifeq:{{#var:Pntype}}|Public house|* [[Public houses named after Robin Hood]].|}}}}
+
<noinclude><div class="no-img">This template creates a list of links in the "Also see" section of items pages in IRHB's place-names section. It takes no parameters. They are instead supplied in the template '''[[template:PlaceNamesItemTop|PlaceNamesItemTop]]'''.</div></noinclude><includeonly>{{#vardefine:ph|{{#ifeq:{{#var:PlaceNamesType}}|Public house|* [[Public houses named after Robin Hood]]|}}}}{{#vardefine:AlsoSee|{{#ifeq:{{#var:Cluster1}}|||* [[{{#var:Cluster1}} place-name cluster]]}}{{#ifeq:{{#var:Cluster2}}|||* [[{{#var:Cluster2}} place-name cluster]]}}{{#ifeq:{{#var:Cluster3}}|||* [[{{#var:Cluster3}} place-name cluster]]}}{{#ifeq:{{#var:ExtraCat1}}|||* [[{{#var:ExtraCat1}}]]}}{{#ifeq:{{#var:ExtraCat2}}|||* [[{{#var:ExtraCat2}}]]}}{{#ifeq:{{#var:ExtraCat3}}|||* [[{{#var:ExtraCat3}}]]}}{{#ifeq:{{#var:ExtraCat4}}|||* [[{{#var:ExtraCat4}}]]}}{{#ifeq:{{#var:ExtraCat5}}|||* [[{{#var:ExtraCat5}}]]}}{{#ifeq:{{#var:ExtraLink1}}|||* [[{{#var:ExtraLink1}}{{#ifeq:{{#var:ExtraLinkName1}}|||&#124;{{#var:ExtraLinkName1}}}}]]}}{{#ifeq:{{#var:ExtraLink2}}|||* [[{{#var:ExtraLink2}}{{#ifeq:{{#var:ExtraLinkName2}}|||&#124;{{#var:ExtraLinkName2}}}}]]}}{{#ifeq:{{#var:ExtraLink3}}|||* [[{{#var:ExtraLink3}}{{#ifeq:{{#var:ExtraLinkName3}}|||&#124;{{#var:ExtraLinkName3}}}}]]}}{{#ifeq:{{#var:ExtraLink4}}|||* [[{{#var:ExtraLink4}}{{#ifeq:{{#var:ExtraLinkName4}}|||&#124;{{#var:ExtraLinkName4}}}}]]}}{{#ifeq:{{#var:ExtraLink5}}|||* [[{{#var:ExtraLink5}}{{#ifeq:{{#var:ExtraLinkName5}}|||&#124;{{#var:ExtraLinkName5}}}}]]}}{{#var:ph}}}}{{#ifeq:{{#var:AlsoSee}}|||==Also see=={{#var:AlsoSee}}.}}</includeonly>
 
 
{{#vardefine:dot5|{{#ifeq:{{#var:ExtraLinkName5}}|||
 
{{#ifeq:{{#var:ph}}||.|}}
 
}}}}
 
{{#vardefine:dot4|{{#ifeq:{{#var:ExtraLinkName4}}|||{{#ifeq: {{#var:dot5}}||.|}}}}}}{{#vardefine:dot3|{{#ifeq:{{#var:ExtraLinkName3}}|||{{#ifeq: {{#var:dot4}}||.|}}}}}}{{#vardefine:dot2|{{#ifeq:{{#var:ExtraLinkName2}}|||{{#ifeq: {{#var:dot3}}||.|}}}}}}{{#vardefine:dot1|{{#ifeq:{{#var:ExtraLinkName1}}|||{{#ifeq: {{#var:dot2}}||.|}}}}}}{{#vardefine:AlsoSee|{{#ifeq:{{#var:Cluster1}}|||* [[{{#var:Cluster1}} place-name cluster]]}}{{#ifeq:{{#var:Cluster2}}|||* [[{{#var:Cluster2}} place-name cluster]]}}{{#ifeq:{{#var:Cluster3}}|||* [[{{#var:Cluster3}} place-name cluster]]}}{{#ifeq:{{#var:ExtraCat1}}|||* [[{{#var:ExtraCat1}}]]}}{{#ifeq:{{#var:ExtraCat2}}|||* [[{{#var:ExtraCat2}}]]}}{{#ifeq:{{#var:ExtraCat3}}|||* [[{{#var:ExtraCat3}}]]}}{{#ifeq:{{#var:ExtraCat4}}|||* [[{{#var:ExtraCat4}}]]}}{{#ifeq:{{#var:ExtraCat5}}|||* [[{{#var:ExtraCat5}}]]}}{{#ifeq:{{#var:ExtraLink1}}|||{{#ifeq:{{#pos:{{#var:ExtraLink1}}|http}}||* [[{{#var:ExtraLink1}}]]|* [{{#var:ExtraLink1}} {{#var:ExtraLinkName1}}{{#var:dot1}}]}}}}{{#ifeq:{{#var:ExtraLink2}}|||{{#ifeq:{{#pos:{{#var:ExtraLink2}}|http}}||* [[{{#var:ExtraLink2}}]]|* [{{#var:ExtraLink2}} {{#var:ExtraLinkName2}}{{#var:dot2}}]}}}}{{#ifeq:{{#var:ExtraLink3}}|||{{#ifeq:{{#pos:{{#var:ExtraLink3}}|http}}||* [[{{#var:ExtraLink3}}]]|* [{{#var:ExtraLink3}} {{#var:ExtraLinkName3}}{{#var:dot3}}]}}}}{{#ifeq:{{#var:ExtraLink4}}|||{{#ifeq:{{#pos:{{#var:ExtraLink4}}|http}}||* [[{{#var:ExtraLink4}}]]|* [{{#var:ExtraLink4}} {{#var:ExtraLinkName4}}{{#var:dot5}}]}}}}{{#ifeq:{{#var:ExtraLink5}}|||{{#ifeq:{{#pos:{{#var:ExtraLink5}}|http}}||* [[{{#var:ExtraLink5}}]]|* [{{#var:ExtraLink5}}{{#var:ExtraLinkName5}}{{#var:dot5}}]}}}}}}{{#ifeq:{{#var:AlsoSee}}|||===Also see==={{#var:AlsoSee}}{{#ifeq:{{#expr:{{#len:{{#var:AlsoSee}}}}-2}}|{{#rpos:{{#var:AlsoSee}}|]]}}|.|}}}}</includeonly>
 

Revision as of 20:27, 5 January 2021

This template creates a list of links in the "Also see" section of items pages in IRHB's place-names section. It takes no parameters. They are instead supplied in the template PlaceNamesItemTop.