Difference between revisions of "Template:Persname"

From MarineLives
Jump to: navigation, search
(moved 'identified as' wikilink to footnote to fix linebreak problem)
m
 
Line 1: Line 1:
 
{{#if:{{{person_key|{{{2|}}}}}}
 
{{#if:{{{person_key|{{{2|}}}}}}
|{{#tag:ref|Identified as [[{{{person_key|{{{2|}}}}}}|{{{transcribed_name|{{{1|}}}}}}]].}}{{#subobject:
+
|{{#tag:ref|Identified as [[{{{person_key|{{{2|}}}}}}]].}}{{#subobject:
 
|Name transcribed as={{{transcribed_name|{{{1|}}}}}}
 
|Name transcribed as={{{transcribed_name|{{{1|}}}}}}
 
|Identified as person={{{person_key|{{{2}}}}}}
 
|Identified as person={{{person_key|{{{2}}}}}}

Latest revision as of 16:14, July 18, 2016

This template can be embedded directly in transcribed text to mark up person names. It's named after and roughly analagous to the TEI element persName.

Parameters


Parameter names can be omitted if the values are entered in this order:

  1. transcribed_name required the person's name as transcribed from the original document. Linked to Property:Name transcribed as.
  2. person_key optional the name of a page for the person if they can be identified. Linked to Property:Identified as person.
  3. possible_person_key optional Names of one or more pages separated by ; for possible people if they can't be positively identified. Linked to Property:Could be person.
  4. person_role optional A person's role in the document, such as deponent. If no value is entered, it defaults to 'Mentioned'. Linked to Property:Performs role in document.


Only one of person_key and possible_person_key should be used. If you use one of them, leave the other blank.

Example Usage


Unidentified person


To mark up a string as a person's name without making any claims about who it is or what their role in the document is:

{{persname|John Smith}}

Unidentified person with role


To mark up a string as a deponent's name without making any claims about who it is:

{{persname|John Smith|||deponent}}

or

{{persname|John Smith| person_role = deponent}}

Identified person


To mark up a string as a deponent's name and link to the page for an identified person:

{{persname|John Smith|John Smith, merchant captain||deponent}}

Multiple possibilities


To mark up a string as a deponent's name and link to the pages for more than one person:

{{persname|John Smith||John Smith, merchant captain;John Smith, army officer|deponent}}