Difference between revisions of "Tools: Team Two Gavin Robinson"

From MarineLives
Jump to: navigation, search
(Created page with "This page lists forms and templates created by Dr Gavin Robinson '''Form:Persname''' <pre><nowiki> <noinclude> This is the "Persname" form. To create a page with this form,...")
 
Line 1: Line 1:
 
This page lists forms and templates created by Dr Gavin Robinson
 
This page lists forms and templates created by Dr Gavin Robinson
 +
 +
'''FORMS'''
  
 
'''Form:Persname'''
 
'''Form:Persname'''
Line 40: Line 42:
 
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
 
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
 
</includeonly>
 
</includeonly>
 +
 +
</nowiki></pre>
 +
 +
----
 +
'''TEMPLATES'''
 +
 +
'''Template:Persname'''
 +
 +
<pre><nowiki>
 +
 +
{{#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}}</nowiki>
 +
 +
===Unidentified person with role===
 +
 +
To mark up a string as a deponent's name without making any claims about who it is:
 +
 +
<nowiki>{{persname|John Smith|||deponent}}</nowiki>
 +
 +
or
 +
 +
<nowiki>{{persname|John Smith| person_role = deponent}}</nowiki>
 +
 +
===Identified person===
 +
 +
To mark up a string as a deponent's name and link to the page for an identified person:
 +
 +
<nowiki>{{persname|John Smith|John Smith, merchant captain||deponent}}</nowiki>
 +
 +
===Multiple possibilities===
 +
 +
To mark up a string as a deponent's name and link to the pages for more than one person:
 +
 +
<nowiki>{{persname|John Smith||John Smith, merchant captain;John Smith, army officer|deponent}}</nowiki>
 +
</noinclude>
  
 
</nowiki></pre>
 
</nowiki></pre>

Revision as of 10:13, July 18, 2016

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>