Template:Person: Difference between revisions

From Railway Knowledge Base for New Zealand
Jump to navigation Jump to search
(Generated from a page schema)
(Generated from a page schema)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:PersonID|Surname|Initial1 (label=1st Initial)|Initial2 (label=2nd Initial)|Initial3 (label=3rd Initial)|Initial4 (label=4th Initial)|Initial5 (label=5th Initial)|Initial6 (label=6th Initial)|1stName (label=1st Name)|2ndName (label=2nd Name)|3rdName (label=3rd Name)|4thName|5thName (label=5th Name)|Gender|DoBPrefix (label=Birth Prefix)|DateOfBirth (label=Date of Birth)|DoEPrefix (label=Employment Prefix)|DateOfEmployment (label=Employment date)|DoMPrefix (label=Marriage Prefix)|DateOfMarriage (label=Marriage Date)|DoDPrefix (label=Death Prefix)|Relative|DataSources (label=data Sources;list)}}
{{#template_params:PersonID|Surname|Initial1 (label=1st Initial)|Initial2 (label=2nd Initial)|Initial3 (label=3rd Initial)|Initial4 (label=4th Initial)|Initial5 (label=5th Initial)|Initial6 (label=6th Initial)|1stName (label=1st Name)|2ndName (label=2nd Name)|3rdName (label=3rd Name)|4thName|5thName (label=5th Name)|Gender|Group|Company (label=Private Company)|DoBPrefix (label=Birth Prefix)|DateOfBirth (label=Date of Birth)|DoEPrefix (label=Employment Prefix)|DateOfEmployment (label=Employment date)|DoMPrefix (label=Marriage Prefix)|DateOfMarriage (label=Marriage Date)|DoDPrefix (label=Death Prefix)|RelatedToID(s) (list)|Relationship(s) (label=Relationship;list)|DataSources (label=data Sources;list)}}
{{#cargo_declare:_table=Person|PersonID=Page|Surname=String|Initial1=String|Initial2=String|Initial3=String|Initial4=String|Initial5=String|Initial6=String|1stName=String|2ndName=String|3rdName=String|4thName=Page|5thName=Page|Gender=String (allowed values=Male,Female)|DoBPrefix=Page (allowed values=circa,before,after)|DateOfBirth=Date|DoEPrefix=String (allowed values=circa,before,after)|DateOfEmployment=Date|DoMPrefix=String (allowed values=circa,before,after)|DateOfMarriage=Date|DoDPrefix=String (allowed values=circa,before,after)|Relative=String (allowed values=Father,Mother,Brother,Sister,Uncle,Aunt,Grandfather,Grandmother,Nephew,Niece,Cousin)|DataSources=List (,) of Text}}
{{#cargo_declare:_table=Person|PersonID=Page|Surname=String|Initial1=String|Initial2=String|Initial3=String|Initial4=String|Initial5=String|Initial6=String|1stName=String|2ndName=String|3rdName=String|4thName=Page|5thName=Page|Gender=String (allowed values=Male,Female)|Group=Page (allowed values=N,P,M,I,R,E,C,D,V)|Company=Page|DoBPrefix=Page (allowed values=circa,before,after)|DateOfBirth=Date|DoEPrefix=String (allowed values=circa,before,after)|DateOfEmployment=Date|DoMPrefix=String (allowed values=circa,before,after)|DateOfMarriage=Date|DoDPrefix=String (allowed values=circa,before,after)|RelatedToID(s)=List (,) of Page|Relationship(s)=List (,) of String (allowed values=Father,Mother,Brother,Sister,Uncle,Aunt,Grandfather,Grandmother,Nephew,Niece,Cousin)|DataSources=List (,) of Text}}
</noinclude><includeonly>{{#cargo_store:_table=Person}}
</noinclude><includeonly>{{#cargo_store:_table=Person}}
{{#template_display:_format=standard}}
{{#template_display:_format=standard}}
[[Category:Person]]
[[Category:Person]]
</includeonly>
</includeonly>

Revision as of 06:17, 24 November 2023

This is the "Person" template.

It should be called in the following format:

{{Person
|PersonID=
|Surname=
|Initial1=
|Initial2=
|Initial3=
|Initial4=
|Initial5=
|Initial6=
|1stName=
|2ndName=
|3rdName=
|4thName=
|5thName=
|Gender=
|Group=
|Company=
|DoBPrefix=
|DateOfBirth=
|DoEPrefix=
|DateOfEmployment=
|DoMPrefix=
|DateOfMarriage=
|DoDPrefix=
|RelatedToID=
|Relationship=
|DataSources=
}}

Edit the page to see the template text.

Error: "Group" cannot be used as a Cargo field name, because it is an SQL keyword.