Template:Infobox character: Difference between revisions
m 1 revision imported: Wikipedia Infoboxes |
don't need this, we're not on wikipedia |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| bodystyle = border-spacing: 2px 5px; | | bodystyle = border-spacing: 2px 5px; | ||
Line 5: | Line 4: | ||
| above = {{If empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }} | | above = {{If empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }} | ||
| abovestyle = background-color: #DEDEE2; color:black; | | abovestyle = background-color: #DEDEE2; color:black; | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|}}}|alt={{{alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|}}}|alt={{{alt|}}}}} | ||
Line 12: | Line 9: | ||
| headerstyle = background-color: #DEDEE2; color:black; | | headerstyle = background-color: #DEDEE2; color:black; | ||
| label4 = Created by | | label4 = Created by | ||
| data4 = {{{creator|}}} | | data4 = {{{creator|}}} | ||
| label11 = {{{lbl1|}}} | | label11 = {{{lbl1|}}} | ||
Line 58: | Line 28: | ||
| data15 = {{{data5|}}} | | data15 = {{{data5|}}} | ||
| header20 = {{#if: {{{noinfo|}}} || {{#if: {{{full_name|}}} {{{alias|}}} {{{aliases|}}} {{{ | | header20 = {{#if: {{{noinfo|}}} || {{#if: {{{full_name|}}} {{{alias|}}} {{{aliases|}}} {{{tribe|}}} {{{gender|}}} {{{title|}}} {{{occupation|}}} {{{affiliation|}}} {{{family|}}} {{{spouse|}}} {{{significant_other|}}} {{{children|}}} {{{relatives|}}} {{{year_hatched|}} {{{data21|}}} {{{data22|}}} {{{data23|}}} {{{data24|}}} {{{data25|}}} | {{If empty |{{{info-hdr|}}} |In-universe information }} }} }} | ||
| label21 = Full name | | label21 = Full name | ||
Line 66: | Line 36: | ||
| data22 = {{If empty |{{{alias|}}} |{{{aliases|}}} }} | | data22 = {{If empty |{{{alias|}}} |{{{aliases|}}} }} | ||
| label24 = Tribe | |||
| data24 = {{{tribe|}}} | |||
| label24 = | |||
| data24 = | |||
| label25 = Gender | | label25 = Gender | ||
Line 78: | Line 45: | ||
| data26 = {{{title|}}} | | data26 = {{{title|}}} | ||
| label27 = | | label27 = Occupation | ||
| data27 = | | data27 = {{{occupation|}}} | ||
| label28 = | | label28 = Affiliation | ||
| data28 = | | data28 = {{{affiliation|}}} | ||
| label31 = Family | | label31 = Family | ||
| data31 = {{{family|}}} | | data31 = {{{family|}}} | ||
| label32 = | | label32 = Spouse | ||
| data32 = | | data32 = {{{spouse|}}} | ||
| label33 = | | label33 = Significant {{nowrap|other}} | ||
| data33 = | | data33 = {{{significant_other|}}} | ||
| label34 = Children | | label34 = Children | ||
Line 105: | Line 66: | ||
| data35 = {{{relatives|}}} | | data35 = {{{relatives|}}} | ||
| label36 = | | label36 = Year of hatching | ||
| data36 = {{{ | | data36 = {{{year_hatched|}}} | ||
| label39 = {{{lbl21|}}} | | label39 = {{{lbl21|}}} | ||
Line 153: | Line 108: | ||
| {{#if: {{{lbl32|}}} {{{data32|}}} {{{lbl22|}}} {{{data22|}}} {{{lbl2|}}} {{{data2|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|2{{PAGENAME}}]] | | {{#if: {{{lbl32|}}} {{{data32|}}} {{{lbl22|}}} {{{data22|}}} {{{lbl2|}}} {{{data2|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|2{{PAGENAME}}]] | ||
}} }} }} }}}}<!-- | }} }} }} }}}}<!-- | ||
-->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox character with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox character]] with unknown parameter "_VALUE_"|showblankpositional=1 | -->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox character with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox character]] with unknown parameter "_VALUE_"|showblankpositional=1| affiliation | alias | aliases | alt | caption | children | creator | data1 | data2 | data3 | data4 | data5 | data21 | data22 | data23 | data24 | data25 | data31 | data32 | data33 | data34 | data35 | extra-hdr | family | full_name | gender | image | image_size | image_upright | info-hdr | lbl1 | lbl2 | lbl3 | lbl4 | lbl5 | lbl21 | lbl22 | lbl23 | lbl24 | lbl25 | lbl31 | lbl32 | lbl33 | lbl34 | lbl35 | name | noinfo | occupation | tribe | relatives | significant_other | year_hatched | spouse | title }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories to the /doc subpage, not here! --> | <!-- Add categories to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Latest revision as of 00:34, 26 November 2024
In-universe information |
---|
File:Lua-Logo.svg | This template uses Lua: |
Infobox character is used to create an infobox for a fictional character of any type.
Usage
The blank form immediately below shows the most commonly used fields, and complete instructions are listed further down the page.
{{{name}}} | |
---|---|
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright={{{image_upright}}}]] | |
Created by | {{{creator}}} |
{{{lbl1}}} | {{{data1}}} |
{{{lbl2}}} | {{{data2}}} |
{{{lbl3}}} | {{{data3}}} |
{{{lbl4}}} | {{{data4}}} |
{{{lbl5}}} | {{{data5}}} |
{{{info-hdr}}} | |
Full name | {{{full_name}}} |
Alias | {{{alias}}} |
Gender | {{{gender}}} |
Title | {{{title}}} |
Occupation | {{{occupation}}} |
Affiliation | {{{affiliation}}} |
Family | {{{family}}} |
Spouse | {{{spouse}}} |
Significant other | {{{significant_other}}} |
Children | {{{children}}} |
Relatives | {{{relatives}}} |
Year of hatching | {{{year_hatched}}} |
{{{lbl21}}} | {{{data21}}} |
{{{lbl22}}} | {{{data22}}} |
{{{lbl23}}} | {{{data23}}} |
{{{lbl24}}} | {{{data24}}} |
{{{lbl25}}} | {{{data25}}} |
{{{extra-hdr}}} | |
{{{lbl31}}} | {{{data31}}} |
{{{lbl32}}} | {{{data32}}} |
{{{lbl33}}} | {{{data33}}} |
{{{lbl34}}} | {{{data34}}} |
{{{lbl35}}} | {{{data35}}} |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Infobox character | |
---|---|
In-universe information |
Parameters
All parameters are optional. Separate multiple entries using {{Plainlist}}.
Parameter | Notes |
---|---|
name | Character name to display in top header (default = PAGENAME). |
image | Image of the character. "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. |
alt | Alt text for image. |
caption | A caption explaining the image. |
creator | Name of the individuals who are credited with the creation of the character. |
noinfo | Disable the first "In-universe information" header. |
info-hdr | Text for display in second header (default = Information). |
full_name | The character's full name. |
|
Any aliases used by the character. |
tribe | The tribe of the character. |
gender | The gender of the character. Use only if not obvious. |
title | Titles the character was known by. |
affiliation | The kingdom or nation the character belongs to. |
family | The character's family members. |
spouse | The character's spouse. |
significant_other | The character's significant other. |
children | The characters's children. |
relatives | The characters's relatives. |
year_hatched | The year of the character's hatching. |
extra-hdr | Text for display in third header (default = No third header). |
lbl# | Label to display in left column where "#" is 1-5, 21-25, or 31-35 for custom fields under the 1st, 2nd, or 3rd headers respectively. |
data# | Text to display in the right column corresponding to the appropriate "lbl#". |
TemplateData
TemplateData
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an infobox for a fictional character of any type.
|
All parameters (not for general use)
Complete list of parameters
| ||||
---|---|---|---|---|
<syntaxhighlight lang="wikitext">
|
Example
John Doe | |
---|---|
Created by | Agnes Nixon |
In-universe information | |
Alias | Jack Dew |
Gender | Male |
Title | Detective |
Occupation | Law enforcement |
Family | Doe |
Spouse | Jane Doe |
Children | John Doe, Jr. |
Relatives |
|
<syntaxhighlight lang="wikitext">
John Doe | |
---|---|
Created by | Agnes Nixon |
In-universe information | |
Alias | Jack Dew |
Gender | Male |
Title | Detective |
Occupation | Law enforcement |
Family | Doe |
Spouse | Jane Doe |
Children | John Doe, Jr. |
Relatives |
* Nancy Doe (mother) |
</syntaxhighlight>
Tracking categories
- Category:Pages using infobox character with unknown parameters (0)
- Category:Articles using Infobox character with multiple unlabeled fields (1)
See also
- {{Infobox person}}