Template:Location: Difference between revisions
From The Seven Sages of Rome
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
< | <includeonly>__NOTOC__ | ||
<div class="noexcerpt"> | |||
{{#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|}}}}}|}} | ||
{{Location/Map|Has Coordinates={{{Has Coordinates|}}}|Has GeoJson={{{Has GeoJson|}}}}} | {{Location/Map|Has Coordinates={{{Has Coordinates|}}}|Has GeoJson={{{Has GeoJson|}}}}} | ||
<div class="cc-page"> | |||
<div class="row"> | |||
<div class="col-lg-6"> | |||
{| class= | |||
{{#if:{{{Has Coordinates|}}}{{{Has Location Type|}}}{{{Is Located In|}}}| | |||
<section class="cc-card"> | |||
<h2 class="cc-card-heading">Metadata</h2> | |||
{{ | <div class="cc-card-body"> | ||
{{TableAttributeNew|type=text|display_name=Coordinates|value={{{Has Coordinates|}}}|property=Has Coordinates}} | |||
{{ | {{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}} | |||
{{ | </div> | ||
</section>|}} | |||
|} | |||
<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:{{{Has Note|}}}|{{NoteCard|Note={{{Has Note}}}}}|}} | ||
<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=datatable | |||
|default=No manuscripts found | |||
}} | }} | ||
</div> | |||
</section> | |||
<section class="cc-card"> | |||
{| class=" | <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=datatable | |||
|default=No print copies are stored at this location | |||
}} | |||
</div> | |||
</section> | |||
</div> | |||
<div class="col-lg-6"> | |||
<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"> | |||
</div><div>[[Category:Location]]{{#set:Is Entity Type=Location}}{{#switch: {{{Has Location Type|}}} | Country = [[Category:Country]] | City = [[Category:City]] }} | {{#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 | |||
}} | |||
</div> | |||
</section> | |||
<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 Reference Number=Reference Number | |||
|format=datatable | |||
|default=No prints found | |||
}} | |||
</div> | |||
</section> | |||
<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 Reference Number=Reference Number | |||
|format=datatable | |||
|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]] }}</includeonly> | |||