Difference between revisions of "Template:Character/family"

From The Coppermind
Jump to navigation Jump to search
m
m (+usage)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{infobox|title=Family subbox|1=</noinclude>
+
<noinclude>{{infobox|title=Family subbox|id=character/family|1=</noinclude>{{#if:{{{merge}}}
 
|{{#if:{{{family}}} |{{row/kv|Family |{{{family}}} }}|}}
  +
|<!-- DON'T MERGE -->
 
{{!}}-
 
{{!}}-
 
{{!}} colspan=2 style="padding: 0; margin: 0;" {{!}}
 
{{!}} colspan=2 style="padding: 0; margin: 0;" {{!}}
Line 6: Line 8:
 
! colspan=2 align=center {{!}} {{{family|Family}}}
 
! colspan=2 align=center {{!}} {{{family|Family}}}
 
{{!}}-
 
{{!}}-
  +
}}<!-- END MERGE -->
{{#if:{{{ancestors}}}|{{row/kv|Ancestors|{{{ancestors}}}|}}|}}
 
{{#if:{{{parents}}}|{{row/kv|Parents|{{{parents}}}|}}|}}
+
{{#if:{{{spouse}}} |{{row/kv|Spouse |{{{spouse}}} }}|}}
{{#if:{{{siblings}}}|{{row/kv|Siblings|{{{siblings}}}|}}|}}
+
{{#if:{{{children}}} |{{row/kv|Children |{{{children}}} }}|}}
{{#if:{{{spouse}}}|{{row/kv|Spouse|{{{spouse}}}|}}|}}
+
{{#if:{{{parents}}} |{{row/kv|Parents |{{{parents}}} }}|}}
{{#if:{{{children}}}|{{row/kv|Children|{{{children}}}|}}|}}
+
{{#if:{{{siblings}}} |{{row/kv|Siblings |{{{siblings}}} }}|}}
{{#if:{{{relatives}}}|{{row/kv|Relatives|{{{relatives}}}|}}|}}
+
{{#if:{{{relatives}}} |{{row/kv|Relatives |{{{relatives}}} }}|}}
{{#if:{{{descendants}}}|{{row/kv|Descendants|{{{descendants}}}|}}|}}
+
{{#if:{{{ancestors}}} |{{row/kv|Ancestors |{{{ancestors}}} }}|}}
  +
{{#if:{{{descendants}}} |{{row/kv|Descendants |{{{descendants}}} }}|}}
  +
{{#if:{{{merge}}}|<!-- -->|
 
{{!}}}
 
{{!}}}
{{!}}-<noinclude>
+
{{!}}-
  +
}}<noinclude>
 
}}
 
}}
   
The family parameters for {{t|character}}
+
The family parameters for {{t|character}}.
  +
  +
Produces a table unless {{{merge}}} is passed, which causes the rows to be merged into the parent infobox.
  +
  +
[[Category: Infoboxes]]
  +
<templatedata>
  +
{
  +
"params": {
  +
"merge": {
  +
"description": "Whether to merge the rows into the containing template"
  +
},
  +
"family": {
  +
"label": "Family Name",
  +
"description": "The name of the family group, often a link to the group page",
  +
"type": "content"
  +
},
  +
"ancestors": {
  +
"label": "Ancestors",
  +
"description": "Links to any ancestors the character has",
  +
"type": "content"
  +
},
  +
"parents": {
  +
"label": "Parents",
  +
"description": "Links to any parents the character has",
  +
"type": "content"
  +
},
  +
"siblings": {
  +
"label": "Siblings",
  +
"description": "links to any siblings the character has",
  +
"type": "content"
  +
},
  +
"spouse": {
  +
"label": "Spouse",
  +
"description": "A link to the spouse of the character, or spouses",
  +
"type": "content"
  +
},
  +
"children": {
  +
"label": "Children",
  +
"description": "links to any children the character has",
  +
"type": "content"
  +
},
  +
"relatives": {
  +
"label": "Other Relatives",
  +
"description": "links to any other notable relatives the character has",
  +
"type": "content"
  +
},
  +
"descendants": {
  +
"label": "Descendants",
  +
"description": "links to any of the characters further descendants",
  +
"type": "content"
  +
}
  +
},
  +
"format": "block"
  +
}
  +
</templatedata>
  +
  +
  +
== Articles using Template ==
  +
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}}
  +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}

Latest revision as of 20:03, 19 April 2020

Family subbox
Family {{{family}}}
Spouse {{{spouse}}}
Children {{{children}}}
Parents {{{parents}}}
Siblings {{{siblings}}}
Relatives {{{relatives}}}
Ancestors {{{ancestors}}}
Descendants {{{descendants}}}

The family parameters for {{character}}.

Produces a table unless {{{merge}}} is passed, which causes the rows to be merged into the parent infobox.

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Mergemerge

Whether to merge the rows into the containing template

Unknownoptional
Family Namefamily

The name of the family group, often a link to the group page

Contentoptional
Ancestorsancestors

Links to any ancestors the character has

Contentoptional
Parentsparents

Links to any parents the character has

Contentoptional
Siblingssiblings

links to any siblings the character has

Contentoptional
Spousespouse

A link to the spouse of the character, or spouses

Contentoptional
Childrenchildren

links to any children the character has

Contentoptional
Other Relativesrelatives

links to any other notable relatives the character has

Contentoptional
Descendantsdescendants

links to any of the characters further descendants

Contentoptional


Articles using Template