Template:Character infobox/relationship: Difference between revisions

From Absit Omen Lexicon
mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude>{{#cargo_declare:
<noinclude>{{documentation}}{{#cargo_attach:
_table=Relationships
_table = Relationships
|type=String (allowed values=Dating, Married, Engaged, Civil Union, Domestic Partnership, In a Relationship, Complicated)
}}</noinclude><includeonly>{{#invoke:Character infobox|relationship}}</includeonly>
|end_type=String (allowed values=Separation, Divorce, Death)
|person=Page
|date_started=Date
|date_ended=Date
}}
{{documentation}}</noinclude><includeonly>*{{{relationshipType}}}: [[{{{relationshipWith}}}]] {{#switch:{{{endType|}}}|Divorce=(Divorced)|Separation=(Separated)|Death=(Widowed)|#default=}} {{#if:{{{startDate|}}}{{{endDate|}}}|(<date>{{{startDate|}}}</date> - <date>{{{endDate|}}}</date>)|}} {{#cargo_store:
_table=Relationships
|type={{{relationshipType|}}}
|end_type={{{endType|}}}
|person={{{relationshipWith|}}}
|date_started={{{startDate|}}}
|date_ended={{{endDate|}}}
}}</includeonly>

Revision as of 03:47, 14 June 2021

[create] Documentation icon Template documentation
Please add categories and interwikis to the /doc subpage. Subpages of this template.


This template adds rows to the table "Relationships", which is declared by the template Character infobox/relationship. View table.