Template:Infobox fictional race/doc
{{#ifeq:doc |doc
|
{{#ifeq:show |show
| Template:Mbox }}{{#if: | | {{#ifexist:Template:Infobox fictional race | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
{{#invoke:Lua banner|main}}
Infobox fictional race is used to create an infobox for a fictional race of any type.
Usage
The blank form immediately below shows the most commonly used fields, and complete instructions are listed further down the page.
{{#invoke:Infobox|infobox}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#ifeq:Infobox fictional race/doc|Infobox||{{#ifeq:docdocd|Infobox|}}}} | other | #default = }}{{#invoke:Check for unknown parameters|check|unknown={{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }}|preview=Page using Template:Infobox fictional race with unknown parameter "_VALUE_"|showblankpositional=1| adapted_by | affiliation | alignment | alt | alt_name | base_of_operations | based_on | capital | caption | creator | currency | distinctions | first | first_date | first_issue | first_major | first_minor | franchise | genre | home_world | image | image_size | image_upright | iu_creator | iu_created_date | language | last | last_date | last_issue | last_major | last_minor | leader | leaders | members | name | other_names | quadrant | religion | series | sub_races | type }}
<syntaxhighlight lang="wikitext" style="overflow: auto;"> {{#invoke:Infobox|infobox}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#ifeq:Infobox fictional race/doc|Infobox||{{#ifeq:docdocd|Infobox|}}}} | other | #default = }}{{#invoke:Check for unknown parameters|check|unknown={{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }}|preview=Page using Template:Infobox fictional race with unknown parameter "_VALUE_"|showblankpositional=1| adapted_by | affiliation | alignment | alt | alt_name | base_of_operations | based_on | capital | caption | creator | currency | distinctions | first | first_date | first_issue | first_major | first_minor | franchise | genre | home_world | image | image_size | image_upright | iu_creator | iu_created_date | language | last | last_date | last_issue | last_major | last_minor | leader | leaders | members | name | other_names | quadrant | religion | series | sub_races | type }}</syntaxhighlight>
Parameters
All parameters are optional. Separate multiple entries using {{Plainlist}}.
| Parameter | Notes |
|---|---|
| name | Race name to display in top header (default = PAGENAME). |
| series | Name of the series in which the race appears. |
| franchise | Name of the fictional world or story in which the race appears. Does not italicize title. |
| multiple | Set to yes if the infobox describes more than one race. |
| image | 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 race. |
| last | Last appearance of the race. |
| creator | Name of the individuals who are credited with the creation of the race. |
| based_on | main}} to add the title of original race and the names of the original creators. |
| adapted_by | Name of the individuals who are credited with adapting the race into a new medium. |
| genre | - |
| other_names | Alternate names of the race. |
| iu_creator | The in-universe entity which created the race. |
| iu_created_date | The in-universe date the race was created. |
| quadrant | The quadrant of the galaxy the race is primary located at (used for Star Trek races). |
| home_world | The race's home world. |
| capital | The race's capital city. |
| base_of_operations | The race's primary base of operations. |
| type | The type of creature this race is. |
| sub_races | A list of the race's sub-races. |
| distinctions | The race's psychical distinctions. |
| language | The race's primary language. |
| currency | The race's currency. |
| religion | The race's religion or worship. |
| affiliation | The groups or teams the race belongs to. |
| alignment | The race's Dungeons & Dragons alignment. |
| {{safesubst:#invoke:list|unbulleted}} | leaders=}} and separate multiple entries using {{Plainlist}}. |
| members | Notable members belonging to the race. Add only characters with articles. If the list has more than a few names, link to a section of the article that has the complete list. |
TemplateData
style="background: #{{#switch:
{{#if:
|
{{{demospace}}} | main | other
}} }} |
main = F0F2F5 | other | #default = CCFFCC
}}; font-size:87%; padding:0.2em 0.3em; text-align:{{safesubst:#if:|left|{{safesubst:#if:|left|center}}}}; {{safesubst:#if:|color: {{{fc}}};|}}" | TemplateData
{{safesubst:#if: |
- | The following is a closed discussion. Template:Strongbad }} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{#if:1|{{#switch:
|
=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+fictional+race%7CInfobox+fictional+race%7CInfobox+fictional+race%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Infobox fictional race|Template:Infobox fictional race|this template}} in articles{{#ifeq:{{safesubst:#switch: y |
no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox fictional race|its|this}} TemplateData}}. |
none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+fictional+race%7CInfobox+fictional+race%7CInfobox+fictional+race%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y |
no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox fictional race|its|this}} TemplateData}} |
For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+fictional+race%7CInfobox+fictional+race%7CInfobox+fictional+race%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|no|P|p}}arameter usage report] for {{#if:Infobox fictional race|Template:Infobox fictional race|Template:Infobox fictional race}}{{#ifeq:{{safesubst:#switch: y |
no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox fictional race|its|this}} TemplateData}}. |
#default=[1]{{#ifeq:{{safesubst:#switch: y | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox fictional race|its|this}} TemplateData}} }}|This is the {{#if:|TemplateData|TemplateData}} for this template used by TemplateWizard, VisualEditor and other tools. {{#switch: |
=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+fictional+race%7CInfobox+fictional+race%7CInfobox+fictional+race%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Infobox fictional race|Template:Infobox fictional race|this template}} in articles{{#ifeq:{{safesubst:#switch: y |
no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox fictional race|its|this}} TemplateData}}. |
none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+fictional+race%7CInfobox+fictional+race%7CInfobox+fictional+race%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y |
no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox fictional race|its|this}} TemplateData}} |
For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+fictional+race%7CInfobox+fictional+race%7CInfobox+fictional+race%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|no|P|p}}arameter usage report] for {{#if:Infobox fictional race|Template:Infobox fictional race|Template:Infobox fictional race}}{{#ifeq:{{safesubst:#switch: y |
no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox fictional race|its|this}} TemplateData}}. |
#default=[2]{{#ifeq:{{safesubst:#switch: y | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox fictional race|its|this}} TemplateData}} }}}} TemplateData for Infobox fictional race {{#invoke:Check for unknown parameters|check |
unknown={{#switch:
{{#if:
|
{{{demospace}}} | Template | template | other
}} }} |
template = | other | #default =
}} |
template=Template:TemplateData header | nolink |noheader | preview= Unknown parameter '_VALUE_' in Template:TemplateData header.
}}{{#switch: {{#if:
|
{{{demospace}}} | Template | template | other
}} }} |
sublength|s=doc|i=0|len=7}}|sandbox|1}}{{#ifeq:doc|doc|1}}{{#invoke:String|match|Infobox fictional race/doc|/sandbox/styles.css$|plain=false|nomatch=}} |
}} |
other | #default =
}}
<templatedata>
{
"description": "Creates an infobox for a fictional race of any type.",
"params": {
"name": {
"label": "Name",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Race name to display in top header (default = PAGENAME)."
},
"series": {
"label": "Series",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Name of the series in which the race appears."
},
"franchise": {
"label": "Franchise",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Name of the fictional world or story in which the race appears. Does not italicize title."
},
"multiple": {
"label": "Multiple",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Set to yes if the infobox describes more than one race."
},
"image": {
"label": "Image",
"type": "wiki-file-name",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Image of the race. \"File:\" and wikilinking is not required. i.e. use |
Tracking categories
- [[:Category:{{#invoke:string|replace|1=Pages using infobox fictional race with unknown parameters|2=^:?[Cc]ategory:|3=|plain=false}}|{{#if:|{{{name}}}|Category:{{#invoke:string|replace|1=Pages using infobox fictional race with unknown parameters|2=^:?[Cc]ategory:|3=|plain=false}}}}]] (0)
{{#invoke:Navbox|navbox}}