Template:Correspondence: Difference between revisions

From Fina Wiki
No edit summary
No edit summary
 
(70 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Template formatting {{PAGENAME}}s.
Template formatting {{PAGENAME}}s.
</noinclude><includeonly>__NOEDITSECTION____NOTOC__[[Correspondence]]
</noinclude><includeonly>__NOEDITSECTION____NOTOC__<div class="btn btn-info">[[Correspondence]]</div><br/>{{#if:{{{Author|}}}|{{{Author|}}} }}{{#if:{{{Place|}}}|, {{{Place|}}} }}{{#if:{{{Publication date|}}}|, {{{Publication date|}}} }}
<div class=row>
<div class=row>
<div class="col-md-5">
<div class="col-md-6">
<div class="panel panel-default mw-collapsible">
<div class="card"><div class="mw-collapsible">
<div class="panel-heading"><div class="panel-title ">{{PAGENAME}}</div></div>
<div class="card-header bg-light"><h5>{{PAGENAME}}</h5></div>
<div class="panel-body mw-collapsible-content">
<div class="card-body mw-collapsible-content">
{| class="table table-hover table-condensed"
{| class="table table-hover table-sm"
|[[ID::@@@]]
|[[ID::{{PAGEID}}]]
|-
|[[Institution::@@@]]
|{{#set:Institution={{{Institution|}}}}}{{#formredlink:target={{{Institution|}}}|form=Institution}}
|-
|[[Inventory::@@@]]
|[[Inventory::{{{Inventory |}}}]]
|-
|-
|[[Author::@@@]]
|[[Author::@@@]]
Line 15: Line 23:
|{{#arraymap:{{{Recipient|}}}|;|@@@@|{{#set:Recipient=@@@@}}{{#formredlink:target=@@@@|form=Person}}}}
|{{#arraymap:{{{Recipient|}}}|;|@@@@|{{#set:Recipient=@@@@}}{{#formredlink:target=@@@@|form=Person}}}}
|-
|-
|[[Publication date::@@@]]
|[[Correspondence date::@@@]]
|[[Publication date::{{{Publication date|}}}]]
|[[Correspondence date::{{{Correspondence date|}}}|]]{{#show:{{PAGENAME}}|?Correspondence date#LOCL}}
|-
|-
|[[Place::@@@]]
|[[Place::@@@]]
|{{#arraymap:{{{Place|}}}|;|@@@@|[[Place::@@@@]]}}
|[[Place::{{{Place|}}}]] <sup>{{#show:{{FULLPAGENAME}}|?Coordinates}}</sup>{{#set:Coordinates={{#if:{{{Coordinates|}}}|{{{Coordinates|}}}|{{#if:{{{Place|}}}|{{#geocode:{{{Place|}}} }} }} }} }}
|-
|-
|[[Associated persons::@@@]]
|[[Associated persons::@@@]]
|{{#arraymap:{{{Associated persons|}}}|;|@@@@|{{#set:Associated persons=@@@@}}{{#formredlink:target=@@@@|form=Person}}}}
|{{#arraymap:{{{Associated persons|}}}|;|@@@@|{{#set:Associated persons=@@@@}}{{#formredlink:target=@@@@|form=Person}}}}
|-
|-
|[[Institution::@@@]]
|[[Literature::@@@]]
|{{#set:Institution={{{Institution|}}}}}{{#formredlink:target={{{Institution|}}}|form=Institution}}
|{{#arraymap:{{{Literature|}}}|;|@@@@|[[Literature::@@@@]][[CiteRef::{{#explode:@@@@|,|0}}]]}}
|-
|[[Numismatic keyword::@@@]]
|{{#arraymap:{{{Numismatic keyword|}}}|;|@@@@|[[Numismatic keyword::{{ucfirst:{{#explode:@@@@| |0}} }} {{ucfirst:{{#explode:@@@@| |1}} }} {{ucfirst:{{#explode:@@@@| |2}} }}]]}}
|-
|[[Language::@@@]]
|{{#arraymap:{{{CorrespondenceLanguage|}}}|;|@@@@|[[Language::@@@@]]}}
|-
|-
|[[Literature::@@@]]
|[[Link::@@@]]
|{{#arraymap:{{{Literature|}}}|;|@@@@|[[Literature::@@@@]][[CiteRef::{{#explode:@@@@|,|0}}{{#explode:@@@@|,|1}}]]}}
|style="word-break: break-all;"|[[Link::{{{Link|}}}]]
|}
|}
</div></div>
</div><div class="card-footer">Export: <span class="fa fa-download" title="Download"></span> {{#ask:[[{{FULLPAGENAME}}]]
 
<div class="panel panel-default"><div class="panel-heading"><div class="panel-title"><span class="fa fa-download">&nbsp;</span>Download</div></div>
<div class="panel-body mw-collapsible-content">
<span class="glyphicon glyphicon-save-file" title="CSV (Comma Separated Value)"></span>&nbsp;{{#ask:[[{{FULLPAGENAME}}]]
|mainlabel=-
  |mainlabel=Entry
  |mainlabel=Entry
  |?Author
  |?Author
Line 44: Line 53:
  |?Institution
  |?Institution
  |?Literature
  |?Literature
|?Link
|?Numismatic keyword
  |?Modification date#LOCL#TO
  |?Modification date#LOCL#TO
  |?Last editor is
  |?Last editor is
Line 53: Line 64:
  |default=
  |default=
}} [[Image:RDF.png|14px|text-bottom|RDF/XML (Resource Description Framework)|link=]]&nbsp;[[Special:ExportRDF/{{FULLPAGENAME}}|RDF]]
}} [[Image:RDF.png|14px|text-bottom|RDF/XML (Resource Description Framework)|link=]]&nbsp;[[Special:ExportRDF/{{FULLPAGENAME}}|RDF]]
</div></div></div>
</div>
<div class="col-md-6">
<div class="card"><div class="mw-collapsible">
<div class="card-header bg-light"><h5>Map</h5> </div>
<div class="card-body mw-collapsible-content">
{{#ask: [[{{PAGENAME}}]]
| format=leaflet
| ?Coordinates
| ?Place
| ajaxquery = [[Category:Correspondence]]
| ajaxcoordproperty = Coordinates
| zoom=7
| minzoom=4
| maxzoom=12
| center={{#if:{{{Coordinates|}}}|{{{Coordinates|}}}|{{#if:{{{Place|}}}|{{#geocode:{{{Place|}}} }} }} }}
| outro=You can move or zoom the map to explore other correspondence!
}}</div>
</div></div>
</div></div>
 
<div class="card"><div class="mw-collapsible">
 
<div class="card-header bg-light"><h5>[[Grand document::@@@]]</h5></div>
</div>
<div class="card-body mw-collapsible-content">
<div class="col-md-7">
<div class="panel panel-default mw-collapsible">
<div class="panel-heading"><div class="panel-title ">[[Grand document::@@@]]</div></div>
<div class="panel-body mw-collapsible-content">
[[Grand document::{{{Grand document|}}}]]
[[Grand document::{{{Grand document|}}}]]
</div></div>
</div></div></div>
</div>{{#if:{{{Place|}}}|{{#set:Coordinates={{#geocode:{{{Place|}}} }} }} }}
{{#default_form:Correspondence}}[[Category:Correspondence]]{{#set:Title Icon=Correspondence.png|PageID={{PAGEID}}|ID={{PAGEID}}|Pagename={{PAGENAME}} }}</includeonly>
{{#default_form:Correspondence}}[[Category:Correspondence]]{{#set:Title Icon=Correspondence.png}}</includeonly>

Latest revision as of 12:56, 14 February 2023

Template formatting Correspondences.