Template:TNGperson/doc: Difference between revisions

From 'City of Adelaide' History and Genealogy Site
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 6: Line 6:
To get data from an external database, call the following:
To get data from an external database, call the following:


<pre>{{TNGperson|person_ID|attribute}}</pre>
<pre>{{TNGperson|personID|attribute}}</pre>


An explanation of the fields:  
An explanation of the fields:  


* ''person_ID'' is the unique identification number for the individual.
* '''''personID''''' is the unique identification number for the individual.
* ''attribute'' identifies the type of data and/or format to be retrieved. Available attributes:
* '''''attribute''''' identifies the type of data and/or format to be retrieved. Available attributes:
** ''bio'' or ''biography'' as in {{tld|TNGperson|I007|bio}} provides {{TNGperson|I007|bio}}.
** '''''bio''''' or '''''biography''''' as in {{tld|TNGperson|I007|bio}} provides {{TNGperson|I007|bio}}.
** ''firstname'' as in {{tld|TNGperson|I007|firstname}} provides {{TNGperson|I007|firstname}}.
** '''''biobd''''' as in {{tld|TNGperson|I007|biobd}} provides {{TNGperson|I007|biobd}}.
** ''lastname'' as in {{tld|TNGperson|I007|lastname}} provides {{TNGperson|I007|lastname}}.
** '''''biobdol''''' as in {{tld|TNGperson|I007|biobdol}} provides {{TNGperson|I007|biobdol}}.
** ''fullname'' as in {{tld|TNGperson|I007|fullname}} provides {{TNGperson|I007|fullname}}.
** '''''birthdeath''''' as in {{tld|TNGperson|I007|birthdeath}} provides {{TNGperson|I007|birthdeath}}.
** ''nickname'' as in {{tld|TNGperson|I007|nickname}} provides {{TNGperson|I007|nickname}}.
** '''''firstname''''' as in {{tld|TNGperson|I007|firstname}} provides {{TNGperson|I007|firstname}}.
** ''title'' as in {{tld|TNGperson|I007|title}} provides {{TNGperson|I007|title}}.
** '''''firstlink''''' as in {{tld|TNGperson|I007|firstlink}} provides {{TNGperson|I007|firstlink}}.
** ''prefix'' as in {{tld|TNGperson|I007|prefix}} provides {{TNGperson|I007|prefix}}.
** '''''lastname''''' as in {{tld|TNGperson|I007|lastname}} provides {{TNGperson|I007|lastname}}.
** ''suffix'' as in {{tld|TNGperson|I007|suffix}} provides {{TNGperson|I007|suffix}}.
** '''''fullname''''' as in {{tld|TNGperson|I007|fullname}} provides {{TNGperson|I007|fullname}}.
** ''gender'' as in {{tld|TNGperson|I007|gender}} provides {{TNGperson|I007|gender}}.
** '''''nickname''''' as in {{tld|TNGperson|I007|nickname}} provides {{TNGperson|I007|nickname}}.
** ''sex'' as in {{tld|TNGperson|I007|sex}} provides {{TNGperson|I007|sex}}.
** '''''title''''' as in {{tld|TNGperson|I007|title}} provides {{TNGperson|I007|title}}.
** ''familyID'' as in {{tld|TNGperson|I007|familyID}} provides {{TNGperson|I007|familyID}}.
** '''''prefix''''' as in {{tld|TNGperson|I007|prefix}} provides {{TNGperson|I007|prefix}}.
** ''familybio'' as in {{tld|TNGperson|I007|familybio}} provides {{TNGperson|I007|familybio}}.
** '''''suffix''''' as in {{tld|TNGperson|I007|suffix}} provides {{TNGperson|I007|suffix}}.
** ''fullnamelink'' (default) as in {{tld|TNGperson|I007|fullnamelink}} or {{tld|TNGperson|I007}} provides {{TNGperson|I007|fullnamelink}} or {{TNGperson|I007}}.
** '''''gender''''' as in {{tld|TNGperson|I007|gender}} provides {{TNGperson|I007|gender}}.
** '''''sex''''' as in {{tld|TNGperson|I007|sex}} provides {{TNGperson|I007|sex}}.
** '''''nationality''''' as in {{tld|TNGperson|I007|nationality}} provides {{TNGperson|I007|nationality}}.
** '''''natflag''''' as in {{tld|TNGperson|I007|natflag}} provides {{TNGperson|I007|natflag}}.
** '''''familyID''''' as in {{tld|TNGperson|I007|familyID}} provides {{TNGperson|I007|familyID}}.
** '''''familybio''''' as in {{tld|TNGperson|I007|familybio}} provides {{TNGperson|I007|familybio}}.
** '''''fullnamelink''''' (default) as in {{tld|TNGperson|I007|fullnamelink}} or {{tld|TNGperson|I007}} provides {{TNGperson|I007|fullnamelink}} or {{TNGperson|I007}}.





Latest revision as of 02:42, 11 October 2014

{{#invoke:Message box|mbox}}

Usage

To get data from an external database, call the following:

{{TNGperson|personID|attribute}}

An explanation of the fields:

  • personID is the unique identification number for the individual.
  • attribute identifies the type of data and/or format to be retrieved. Available attributes:
    • bio or biography as in {{TNGperson|I007|bio}} provides {{#record:TNGperson/biography|tngpid|personID=I007}}.
    • biobd as in {{TNGperson|I007|biobd}} provides {{#record:TNGperson/biobd|tngpid|personID=I007}}.
    • biobdol as in {{TNGperson|I007|biobdol}} provides {{#record:TNGperson/biobdol|tngpid|personID=I007}}.
    • birthdeath as in {{TNGperson|I007|birthdeath}} provides {{#record:TNGperson/birthdeath|tngpid|personID=I007}}.
    • firstname as in {{TNGperson|I007|firstname}} provides {{#record:TNGperson/firstname|tngpid|personID=I007}}.
    • firstlink as in {{TNGperson|I007|firstlink}} provides {{#record:TNGperson/firstlink|tngpid|personID=I007}}.
    • lastname as in {{TNGperson|I007|lastname}} provides {{#record:TNGperson/lastname|tngpid|personID=I007}}.
    • fullname as in {{TNGperson|I007|fullname}} provides {{#record:TNGperson/fullname|tngpid|personID=I007}}.
    • nickname as in {{TNGperson|I007|nickname}} provides {{#record:TNGperson/nickname|tngpid|personID=I007}}.
    • title as in {{TNGperson|I007|title}} provides {{#record:TNGperson/title|tngpid|personID=I007}}.
    • prefix as in {{TNGperson|I007|prefix}} provides {{#record:TNGperson/prefix|tngpid|personID=I007}}.
    • suffix as in {{TNGperson|I007|suffix}} provides {{#record:TNGperson/suffix|tngpid|personID=I007}}.
    • gender as in {{TNGperson|I007|gender}} provides {{#record:TNGperson/gender|tngpid|personID=I007}}.
    • sex as in {{TNGperson|I007|sex}} provides {{#record:TNGperson/sex|tngpid|personID=I007}}.
    • nationality as in {{TNGperson|I007|nationality}} provides {{#record:TNGperson/nationality|tngnationality|persfamID=I007}}.
    • natflag as in {{TNGperson|I007|natflag}} provides {{#record:TNGperson/natflag|tngnationality|persfamID=I007}}.
    • familyID as in {{TNGperson|I007|familyID}} provides {{#record:TNGperson/family|tngpid|personID=I007}}.
    • familybio as in {{TNGperson|I007|familybio}} provides {{#record:TNGperson/familybio|tngpid|personID=I007}}.
    • fullnamelink (default) as in {{TNGperson|I007|fullnamelink}} or {{TNGperson|I007}} provides {{#record:TNGperson/namelink|tngpid|personID=I007}} or {{#record:TNGperson/namelink|tngpid|personID=I007}}.