Template:Location: Difference between revisions

From The Seven Sages of Rome
No edit summary
No edit summary
 
(39 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly>__NOTOC__
</noinclude>
<div class="noexcerpt">
<includeonly>
{{#invoke:Breadcrumb|breadcrumb|CategoryLink=Locations|CategoryName=Location|PAGENAME={{PAGENAME}}}}{{#if:{{{Has Display Title|}}}|{{DISPLAYTITLE:{{{Has Display Title|}}}}}|}}
{{Location/Map|Has Coordinates={{{Has Coordinates|}}}|Has GeoJson={{{Has GeoJson|}}}}}
<div class="cc-page">
<div class="row">
<div class="row">
<div class="col-6">
<div class="col-lg-6">
{| class=wikitable border=1
 
!colspan=2 style="text-align:left"|Location
{{#if:{{{Has Wikidata Identifier|}}}{{{Has Location Type|}}}{{{Is Located In|}}}|
|-
<section class="cc-card">
{{TableAttribute|type=attr|display_name=Coordinates|value={{{Has Coordinates|}}}|property=Has Coordinates}}
<h2 class="cc-card-heading">Metadata</h2>
|-
<div class="cc-card-body">
{{TableAttribute|type=attr|display_name=Type|value={{{Has Location Type|}}}|property=Has Location Type}}
{{TableAttributeNew|type=text|display_name=Also known as|value={{{Has Alias|}}}|property=Has Alias}}
|-
{{TableAttributeNew|type=text|display_name=Wikidata Identifier|value={{{Has Wikidata Identifier|}}}|property=Has Wikidata Identifier}}
{{TableAttribute|type=attr|display_name=Located in|value={{{Is Located In|}}}|property=Is Located In|form=Location}}
{{TableAttributeNew|type=text|display_name=Type|value={{{Has Location Type|}}}|property=Has Location Type}}
|-
{{TableAttributeNew|type=attr|display_name=Located in|value={{{Is Located In|}}}|property=Is Located In|form=Location}}
{{TableAttribute|type=attr|display_name=General Notes (Internal)|value={{{Has Internal Notes|}}}|property=Has Internal Notes}}
|-
|}
</div>
</div>
<div class="col-6">
</section>|}}
{{#if:{{{Has Display Title|}}}|{{DISPLAYTITLE:{{{Has Display Title|}}}}}|}}{{#if:{{{Has Coordinates|}}}|{{#if:{{{Has GeoJson|}}}|{{#display_map:{{{Has Coordinates}}}|center={{{Has Coordinates}}}|geojson={{{Has GeoJson|}}}|zoom=6|service = leaflet}}|{{#display_map:{{{Has Coordinates}}}|zoom=6|service = leaflet}}}}|{{#if:{{{Has GeoJson|}}}|{{#display_map:geojson={{{Has GeoJson|}}}|zoom=6|service = leaflet}}|}}}}
 
<section class="cc-card">
<h2 class="cc-card-heading">{{PAGENAME}} is part of the following geographical cluster</h2>
<div class="cc-card-body cc-card-body--table">
{{#ask:
[[Category:Location]]
|format=tree
|parent=Is Located In
|root={{#invoke:RootFinder|search|{{PAGENAME}}|Is Located In}}
|class=collapsible-tree
|limit=5000
}}
</div>
</section>
 
{{#if:{{{Has Note|}}}|{{NoteCard|Note={{{Has Note}}}}}|}}
 
{{#if:{{#ask:[[Category:Manuscript]][[Has Location::{{PAGENAME}}]]}}|
<section class="cc-card">
<h2 class="cc-card-heading">{{PAGENAME}} is the location of the following manuscripts</h2>
<div class="cc-card-body cc-card-body--table">
{{#if:{{#ask:[[Category:Manuscript]][[Has Location::{{PAGENAME}}]]}}|{{#set:Is Manuscript Location=True}}|{{#set:Is Manuscript Location=False}}}}{{#ask:
[[Category:Manuscript]][[Has Location::{{PAGENAME}}]]
|?Has Standardised Title Of Narrative=Title of text
|?Has Language=Language
|format=datatables
|default=No manuscripts found
}}
</div>
</section>
|}}
 
{{#if:{{#if:{{#ask:[[Has Library::{{FULLPAGENAME}}]]|?-Has subobject=Print}}|
<section class="cc-card">
<h2 class="cc-card-heading">Copies of the following prints are stored in {{PAGENAME}}</h2>
<div class="cc-card-body cc-card-body--table">
{{#if:{{#ask:[[Has Library::{{FULLPAGENAME}}]]|?-Has subobject=Print}}|{{#set:Is Storage Location Of Print Copy=True}}|}}{{#ask:
[[Has Library::{{FULLPAGENAME}}]]
|?-Has subobject=Print
|?Has Shelfmark=Shelfmark
|?Has Note=Note
|mainlabel=-
|format=datatables
|default=No print copies are stored at this location
}}
</div>
</section>
|}}
 
</div>
</div>
<div class="col-lg-6">
{{#if:{{#ask:[[Category:Manuscript]][[Has Place Of Production::{{PAGENAME}}]]}}|
<section class="cc-card">
<h2 class="cc-card-heading">{{PAGENAME}} is the place of production of the following manuscripts</h2>
<div class="cc-card-body cc-card-body--table">
{{#if:{{#ask:[[Category:Manuscript]][[Has Place Of Production::{{PAGENAME}}]]}}|{{#set:Is Manuscript Place Of Production=True}}|{{#set:Is Manuscript Place Of Production=False}}}}{{#ask:
[[Category:Manuscript]][[Has Place Of Production::{{PAGENAME}}]]
|?Has Language=Language
|?Has Date Range Of Production=Date
|format=datatables
|default=No manuscripts found
}}
</div>
</div>
</section>
|}}


{{#if:{{{Has Note|}}}|<h2>Note</h2>{{{Has Note|}}}|}}
{{#if:{{#ask:[[Category:Print]][[Has Place Of Printing::{{PAGENAME}}]]}}|
=== {{PAGENAME}} is the location of the following manuscripts ===
<section class="cc-card">
{{#if:{{#ask:[[Category:Manuscript]][[Has Location::{{PAGENAME}}]]}}|{{#set:Is Manuscript Location=True}}|}}
<h2 class="cc-card-heading">{{PAGENAME}} is the printing location of the following prints</h2>
{{#ask:[[Category:Manuscript]][[Has Location::{{PAGENAME}}]]|?Has Standardised Title Of Narrative=Title of text|?Has Language=Language|default=No manuscripts found}}
<div class="cc-card-body cc-card-body--table">
=== {{PAGENAME}} is the place of production of the following manuscripts ===
{{#if:{{#ask:[[Category:Print]][[Has Place Of Printing::{{PAGENAME}}]]}}|{{#set:Is Printing Location=True}}|{{#set:Is Printing Location=False}}}}{{#ask:
{{#if:{{#ask:[[Category:Manuscript]][[Has Place Of Production::{{PAGENAME}}]]}}|{{#set:Is Manuscript Place Of Production=True}}|}}
[[Category:Print]][[Has Place Of Printing::{{PAGENAME}}]]
{{#ask:[[Category:Manuscript]][[Has Place Of Production::{{PAGENAME}}]]|?Has Reference Number=Reference Number|default=No manuscripts found}}
|?Has Language=Language
=== {{PAGENAME}} is the printing location of the following prints ===
|?Has Date Range Of Print=Date
{{#if:{{#ask:[[Category:Print]][[Has Place Of Printing::{{PAGENAME}}]]}}|{{#set:Is Printing Location=True}}|}}
|format=datatables
{{#ask:[[Category:Print]][[Has Place Of Printing::{{PAGENAME}}]]|?Has Reference Number=Reference Number|default=No prints found}}
|default=No prints found
=== Copies of the following prints are stored in {{PAGENAME}}  ===
{{#ask:
[[Has Library::{{FULLPAGENAME}}]]
|?-Has subobject=Print
|?Has Shelfmark=Shelfmark
|?Has Note=Note
|mainlabel=-
|sort=Has Shelfmark
|default=No print copies are stored at this location
}}
}}
=== {{PAGENAME}} is the place of text composition of the following versions ===
</div>
{{#if:{{#ask:[[Category:Version]][[Has Place Of Text Composition::{{PAGENAME}}]]}}|{{#set:Is Place Of Text Composition Of Version=True}}|}}
</section>
{{#ask:[[Category:Version]][[Has Place Of Text Composition::{{PAGENAME}}]]|?Has Reference Number=Reference Number|default=No versions found}}
|}}
=== The following places are located in {{PAGENAME}} ===
 
{{#ask:
{{#if:{{#ask:[[Category:Version]][[Has Place Of Text Composition::{{PAGENAME}}]]}}|
[[Category:Location]]
<section class="cc-card">
|format=tree
<h2 class="cc-card-heading">{{PAGENAME}} is the place of text composition of the following versions</h2>
|root={{PAGENAME}}
<div class="cc-card-body cc-card-body--table">
|parent=Is Located In
{{#if:{{#ask:[[Category:Version]][[Has Place Of Text Composition::{{PAGENAME}}]]}}|{{#set:Is Place Of Text Composition Of Version=True}}|{{#set:Is Place Of Text Composition Of Version=False}}}}{{#ask:
|limit=5000
[[Category:Version]][[Has Place Of Text Composition::{{PAGENAME}}]]
|?Has Language=Language
|?Has Date Range Of Text Composition=Date
|format=datatables
|default=No versions found
}}
}}
[[Category:Location]]{{#switch: {{{Has Location Type|}}} | Country = [[Category:Country]] | City = [[Category:City]] }}__NOTOC__</includeonly>
</div>
</section>
|}}
 
</div>
</div>
</div>
</div>
 
[[Category:Location]]{{#set:Is Entity Type=Location}}{{#switch: {{{Has Location Type|}}} | Country = [[Category:Country]] | City = [[Category:City]] }}{{#if:{{{Has Coordinates|}}}|{{#set:Has Coordinates={{{Has Coordinates|}}}}}|}}</includeonly>

Latest revision as of 22:05, 5 March 2026