Template:Location: Difference between revisions

From The Seven Sages of Rome
No edit summary
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly>__NOTOC__
</noinclude>
<div class="noexcerpt">
<includeonly><div class="noexcerpt">
<div>
{{#invoke:Breadcrumb|breadcrumb|CategoryLink=Locations|CategoryName=Location|PAGENAME={{PAGENAME}}}}{{#if:{{{Has Display Title|}}}|{{DISPLAYTITLE:{{{Has Display Title|}}}}}|}}
{{#invoke:Breadcrumb|breadcrumb|CategoryLink=Locations|CategoryName=Location|PAGENAME={{PAGENAME}}}}{{#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|height=250px}}|{{#display_map:{{{Has Coordinates}}}|zoom=6|service=leaflet|height=250px}}}}|{{#if:{{{Has GeoJson|}}}|{{#display_map:geojson={{{Has GeoJson|}}}|zoom=6|service=leaflet|height=250px}}|}}}}
{{Location/Map|Has Coordinates={{{Has Coordinates|}}}|Has GeoJson={{{Has GeoJson|}}}}}
  <div class="row">
<div class="cc-page">
    <!-- Left Column -->
<div class="row">
    <div class="col-md-6">
<div class="col-lg-6">
{| class=wikitable border=1
 
|-
{{#if:{{{Has Wikidata Identifier|}}}{{{Has Location Type|}}}{{{Is Located In|}}}|
! colspan="2" | Metadata
<section class="cc-card">
|-
<h2 class="cc-card-heading">Metadata</h2>
{{TableAttribute|type=text|display_name=Coordinates|value={{{Has Coordinates|}}}|property=Has Coordinates}}
<div class="cc-card-body">
|-
{{TableAttributeNew|type=text|display_name=Also known as|value={{{Has Alias|}}}|property=Has Alias}}
{{TableAttribute|type=text|display_name=Type|value={{{Has Location Type|}}}|property=Has Location Type}}
{{TableAttributeNew|type=text|display_name=Wikidata Identifier|value={{{Has Wikidata Identifier|}}}|property=Has Wikidata Identifier}}
|-
{{TableAttributeNew|type=text|display_name=Type|value={{{Has Location Type|}}}|property=Has Location Type}}
{{TableAttribute|type=attr|display_name=Located in|value={{{Is Located In|}}}|property=Is Located In|form=Location}}
{{TableAttributeNew|type=attr|display_name=Located in|value={{{Is Located In|}}}|property=Is Located In|form=Location}}
|-
</div>
|}
</section>|}}
{| class="wikitable w-100 mb-4"
 
|-
<section class="cc-card">
! colspan="2" | The following places are located in {{PAGENAME}}
<h2 class="cc-card-heading">{{PAGENAME}} is part of the following geographical cluster</h2>
|-
<div class="cc-card-body cc-card-body--table">
|{{#ask:
{{#ask:
[[Category:Location]]
[[Category:Location]]
|format=tree
|format=tree
|root={{PAGENAME}}
|parent=Is Located In
|parent=Is Located In
|root={{#invoke:RootFinder|search|{{PAGENAME}}|Is Located In}}
|limit=5000
|class=collapsible-tree
|limit=5000
}}
}}
|}
</div>
{| class="wikitable w-100 mb-4"
</section>
|-
 
! colspan="2" | Note
{{#if:{{{Has Note|}}}|{{NoteCard|Note={{{Has Note}}}}}|}}
|-
 
|{{{Has Note|}}}
{{#if:{{#ask:[[Category:Manuscript]][[Has Location::{{PAGENAME}}]]}}|
|}
<section class="cc-card">
{| class="wikitable w-100 mb-4"
<h2 class="cc-card-heading">{{PAGENAME}} is the location of the following manuscripts</h2>
|-
<div class="cc-card-body cc-card-body--table">
! colspan="2" | {{PAGENAME}} is the location of the following manuscripts
{{#if:{{#ask:[[Category:Manuscript]][[Has Location::{{PAGENAME}}]]}}|{{#set:Is Manuscript Location=True}}|{{#set:Is Manuscript Location=False}}}}{{#ask:
|-
[[Category:Manuscript]][[Has Location::{{PAGENAME}}]]
|{{#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=datatable|default=No manuscripts found}}
|?Has Standardised Title Of Narrative=Title of text
|}
|?Has Language=Language
{| class="wikitable w-100 mb-4"
|format=datatables
|-
|default=No manuscripts found
! colspan="2" | Copies of the following prints are stored in {{PAGENAME}}
|-
|{{#ask:
[[Has Library::{{FULLPAGENAME}}]]
|?-Has subobject=Print
|?Has Shelfmark=Shelfmark
|?Has Note=Note
|mainlabel=-
|format=datatable
|default=No print copies are stored at this location
}}
}}
|}
</div>
    </div>
</section>
    <!-- Right Column -->
|}}
    <div class="col-md-6">
 
{| class="wikitable w-100 mb-4"
{{#if:{{#if:{{#ask:[[Has Library::{{FULLPAGENAME}}]]|?-Has subobject=Print}}|
|-
<section class="cc-card">
! colspan="2" | {{PAGENAME}} is the place of production of the following manuscripts
<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:[[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 Reference Number=Reference Number|format=datatable|default=No manuscripts found}}
{{#if:{{#ask:[[Has Library::{{FULLPAGENAME}}]]|?-Has subobject=Print}}|{{#set:Is Storage Location Of Print Copy=True}}|}}{{#ask:
|}
[[Has Library::{{FULLPAGENAME}}]]
{| class="wikitable w-100 mb-4"
|?-Has subobject=Print
|-
|?Has Shelfmark=Shelfmark
! colspan="2" | {{PAGENAME}} is the printing location of the following prints
|?Has Note=Note
|-
|mainlabel=-
|{{#if:{{#ask:[[Category:Print]][[Has Place Of Printing::{{PAGENAME}}]]}}|{{#set:Is Printing Location=True}}|{{#set:Is Printing Location=False}}}}{{#ask:[[Category:Print]][[Has Place Of Printing::{{PAGENAME}}]]|?Has Reference Number=Reference Number|format=datatable|default=No prints found}}
|format=datatables
|}
|default=No print copies are stored at this location
{| class="wikitable w-100 mb-4"
}}
|-
</div>
! colspan="2" | {{PAGENAME}} is the place of text composition of the following versions
</section>
|-
|}}
|{{#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:[[Category:Version]][[Has Place Of Text Composition::{{PAGENAME}}]]|?Has Reference Number=Reference Number|format=datatable|default=No versions found}}
 
|}
</div>
    </div>
<div class="col-lg-6">
  </div>
 
</div><div>[[Category:Location]]{{#set:Is Entity Type=Location}}{{#switch: {{{Has Location Type|}}} | Country = [[Category:Country]] | City = [[Category:City]] }}__NOTOC__</div></div></includeonly>
{{#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>
</section>
|}}
 
{{#if:{{#ask:[[Category:Print]][[Has Place Of Printing::{{PAGENAME}}]]}}|
<section class="cc-card">
<h2 class="cc-card-heading">{{PAGENAME}} is the printing location of the following prints</h2>
<div class="cc-card-body cc-card-body--table">
{{#if:{{#ask:[[Category:Print]][[Has Place Of Printing::{{PAGENAME}}]]}}|{{#set:Is Printing Location=True}}|{{#set:Is Printing Location=False}}}}{{#ask:
[[Category:Print]][[Has Place Of Printing::{{PAGENAME}}]]
|?Has Language=Language
|?Has Date Range Of Print=Date
|format=datatables
|default=No prints found
}}
</div>
</section>
|}}
 
{{#if:{{#ask:[[Category:Version]][[Has Place Of Text Composition::{{PAGENAME}}]]}}|
<section class="cc-card">
<h2 class="cc-card-heading">{{PAGENAME}} is the place of text composition of the following versions</h2>
<div class="cc-card-body cc-card-body--table">
{{#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:
[[Category:Version]][[Has Place Of Text Composition::{{PAGENAME}}]]
|?Has Language=Language
|?Has Date Range Of Text Composition=Date
|format=datatables
|default=No versions found
}}
</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