Template:TNGperson/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page. --> == Usage == To get data from an external database, call the following: <pre>{{TNGperson|person_...") |
No edit summary |
||
Line 16: | Line 16: | ||
** ''lastname'' as in {{tld|TNGperson|I007|lastname}} provides {{TNGperson|I007|lastname}}. | ** ''lastname'' as in {{tld|TNGperson|I007|lastname}} provides {{TNGperson|I007|lastname}}. | ||
** ''fullname'' as in {{tld|TNGperson|I007|fullname}} provides {{TNGperson|I007|fullname}}. | ** ''fullname'' as in {{tld|TNGperson|I007|fullname}} provides {{TNGperson|I007|fullname}}. | ||
** ''nickname'' as in {{tld|TNGperson|I007|nickname}} provides {{TNGperson|I007|nickname}}. | |||
** ''title'' as in {{tld|TNGperson|I007|title}} provides {{TNGperson|I007|title}}. | |||
** ''prefix'' as in {{tld|TNGperson|I007|prefix}} provides {{TNGperson|I007|prefix}}. | |||
** ''suffix'' as in {{tld|TNGperson|I007|suffix}} provides {{TNGperson|I007|suffix}}. | |||
** ''gender'' as in {{tld|TNGperson|I007|gender}} provides {{TNGperson|I007|gender}}. | ** ''gender'' as in {{tld|TNGperson|I007|gender}} provides {{TNGperson|I007|gender}}. | ||
** ''sex'' as in {{tld|TNGperson|I007|sex}} provides {{TNGperson|I007|sex}}. | ** ''sex'' as in {{tld|TNGperson|I007|sex}} provides {{TNGperson|I007|sex}}. |
Revision as of 10:34, 30 September 2014
{{#invoke:Message box|mbox}}
Usage
To get data from an external database, call the following:
{{TNGperson|person_ID|attribute}}
An explanation of the fields:
- person_ID 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}}.
- bio or biography as in