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
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}}.

Revision as of 13:35, 30 September 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}}.
    • firstname as in {{TNGperson|I007|firstname}} provides {{#record:TNGperson/firstname|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}}.
    • 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}}.