Template:Location: Difference between revisions

From The Seven Sages of Rome
No edit summary
No edit summary
 
(67 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
</noinclude>
</noinclude>
<includeonly>{{#if:{{{Has Coordinates|}}}|{{#display_map:{{{Has Coordinates}}}|zoom=6|service = leaflet}}|}}
<includeonly><div class="noexcerpt">
<div>
{{#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}}|}}}}
  <div class="row">
    <!-- Left Column -->
    <div class="col-md-6">
{| class=wikitable border=1
{| class=wikitable border=1
!colspan=2 style="text-align:left"|Location
|-
|-
{{TableAttribute|type=attr|display_name=Coordinates|value={{{Has Coordinates|}}}|property=Has Coordinates}}
! colspan="2" | Metadata
|-
|-
{{TableAttribute|type=attr|display_name=Type|value={{{Has Location Type|}}}|property=Has Location Type}}
{{TableAttribute|type=text|display_name=Coordinates|value={{{Has Coordinates|}}}|property=Has Coordinates}}
|-
|-
{{TableAttribute|type=attr|display_name=Located in|value={{{Is Located In|}}}|property=Is Located In}}
{{TableAttribute|type=text|display_name=Type|value={{{Has Location Type|}}}|property=Has Location Type}}
|-
|-
{{TableAttribute|type=attr|display_name=General Notes (Internal)|value={{{Has Internal Notes|}}}|property=Has Internal Notes}}
{{TableAttribute|type=attr|display_name=Located in|value={{{Is Located In|}}}|property=Is Located In|form=Location}}
|-
|-
|}
|}
=== {{PAGENAME}} is the location of the following manuscripts ===
{| class="wikitable w-100 mb-4"
{{#ask:[[Category:Manuscript]][[Location::{{PAGENAME}}]]|?Has Reference Number=Reference Number|default=No manuscripts found}}
|-
=== {{PAGENAME}} is the place of production of the following manuscripts ===
! colspan="2" | {{PAGENAME}} is part of the following geographical cluster
{{#ask:[[Category:Manuscript]][[Has Place Of Production::{{PAGENAME}}]]|?Has Reference Number=Reference Number|default=No manuscripts found}}
|-
=== {{PAGENAME}} is the place of text composition of the following versions ===
|{{#ask:
{{#ask:[[Category:Version]][[Has Place Of Text Composition::{{PAGENAME}}]]|?Has Reference Number=Reference Number|default=No versions found}}
[[Category:Location]]
[[Category:Location]]{{#switch: {{{Has Location Type|}}} | Country = [[Category:Country]] | City = [[Category:City]] }}</includeonly>
|format=tree
|parent=Is Located In
|root={{#invoke:RootFinder|search|{{PAGENAME}}|Is Located In}}
|limit=5000
}}
|}
{{#if:{{{Has Note|}}}|{{NoteCard|Note={{{Has Note}}}}}|}}
{| class="wikitable w-100 mb-4"
|-
! 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}}]]|?Has Standardised Title Of Narrative=Title of text|?Has Language=Language|format=datatable|default=No manuscripts found}}
|}
{| class="wikitable w-100 mb-4"
|-
! 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>
    <!-- Right Column -->
    <div class="col-md-6">
{| class="wikitable w-100 mb-4"
|-
! colspan="2" | {{PAGENAME}} is the place of production of the following manuscripts
|-
|{{#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}}
|}
{| class="wikitable w-100 mb-4"
|-
! colspan="2" | {{PAGENAME}} is the printing location of the following prints
|-
|{{#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}}
|}
{| class="wikitable w-100 mb-4"
|-
! colspan="2" | {{PAGENAME}} is the place of text composition of the following versions
|-
|{{#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><div>[[Category:Location]]{{#set:Is Entity Type=Location}}{{#switch: {{{Has Location Type|}}} | Country = [[Category:Country]] | City = [[Category:City]] }}__NOTOC__</div></div></includeonly>

Latest revision as of 08:21, 27 March 2025