Difference between revisions of "Template:Infobox fictional family"
imported>Plastikspork |
imported>Primefac (merge with Template:Infobox soap opera family) |
||
| Line 20: | Line 20: | ||
| label3 = Created by | | label3 = Created by | ||
| data3 = {{{creator|}}} | | data3 = {{{creator|}}} | ||
| + | |||
| + | | label4 = {{Nowrap|Introduced by}} | ||
| + | | data4 = {{{introducer|}}} | ||
| + | |||
| + | | label5 = Duration | ||
| + | | data5 = {{{years|}}} | ||
| + | |||
| + | | label7 = {{Nowrap|Spin-offs}} | ||
| + | | data7 = {{{spinoffs|}}} | ||
| header20 = {{#if: {{{race|}}} {{{species|}}} {{{affiliation|}}} {{{home|}}} {{{members|}}} | Information }} | | header20 = {{#if: {{{race|}}} {{{species|}}} {{{affiliation|}}} {{{home|}}} {{{members|}}} | Information }} | ||
| Line 32: | Line 41: | ||
| data23 = {{{home|}}} | | data23 = {{{home|}}} | ||
| − | | | + | | belowstyle = font-size: 100%; |
| − | | | + | | below = {{#if:{{{members|}}} |
| + | |{{infobox | ||
| + | |bodyclass = collapsible collapsed | ||
| + | |bodystyle=width:100%; font-size: 100%; line-height: 1.5em; border-collapse: collapse; border: 0; margin:0; clear:none; float:none; | ||
| + | |aboveclass = navbox-title | ||
| + | |abovestyle = background: {{If empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} | color: {{Greater color contrast ratio|{{If empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }} font-size: 100%; | ||
| + | |||
| + | |above = Family members | ||
| + | |||
| + | | data1 = {{{members|}}} | ||
| + | }} | ||
| + | }} | ||
<!-- Start tracking | <!-- Start tracking | ||
-->{{Ensure AAA contrast ratio|base={{If empty |{{{color|}}} |{{{colour|}}} }}|category=[[Category:Articles using infoboxes for fictional elements with invalid color combination]]}}}}<!-- | -->{{Ensure AAA contrast ratio|base={{If empty |{{{color|}}} |{{{colour|}}} }}|category=[[Category:Articles using infoboxes for fictional elements with invalid color combination]]}}}}<!-- | ||
| − | -->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox fictional family with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox fictional family]] with unknown parameter "_VALUE_"| adapted_by | affiliation | alt | caption | color | colour | creator | first | first_date | first_issue | first_major | first_minor | franchise | home | image | image_size | image_upright | last | last_date | last_issue | last_major | last_minor | members | name | race | series | species | type }}<noinclude> | + | -->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox fictional family with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox fictional family]] with unknown parameter "_VALUE_"| adapted_by | affiliation | alt | caption | color | colour | creator | first | first_date | first_issue | first_major | first_minor | franchise | home | image | image_size | image_upright | introducer | last | last_date | last_issue | last_major | last_minor | members | name | race | series | species | spinoffs | type | years}}<noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 22:23, 23 August 2020
| Script error: No such module "If empty". | |
|---|---|
| Species | Script error: No such module "If empty". |
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
Infobox fictional family is used to create an infobox for a fictional family of any type.
Contents
Usage
The blank form immediately below shows the most commonly used fields, and complete instructions are listed further down the page.
| Script error: No such module "If empty". | |||||
|---|---|---|---|---|---|
| {{{series}}} family | |||||
| [[File:{{{image}}}|frameless|alt={{{alt}}}|upright=1|{{{alt}}}]] {{{caption}}} | |||||
| First appearance |
| ||||
| Last appearance |
| ||||
| Created by | {{{creator}}} | ||||
| Information | |||||
| Species | Script error: No such module "If empty". | ||||
| Home | {{{home}}} | ||||
| |||||
{{Infobox fictional family
| color = <!-- headers background color; the foreground color is automatically computed -->
| name =
| series = <!-- or |franchise=; use without the italic on the outside -->
| image =
| alt =
| caption =
| first_major = <!-- per [[MOS:MAJORWORK]] - major works include TV series, films, books, albums and games -->
| first_minor = <!-- or |first_issue=; Per [[MOS:MINORWORK]] - minor works include TV episodes, chapters, songs and game missions -->
| first_date =
| last_major =
| last_minor = <!-- or |last_issue= -->
| last_date =
| creator = <!-- only the credited creators; use adapted_by= for adaptations -->
| home =
| members =
}}
The |members= parameter can handle a list of names, but Template:T can also be used if more detail is desired. The subtemplate is called as follows:
{{Infobox fictional family/member
|name =
|portrayer =
|first =
|last =
|occupation =
}}
Parameters
All parameters are optional. Separate multiple entries using {{Plainlist}}.
| Parameter | Notes |
|---|---|
| color | Background color for header bars (default = #DEDEE2). The text color is automatically computed. Must meet AAA compliance standards outlines on WP:COLOR. |
| name | Family name to display in top header (default = PAGENAME). |
| series | Name of the series in which family appears. |
| franchise | Name of the fictional world or story in which the family appears. Does not italicize title. |
| type | The type of fictional group. Defaults to "family". |
| image | Image of the family. "File:" and wikilinking is not required. i.e. use |image=Example.png.
|
| image_upright | The image size defaults to frameless (220px). The size should not be set to a value that would result in an image width greater than 270px. See help below for guidance on determining the value to be used. |
| alt | Alt text for image per WP:MOSALT. |
| caption | A caption explaining the image. |
| first_major | The title of the major work the fictional element first appeared in. Major works include TV series, films, books, albums and games. |
| first_minor | The title of the minor work the fictional element first appeared in. Minor works include TV episodes, chapters, songs and game missions. |
| first_issue | The number of the comic book issue the fictional element first appeared in. |
| first_date | The date of the publication/release of the minor work where the fictional element first appeared in. |
| last_major | The title of the major work the fictional element last appeared in. Major works include TV series, films, books, albums and games. |
| last_minor | The title of the minor work the fictional element last appeared in. Minor works include TV episodes, chapters, songs and game missions. |
| last_issue | The number of the comic book issue the fictional element last appeared in. |
| last_date | The date of the publication/release of the minor work where the fictional element last appeared in. |
| first | First appearance of the family. |
| last | Last appearance of the family. |
| creator | Name of the individuals who are credited with the creation of the family. |
| home | The location where the family lives. |
| members | The members belonging to the family. |
TemplateData
TemplateData
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See the monthly parameter usage report for this template.
TemplateData for Infobox fictional family Creates an infobox for a fictional family of any type.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Examples
Standard infobox with listed family members
| Script error: No such module "If empty". | |||||
|---|---|---|---|---|---|
| The Simpsons family | |||||
| First appearance |
| ||||
| Created by | Matt Groening | ||||
| Information | |||||
| Species | Script error: No such module "If empty". | ||||
| Home | Springfield, United States | ||||
| |||||
{{Infobox fictional family
| name = The Simpsons
| series = [[The Simpsons]]
| image = Simpsons FamilyPicture.png
| alt =
| caption = The Simpson family. From left to right: [[Bart Simpson|Bart]], [[Santa's Little Helper]], [[Marge Simpson|Marge]], [[Maggie Simpson|Maggie]], [[Homer Simpson|Homer]], [[Lisa Simpson|Lisa]], and Snowball II.
| type = family
| creator = [[Matt Groening]]
| first_major = [[The Tracey Ullman Show]]
| first_minor = [[Good Night (The Simpsons short)|Good Night]]
| first_date = {{Start date|1987|04|19}}
| home = [[Springfield (The Simpsons)|Springfield]], United States
| members = {{Plainlist|
* [[Homer Simpson|Homer]]
* [[Marge Simpson|Marge]]
* [[Bart Simpson|Bart]]
* [[Lisa Simpson|Lisa]]
* [[Maggie Simpson|Maggie]]
}}
}}
Infobox using member subtemplate
| Script error: No such module "If empty". | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Series name family | |||||||||||||||||||||||||||||||||
| First appearance | 19 February 1990 | ||||||||||||||||||||||||||||||||
| Last appearance | 24 October 2010 | ||||||||||||||||||||||||||||||||
| Created by | Creator | ||||||||||||||||||||||||||||||||
| Introduced by | Introducer | ||||||||||||||||||||||||||||||||
| Duration | 1990–2010 | ||||||||||||||||||||||||||||||||
| Spin-offs | Spin-off name | ||||||||||||||||||||||||||||||||
| Information | |||||||||||||||||||||||||||||||||
| Species | Script error: No such module "If empty". | ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
{{Infobox fictional family
|series=Series name
|name = Family name
|creator = Creator
|introducer = Introducer
|years = 1990–2010
|first = 19 February 1990
|last = 24 October 2010
|spinoffs = Spin-off name
|members =
{{Infobox fictional family/member
|name= [[Darren Miller]]
|portrayer = [[Malcolm Hebden]]
|relationship = Head of family
|first = 19 February 1990
|last = 8 May 2008
|occupation = Party organiser
}}
{{Infobox fictional family/member
|name= [[Lisa Dingle]]
|portrayer = [[Jennifer Metcalfe]]
|relationship = Wife of Darren
|first = 16 September 1999
|last = 24 October 2010
|occupation = Knicker stitcher
}}
}}
Tracking categories
- Category:Pages using infobox fictional family with unknown parameters (0)
- Category:Articles using infoboxes for fictional elements with invalid color combination (8)
| The above documentation is transcluded from Template:Infobox fictional family/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |