Tools: Team Two Gavin Robinson

From MarineLives
Jump to: navigation, search

This page lists forms and templates created by Dr Gavin Robinson

FORMS

Form:Persname

<noinclude>
This is the "Persname" form.
To create a page with this form, enter the page name below;
if a page with that name already exists, you will be sent to a form to edit that page.


{{#forminput:form=Persname}}

</noinclude><includeonly>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
==Transcript==
{{{section|Transcript|level=2}}}

{{{for template|Persname in form|multiple|add button text=Add another person}}}
'''Name as transcribed:''' {{{field|transcribed_name}}}

'''Role:''' {{{field|person_role|default=Mentioned}}}

'''Identified as person:''' {{{field|person_key|property=Identified as person}}}

'''Could be person:''' {{{field|possible_person_keys|list|delimiter=;|property=Could be person}}}

{{{end template}}}

{{{for template|Get person subobjects}}}
{| class="formtable"
|}
{{{end template}}}


{{{standard input|summary}}}

{{{standard input|minor edit}}} {{{standard input|watch}}}

{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
</includeonly>



TEMPLATES

Template:Persname


{{#if:{{{person_key|{{{2|}}}}}}
|[[{{{person_key|{{{2|}}}}}}|{{{transcribed_name|{{{1|}}}}}}]]{{#subobject:
|Name transcribed as={{{transcribed_name|{{{1|}}}}}}
|Identified as person={{{person_key|{{{2}}}}}}
|Performs role in document={{{person_role|{{{4|Mentioned}}}}}}
|Mentioned in page={{FULLPAGENAME}}
}}
|{{#if:{{{possible_person_keys|{{{3|}}}}}}
|{{{transcribed_name|{{{1|}}}}}}{{#tag:ref|Could be {{#arraymap:{{{possible_person_keys|{{{3|}}}}}}|;|@@@|[[@@@]]}}.}}{{#subobject:
|Name transcribed as={{{transcribed_name|{{{1|}}}}}}
|Could be person={{{possible_person_keys|{{{3}}}}}}|+sep=;
|Performs role in document={{{person_role|{{{4|Mentioned}}}}}}
|Mentioned in page={{FULLPAGENAME}}
}}
|{{{transcribed_name|{{{1|}}}}}}{{#subobject:
|Name transcribed as={{{transcribed_name|{{{1|}}}}}}
|Performs role in document={{{person_role|{{{4|Mentioned}}}}}}
|Mentioned in page={{FULLPAGENAME}}
}}
}}}}<noinclude>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:

# '''transcribed_name''' ''required'' the person's name as transcribed from the original document. Linked to [[Property:Name transcribed as]].
# '''person_key''' ''optional'' the name of a page for the person if they can be identified. Linked to [[Property:Identified as person]].
# '''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]].
# '''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:

<nowiki>{{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}}
</noinclude>

</nowiki>

Template:Persname in form


<includeonly>{{#subobject:
|Name transcribed as={{{transcribed_name|}}}
|Identified as person={{{person_key|}}}
|Performs role in document={{{person_role|Mentioned}}}
|Could be person={{{possible_person_keys|}}}|+sep=;
|Mentioned in page={{FULLPAGENAME}}
}}</includeonly><noinclude>Repeatable template that creates a subobject for a person mentioned in a transcript. Designed to be used in [[Form:persname]].</noinclude>


Template:Get person subobjects


<includeonly>==People==

{{#ask: [[-Has subobject::{{FULLPAGENAME}}]]
|?Name transcribed as
|?Identified as person
|?Could be person
|mainlabel=-
}}{{#default_form:Persname}}</includeonly><noinclude>This template is used in [[Form:persname]] to display metadata about people. It has no parameters.</noinclude>