Template:Species infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m ("relatives" should logically be closer to "variants" than "comparable" is.)
m (Text replacement - "{{#if:{{#pos:{{{([^}\n]+)}}}\|<br>}}\|2\|1}}" to "{{#rmatch:{{{$1}}}|<br\b|2|1|caseless=1}}")
(38 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:280px;background:ghostwhite;border:1px solid #88a"
{| id="species" class="infobox" style="width:280px"
! colspan="2" style="font-size:125%;background-color:#10274c;color:white" | {{{title|{{PAGENAME}}}}}
! colspan="2" style="font-size:125%" | {{{title|{{PAGETITLE}}}}}
|-
|-
|align="center" colspan="2" | {{{image|}}}
| colspan="2" style="text-align:center" | {{{image|}}}
|- style="vertical-align: top"
|-
{{#if:{{{affiliation|}}}|{{!}}- style="vertical-align: top"
{{#if:{{{affiliation|}}}|
{{!}} '''Affiliation(s)'''
{{!}} '''Affiliation(s)'''
{{!}} {{{affiliation}}}
{{!}} {{{affiliation}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{first_appearance|}}}|{{!}}- style="background:#c5ced6; vertical-align:top"
{{#if:{{{first_appearance|}}}|
{{!}} '''First appearance'''
{{!}} '''First appearance'''
{{!}} {{{first_appearance}}}
{{!}} {{{first_appearance}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{latest_appearance|}}}|{{!}}- style="vertical-align:top"
{{#if:{{{latest_appearance|}}}|
{{!}} '''Latest appearance'''
{{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}
{{!}} {{{latest_appearance}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{species_origin|}}}|{{!}}- style="background:#c5ced6; vertical-align: top"
{{#if:{{{latest_portrayal|}}}|
{{!}} '''Latest portrayal'''
{{!}} {{{latest_portrayal}}}
}}
|-
{{#if:{{{portrayed_by|}}}|
{{!}} '''Portrayed by'''
{{!}} {{{portrayed_by}}}
}}
|-
{{#if:{{{variant_of|}}}|
{{!}} '''Variant of'''
{{!}} {{{variant_of}}}
}}
|-
{{#if:{{{subject_origin|}}}|
{{!}} '''Subject origin'''
{{!}} '''Subject origin'''
{{!}} style="width:17em" {{!}} {{{species_origin}}}
{{!}} {{{subject_origin}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{parent_species|}}}|{{!}}- style="background:#c5ced6; vertical-align: top"
{{#if:{{{variants|}}}|
{{!}} '''Variant of'''
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{!}} style="width:17em" {{!}} {{{parent_species}}}
{{{!}} class="{{#if:{{{variants-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
|}}
! style="text-align:left" {{!}} Variants
|- style="vertical-align: top"
{{#if:{{{sub_species|}}}|
{{!}} colspan="2" style="padding:0" {{!}}
{{{!}} class="{{#ifeq:{{{expand}}}|expandable|mw-collapsible mw-collapsed|noexpandable}}" width="100%" style="background:ghostwhite; text-align:left" border="0" cellpadding="0" cellspacing="0"
! style="background:{{{secbg|#c5ced6}}}; padding:2px" {{!}} Variants
{{!}}-
{{!}}-
{{!}} style="padding:0 2px" {{!}} {{{sub_species|}}}
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{variants-col|{{#rmatch:{{{variants}}}|<br\b|2|1|caseless=1}}}}}">{{{variants}}}</div>
{{!}}}
{{!}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{derived_species|}}}|
{{#if:{{{derived_subjects|}}}|
{{!}} colspan="2" style="padding:0" {{!}}
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="{{#ifeq:{{{expand}}}|expandable|mw-collapsible mw-collapsed|noexpandable}}" width="100%" style="background:ghostwhite; text-align:left" border="0" cellpadding="0" cellspacing="0"
{{{!}} class="{{#if:{{{derived_subjects-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
! style="background:{{{secbg|#c5ced6}}}; padding:2px" {{!}} Variants
! style="text-align:left" {{!}} Derived subjects
{{!}}-
{{!}}-
{{!}} style="padding:0 2px" {{!}} {{{derived_species|}}}
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{derived_subjects-col|{{#rmatch:{{{derived_subjects}}}|<br\b|2|1|caseless=1}}}}}">{{{derived_subjects}}}</div>
{{!}}}
{{!}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{relatives|}}}|
{{#if:{{{relatives|}}}|
{{!}} colspan="2" style="padding:0" {{!}}
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="{{#ifeq:{{{expand}}}|expandable|mw-collapsible mw-collapsed|noexpandable}}" width="100%" style="background:ghostwhite; text-align:left" border="0" cellpadding="0" cellspacing="0"
{{{!}} class="{{#if:{{{relatives-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
! style="background:{{{secbg|#c5ced6}}}; padding:2px" {{!}} Relatives
! style="text-align:left" {{!}} Relatives
{{!}}-
{{!}}-
{{!}} style="padding:0 2px" {{!}} {{{relatives|}}}
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{relatives-col|{{#rmatch:{{{relatives}}}|<br\b|2|1|caseless=1}}}}}">{{{relatives}}}</div>
{{!}}}
{{!}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{related|}}}|
{{#if:{{{comparable|}}}|
{{!}} colspan="2" style="padding:0" {{!}}
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="{{#ifeq:{{{expand}}}|expandable|mw-collapsible mw-collapsed|noexpandable}}" width="100%" style="background:ghostwhite; text-align:left" border="0" cellpadding="0" cellspacing="0"
{{{!}} class="{{#if:{{{comparable-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
! style="background:{{{secbg|#c5ced6}}}; padding:2px" {{!}} Comparable
! style="text-align:left" {{!}} Comparable
{{!}}-
{{!}}-
{{!}} style="padding:0 2px" {{!}} {{{related|}}}
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{comparable-col|{{#rmatch:{{{comparable}}}|<br\b|2|1|caseless=1}}}}}">{{{comparable}}}</div>
{{!}}}
{{!}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{notable|}}}|
{{#if:{{{notable|}}}|
{{!}} colspan="2" style="padding:0" {{!}}
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="{{#ifeq:{{{expand}}}|expandable|mw-collapsible mw-collapsed|noexpandable}}" width="100%" style="background:ghostwhite; text-align:left" border="0" cellpadding="0" cellspacing="0"
{{{!}} class="{{#if:{{{notable-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
! style="background:{{{secbg|#c5ced6}}}; padding:2px" {{!}} Notable members
! style="text-align:left" {{!}} Notable members
{{!}}-
{{!}}-
{{!}} style="padding:0 2px" {{!}} {{{notable}}}
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{notable-col|{{#rmatch:{{{notable}}}|<br\b|2|1|caseless=1}}}}}">{{{notable}}}</div>
{{!}}}
{{!}}}
|}}
}}
|}<noinclude>{{br}}
|}<templatestyles src="Species infobox/styles.css"/><noinclude>{{br}}
==Usage==
==Usage==
{|border=1 style="border-collapse:collapse;width:70%;float:right;margin-left:1em;margin-bottom:4px" cellpadding=3
{|border=1 style="border-collapse:collapse;width:70%;float:right;margin:0 0 1em 1em" cellpadding=3
!colspan=2 style="background-color:#10274c;color:white"|Syntax
!colspan=2 style="background:#10274c;color:white"|Syntax
|-
|-
|&#124;title=
|&#124;title=
|By default, this is not necessary, as it will automatically use the article title. When this is not desirable (e.g., where there is a (Disambiguation) tag in the article title), it can be manually specified.
|By default, this is not necessary, as it will automatically use the article title sans identifier. For special cases, it can be manually specified.
|-
|-
|&#124;image=
|&#124;image=
|An image of the subject. Must use <code><nowiki>{{!}}</nowiki></code> for a <code>|</code> break symbol in image syntax.
|An image of the subject.
|-
|-
|&#124;first appearance=
|&#124;first_appearance=
|The first game, book, cartoon episode, comic issue, movie, etc. that the species has appeared in.
|The first game, book, cartoon episode, comic issue, movie, etc. that the species has appeared in.
|-
|-
|style=white-space:nowrap|&#124;latest appearance=
|style="white-space:nowrap"|&#124;latest_appearance=
|The latest game (etc.) that the species has appeared in. This does not include upcoming games: the game ''must have been released'' before the infobox can be updated.
|The latest game (etc) that the species has appeared in. This does not include upcoming games: the game ''must have been released'' before the infobox can be updated.
|-
|&#124;latest_portrayal=
|Who voiced (or otherwise portrayed) the species in the most recently released game (etc).
|-
|-
|&#124;parent_species=
|&#124;portrayed_by=
|'''(Shown as ''Variant of'')'''<br>An older or more basic entity that the subject is based on, i.e. [[Gloomba]] is a variant of [[Goomba]]
|If only one person has portrayed the species, use this instead of "latest_portrayal".
|-
|-
|&#124;derived_species=
|&#124;variant_of=
|'''(Shown as ''Variants'')'''<br>An entity based on the subject, i.e one of [[Goomba]]'s variants is [[Gloomba]]s
|An older or more basic entity that the subject is considered a subtype of, e.g. [[Paragoomba]] is a variant of [[Goomba]].
|-
|-
|&#124;related=
|&#124;subject_origin=
|'''(Shown as ''Comparable'')'''<br>Similar entities that are not actually based off one another, such as [[Tub-O-Troopa]]s and [[Big Koopa Paratroopa]]s
|The species (including real-world species) that the subject is based on, if applicable.
|-
|&#124;variants=
|An entity considered a subtype of the subject, e.g. one of [[Goomba]]'s variants is [[Paragoomba]]s.
|-
|&#124;derived_subjects=
|Any subjects that are based on a pre-existing species, including real-world species, e.g. [[Bumblebee]] is a [[Bee]].
|-
|-
|&#124;relatives=
|&#124;relatives=
|An entity with a variant-type relationship with the subject in which it's not clear which is the variant of which.
|An entity with a variant-type relationship with the subject in which it's not clear who is the variant of whom (if either), such as [[Spoing]]s and [[Sprangler]]s.
|-
|&#124;comparable=
|Similar entities that are not necessarily based on one another, such as [[Koopa Troopa]]s and [[Wild Wendell]]s.
|-
|-
|&#124;notable=
|&#124;notable=
|Notable members of a species, like how [[Magikoopa]]s would have [[Kamek]].
|Notable members of a species, like how [[Toad (species)|Toad]]s would have [[Toadette]].
|-
|-
|&#124;expand=
|&#124;collapsed=
|Collapses the "derived species", "related species" and "notable" lists when they are long. It can be enabled by writing "expandable" (it is "noexpandable" by default).
|Set to "true" to collapse the "variants", "relatives", "comparable", and "notable" lists when they are long.
|-
|-
!colspan=2 style="background-color:#10274c;color:white"|Deprecated syntax
!colspan=2 style="background-color:#10274c;color:white"|Deprecated syntax
Line 112: Line 134:
|&#124;affiliation=
|&#124;affiliation=
|<b>(This parameter is no longer used in wiki articles and stays on the template only due to its usage on an entry of [[MarioWiki:BJAODN]].)</b> Important characters, groups or places associated with the character in question.
|<b>(This parameter is no longer used in wiki articles and stays on the template only due to its usage on an entry of [[MarioWiki:BJAODN]].)</b> Important characters, groups or places associated with the character in question.
|-
|}
|}
<pre>
<pre>
{{species-infobox
{{species infobox
|title=
|title=
|image=
|image=
|first_appearance=
|first_appearance=
|latest_appearance=
|latest_appearance=
|parent_species=
|latest_portrayal=
|derived_species=
|portrayed_by=
|variant_of=
|subject_origin=
|variants=
|derived_subjects=
|relatives=
|relatives=
|related=
|comparable=
|notable=
|notable=
|expand=
|collapsed=
}}
}}
</pre>
</pre>
[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 13:07, May 4, 2024

Species infobox

Usage

Syntax
|title= By default, this is not necessary, as it will automatically use the article title sans identifier. For special cases, it can be manually specified.
|image= An image of the subject.
|first_appearance= The first game, book, cartoon episode, comic issue, movie, etc. that the species has appeared in.
|latest_appearance= The latest game (etc) that the species has appeared in. This does not include upcoming games: the game must have been released before the infobox can be updated.
|latest_portrayal= Who voiced (or otherwise portrayed) the species in the most recently released game (etc).
|portrayed_by= If only one person has portrayed the species, use this instead of "latest_portrayal".
|variant_of= An older or more basic entity that the subject is considered a subtype of, e.g. Paragoomba is a variant of Goomba.
|subject_origin= The species (including real-world species) that the subject is based on, if applicable.
|variants= An entity considered a subtype of the subject, e.g. one of Goomba's variants is Paragoombas.
|derived_subjects= Any subjects that are based on a pre-existing species, including real-world species, e.g. Bumblebee is a Bee.
|relatives= An entity with a variant-type relationship with the subject in which it's not clear who is the variant of whom (if either), such as Spoings and Spranglers.
|comparable= Similar entities that are not necessarily based on one another, such as Koopa Troopas and Wild Wendells.
|notable= Notable members of a species, like how Toads would have Toadette.
|collapsed= Set to "true" to collapse the "variants", "relatives", "comparable", and "notable" lists when they are long.
Deprecated syntax
|affiliation= (This parameter is no longer used in wiki articles and stays on the template only due to its usage on an entry of MarioWiki:BJAODN.) Important characters, groups or places associated with the character in question.
{{species infobox
|title=
|image=
|first_appearance=
|latest_appearance=
|latest_portrayal=
|portrayed_by=
|variant_of=
|subject_origin=
|variants=
|derived_subjects=
|relatives=
|comparable=
|notable=
|collapsed=
}}