Template:Person: Difference between revisions

From Fina Wiki
No edit summary
No edit summary
Tag: Manual revert
 
(135 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__<div class="btn btn-default">[[Persons]]</div><br/>
</noinclude><includeonly>__NOEDITSECTION____NOTOC__<div class="btn btn-info">[[Persons]]</div><br/>{{#if:{{{Birth date|}}}|&nbsp;* {{{Birth date|}}} }} {{#if:{{{Birth place|}}}|{{{Birth place|}}} }}{{#if:{{{Death date|}}}|, † {{{Death date|}}} }}{{#if:{{{Death place|}}}|, {{{Death place|}}} }}{{#if:{{{Keyword|}}}|. {{{Keyword|}}} }}
<div class="panel panel-default mw-collapsible">
<div class="card"><div class="mw-collapsible">
<div class="panel-heading"><div class="panel-title ">Correspondence of {{PAGENAME}}</div></div>
<div class="card-header bg-light"><h5>Correspondence of {{PAGENAME}}</h5></div>
<div class="panel-body mw-collapsible-content">
<div class="card-body mw-collapsible-content">
{{#mermaid:graph LR; {{#ask: [[Category:Correspondence]] [[Recipient::{{PAGENAME}}]] |mainlabel=|?#=Correspondence||?PageID|?Author|?Recipient|?Correspondence date|?Place|sort=Correspondence date|format=plainlist|headers=hide|link=none|searchlabel=|template=GraphCorrespondence|named args=yes|import-annotation=true|limit=1000}}
{{#mermaid:graph LR; {{#ask: [[Category:Correspondence]] [[Author::{{PAGENAME}}]] OR [[Category:Correspondence]] [[Recipient::{{PAGENAME}}]]|mainlabel=|?#=Correspondence|?Author#|?Recipient#|?Correspondence date|?Place|sort=Correspondence date|format=plainlist|headers=hide|link=none|searchlabel=|template=GraphCorrespondence|named args=yes|import-annotation=yes|limit=5000|userparam={{#ask: [[Category:Correspondence]] [[Author::{{PAGENAME}}]] OR [[Category:Correspondence]] [[Recipient::{{PAGENAME}}]]|format=count}} }}|config.theme=neutral
{{#ask: [[Category:Correspondence]] [[Author::{{PAGENAME}}]] |mainlabel=|?#=Correspondence|?PageID|?Author|?Recipient|?Correspondence date|?Place|sort=Correspondence date|format=plainlist|headers=hide|link=none|searchlabel=|template=GraphCorrespondence|named args=yes|import-annotation=true|limit=1000}} }}
|startOnLoad=false}}
</div></div>
</div></div></div>
<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}}]]
|-
|-
|[[First name::@@@]]
|[[First name::@@@]]
Line 23: Line 25:
|[[Also known as::@@@]]
|[[Also known as::@@@]]
|{{#arraymap:{{{Also known as|}}}|;|@@@@|[[Also known as::@@@@]]}}
|{{#arraymap:{{{Also known as|}}}|;|@@@@|[[Also known as::@@@@]]}}
|-
|[[WikidataID::@@@]]
|[[WikidataID::{{{WikidataID|}}}]]
|-
|-
|[[Birth date::@@@]]
|[[Birth date::@@@]]
Line 37: Line 42:
|-
|-
|[[Keyword::@@@]]
|[[Keyword::@@@]]
|{{#arraymap:{{{Keyword|}}}|;|@@@@|[[Keyword::@@@@]]}}
|{{#arraymap:{{{Keyword|}}}|;|@@@@|[[Keyword::{{ucfirst:{{#explode:@@@@| |0}} }} {{ucfirst:{{#explode:@@@@| |1}} }} {{ucfirst:{{#explode:@@@@| |2}} }}]]}}
|-
|-
|[[Link::@@@]]
|[[Link::@@@]]
|[[Link::{{{Link|}}}]]
|style="word-break: break-all;"|[[Link::{{{Link|}}}]]
|-
|-
|Image
|Image
|{{#ifexist: {{ns:File}}:{{FULLPAGENAME}}.jpg|[[{{ns:File}}:{{FULLPAGENAME}}.jpg|thumb|left|{{FULLPAGENAME}}]][[Image::{{ns:File}}:{{FULLPAGENAME}}.jpg| ]]|[[{{ns:File}}:{{FULLPAGENAME}}.jpg|upload]]}}
|{{#ifexist: {{ns:File}}:{{FULLPAGENAME}}.jpg|[[{{ns:File}}:{{FULLPAGENAME}}.jpg|thumb|left|{{FULLPAGENAME}}]][[Image::{{ns:File}}:{{FULLPAGENAME}}.jpg| ]][[Image URL::{{filepath:{{FULLPAGENAME}}.jpg}}| ]]|[[{{ns:File}}:{{FULLPAGENAME}}.jpg|upload]]}}
|-
|-
|[[Further images::@@@]]
|[[Further images::@@@]]
|{{#arraymap:{{{Further images|}}}|;|@@@@|[[Further images::@@@@]]}}
|{{#arraymap:{{{Further images|}}}|;|@@@@|{{#set:Further images={{ns:File}}:@@@@}}[[:{{ns:File}}:@@@@]]}}
|}
|}</div></div>
 
</div></div>


<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="card"><div class="card-header bg-light"><div class="panel-title"><span class="fa fa-download">&nbsp;</span>Download</div></div>
<div class="panel-body mw-collapsible-content">
<div class="card-body mw-collapsible-content">
<span class="glyphicon glyphicon-save-file" title="CSV (Comma Separated Value)"></span>&nbsp;{{#ask:[[{{FULLPAGENAME}}]]
<span class="fa fa-download" title="CSV (Comma Separated Value)"></span>&nbsp;{{#ask:[[{{FULLPAGENAME}}]]
|mainlabel=-
|mainlabel=-
  |mainlabel=Entry
  |mainlabel=Entry
Line 70: Line 73:
  |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>
 
<div class="card"><div class="mw-collapsible">
 
<div class="card-header bg-light"><h5>[[Further images::@@@]]</h5></div>
<div class="card-body mw-collapsible-content">
{{{Images|}}}
</div></div></div>
</div>
</div>
<div class="col-md-7">
<div class="col-md-6">
<div class="panel panel-default mw-collapsible {{#if:{{{Birth place|}}}||mw-collapsed}}">
<div class="card"><div class="mw-collapsible {{#if:{{{Birth place|}}}||mw-collapsed}}">
<div class="panel-heading"><div class="panel-title ">Map</div></div>
<div class="card-header bg-light"><h5>Map</h5></div>
<div class="panel-body mw-collapsible-content">{{#if:{{{Birth place|}}}|
<div class="card-body mw-collapsible-content">{{#if:{{{Birth place|}}}|
{{#display_map:lines=
{{#display_map:lines=
   {{#if:{{{Birth coordinates|}}}|{{{Birth coordinates|}}}|{{#if:{{{Birth place|}}}|{{#geocode:{{{Birth place|}}} }} }} }}:{{#if:{{{Death coordinates|}}}|{{{Death coordinates|}}}|{{#if:{{{Death place|}}}|{{#geocode:{{{Death place|}}} }} }} }} ~ {{PAGENAME}} ~born in {{{Birth place|}}}, died in {{{Death place|}}}~red~0.42~5
   {{#if:{{{Birth coordinates|}}}|{{{Birth coordinates|}}}|{{#if:{{{Birth place|}}}|{{#geocode:{{{Birth place|}}} }} }} }}:{{#if:{{{Death coordinates|}}}|{{{Death coordinates|}}}|{{#if:{{{Death place|}}}|{{#geocode:{{{Death place|}}} }} }} }} ~ {{PAGENAME}} ~born in {{{Birth place|}}}, died in {{{Death place|}}}~red~0.42~5
Line 83: Line 89:
|''Currently, no birth place is known for {{PAGENAME}}...''
|''Currently, no birth place is known for {{PAGENAME}}...''
}}
}}
</div></div>
</div></div></div>
<div class="panel panel-default mw-collapsible">
<div class="card"><div class="mw-collapsible">
<div class="panel-heading"><div class="panel-title ">Literature</div></div>
<div class="card-header bg-light"><h5>Literature</h5></div>
<div class="panel-body mw-collapsible-content">
<div class="card-body mw-collapsible-content">
{{#ask:[[Category:Literature]] [[Author::{{PAGENAME}}]]
{{#ask:[[Category:Literature]] [[Author::{{PAGENAME}}]]
  |mainlabel=
  |mainlabel=Primary&nbsp;literature
  |?Literatue type=
  |?Literature year
  |format=ul
|?Literature type
  |class=table table-hover table-condensed"
|?Title
  |format=table
  |class=table table-hover table-sm sortable
  |default=
  |default=
  |intro=Primary literature
  |sort=Literature year
|limit=20
}}
}}
{{#ask:[[Category:Literature]] [[Associated persons::{{PAGENAME}}]]
{{#ask:[[Category:Literature]] [[Associated persons::{{PAGENAME}}]]
  |mainlabel=
  |mainlabel=Secondary&nbsp;literature
  |?Literature type=
|?Literature year
  |format=ul
  |?Literature type
  |class=table table-hover table-condensed"
|?Title
|format=table
|class=table table-hover table-sm sortable
|default=
|sort=Literature year
|limit=20
}}
</div></div></div>
<div class="card"><div class="mw-collapsible">
<div class="card-header bg-light"><h5>Work</h5></div>
<div class="card-body mw-collapsible-content">{{#ask: [[Category:Annotated Printed Books]] [[Author::{{PAGENAME}}]] OR [[Category:Annotated Printed Books]] [[Annotator::{{PAGENAME}}]]
|mainlabel=Page
|?Publication date
  |format=table
|limit=10
  |class=table table-hover table-sm sortable
|default=
|intro='''Author or Annotator of [[Annotated Printed Books]]'''
}}
{{#ask: [[Category:Copies or Translations of Printed Books]] [[Author::{{PAGENAME}}]] OR [[Category:Copies or Translations of Printed Books]] [[Translator::{{PAGENAME}}]]
|mainlabel=Page
|?Correspondence date
|format=table
|limit=10
|class=table table-hover table-sm sortable
  |default=
  |default=
  |intro=Secondery literature
  |intro='''Author or Translator of [[Copies or Translations of Printed Books]]'''
}}
}}
</div></div>
{{#ask: [[Category:Catalogues of Numismatic Collections]] [[Author::{{PAGENAME}}]]
<div class="panel panel-default mw-collapsible">
|mainlabel=Page
<div class="panel-heading"><div class="panel-title ">Work</div></div>
|?Catalogue date
<div class="panel-body mw-collapsible-content">
|format=table
{{#ask: [[Category:Annotated Printed Books||Copies or Translations of Printed Books||Catalogues of Numismatic Collections||Manuscripts of Unpublished Works||Correspondence]]
|limit=10
[[Author::{{PAGENAME}}]] OR
|class=table table-hover table-sm sortable
[[Category:Annotated Printed Books]] [[Annotator::{{PAGENAME}}]] OR
|default=
[[Category:Copies or Translations of Printed Books]] [[Translator::{{PAGENAME}}]] OR
|intro='''Author of [[Catalogues of Numismatic Collections]]'''
[[Category:Correspondence]][[Recipient::{{PAGENAME}}]]  
}}
{{#ask: [[Category:Manuscripts of Unpublished Works]] [[Author::{{PAGENAME}}]]
|mainlabel=Page
|?Publication date
|format=table
|limit=10
|class=table table-hover table-sm sortable
|default=
|intro='''Author of [[Manuscripts of Unpublished Works]]'''
}}
{{#ask: [[Category:Correspondence]] [[Author::{{PAGENAME}}]]  
|mainlabel=Page
|?Correspondence date
|format=table
|limit=10
|class=table table-hover table-sm sortable
|default=
|intro='''Author of [[Correspondence]]'''
}}
{{#ask: [[Category:Correspondence]] [[Recipient::{{PAGENAME}}]]  
|mainlabel=Page
|?Correspondence date
|format=table
|limit=10
|class=table table-hover table-sm sortable
|default=
|intro='''Recipient of [[Correspondence]]'''
}}
{{#ask: [[Category:Correspondence Collections]] [[Author::{{PAGENAME}}]]  
|mainlabel=Page
|?Publication date
|format=table
|limit=10
|class=table table-hover table-sm sortable
|default=
|intro='''Author of [[Correspondence Collections]]'''
}}
{{#ask: [[Category:Diaries]] [[Author::{{PAGENAME}}]]  
  |mainlabel=Page
  |mainlabel=Page
  |?Category
  |?Publication date
  |format=table
  |format=table
  |limit=1000
  |limit=10
  |class=table table-hover table-condensed"
  |class=table table-hover table-sm sortable
  |default=Currently no work from this Person is found.
  |default=
|intro='''Author of [[Diaries]]'''
}}
}}
</div></div>
</div></div></div>
<div class="panel panel-default mw-collapsible mw-collapsed">
<div class="card"><div class="mw-collapsible">
<div class="panel-heading"><div class="panel-title ">References</div></div>
<div class="card-header bg-light"><h5>References</h5></div>
<div class="panel-body mw-collapsible-content">
<div class="card-body mw-collapsible-content">
{{#ask:[[Category:Annotated Printed Books||Copies or Translations of Printed Books||Catalogues of Numismatic Collections||Manuscripts of Unpublished Works||Correspondence]][[Associated persons::{{PAGENAME}}]]  
{{#ask:[[Category:Annotated Printed Books||Copies or Translations of Printed Books||Catalogues of Numismatic Collections||Manuscripts of Unpublished Works||Correspondence||Correspondence Collections||Diaries]][[Associated persons::{{PAGENAME}}]]  
  |mainlabel=Page
  |mainlabel=Page
  |?Category
  |?Category
  |format=table
  |format=table
  |limit=1000
  |limit=1000
  |class=table table-hover table-condensed"
|sort=Correspondence date
  |class=table table-hover table-sm sortable
  |default=Currently this person is nowhere referenced in "[[Associated persons::@@@]]".
  |default=Currently this person is nowhere referenced in "[[Associated persons::@@@]]".
}}
}}
</div></div>
</div></div></div>
<div class="card"><div class="mw-collapsible">
<div class="card-header bg-light"><h5>Keywords</h5></div>
<div class="card-body mw-collapsible-content">
{{#ask:[[Category:Literature]] [[Author::{{PAGENAME}}]] OR [[Category:Literature]] [[Associated persons::{{PAGENAME}}]]
|?Numismatic keyword
|format=tagcloud
|template=tagcloud
|userparam={{PAGENAME}}
|mincount=1
|limit=1000
|default=
|intro=<h3>Literature</h3>
}}
{{#ask: [[Category:Annotated Printed Books||Copies or Translations of Printed Books||Catalogues of Numismatic Collections||Manuscripts of Unpublished Works||Correspondence||Correspondence Collections||Diaries]]
[[Author::{{PAGENAME}}]] OR
[[Category:Annotated Printed Books]] [[Annotator::{{PAGENAME}}]] OR
[[Category:Copies or Translations of Printed Books]] [[Translator::{{PAGENAME}}]] OR
[[Category:Correspondence]][[Recipient::{{PAGENAME}}]]
|?Numismatic keyword
|format=tagcloud
|template=tagcloud
|userparam={{PAGENAME}}
|mincount=1
|limit=1000
|default=
|intro=<h5>Work</h5>
}}
{{#ask:[[Associated persons::{{PAGENAME}}]]
|?Numismatic keyword
|format=tagcloud
|template=tagcloud
|userparam={{PAGENAME}}
|mincount=1
|limit=1000
|default=
|intro=<h5>References</h5>
}}
</div></div></div>
<div class="card"><div class="mw-collapsible">
<div class="card-header bg-light"><h5>Relations (referenced in work)</h5></div>
<div class="card-body mw-collapsible-content">
{{#ask: [[Category:Annotated Printed Books||Copies or Translations of Printed Books||Catalogues of Numismatic Collections||Manuscripts of Unpublished Works||Correspondence||Correspondence Collections||Diaries]]
[[Author::{{PAGENAME}}]] OR
[[Category:Annotated Printed Books]] [[Annotator::{{PAGENAME}}]] OR
[[Category:Copies or Translations of Printed Books]] [[Translator::{{PAGENAME}}]] OR
[[Category:Correspondence]][[Recipient::{{PAGENAME}}]]
|?Author
|?Recipient
|?Annotator
|?Translator
|?Associated persons
|format=tagcloud
|template=TagcloudPersons
|userparam={{PAGENAME}}
|mincount=1
|limit=1000
|default=
}}
</div></div></div>
</div>
</div>
{{#default_form:Person}}[[Category:Persons|{{{Last name|}}}]]{{#set:Title Icon=Person.png|PageID={{PAGEID}}}}{{DEFAULTSORTKEY:{{{Last name|}}}, {{{First name|}}} }}</includeonly>
{{#default_form:Person}}[[Category:Persons|{{{Last name|}}}]]{{#set:Title Icon=Person.png|PageID={{PAGEID}}|ID={{PAGEID}}|Pagename={{PAGENAME}}
|Map={{{Birth coordinates|}}}:{{{Death coordinates|}}}~[[{{PAGENAME}}]]~born in {{{Birth place|}}}, died in {{{Death place|}}}~red~0.42~5
}}{{DEFAULTSORTKEY:{{{Last name|}}}, {{{First name|}}} }}</includeonly>

Latest revision as of 14:42, 4 April 2024

Template formatting Persons.