Template:Species infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(I think this order will work better, and the subject parameters have potential for a wider application to trim down the "relatives" sections to their own original purpose. It's still the same idea, though.)
m (Text replacement - "{{#if:{{#pos:{{{([^}\n]+)}}}\|<br>}}\|2\|1}}" to "{{#rmatch:{{{$1}}}|<br\b|2|1|caseless=1}}")
(8 intermediate revisions by 4 users not shown)
Line 39: Line 39:
}}
}}
|-
|-
{{#if:{{{derived_subjects|}}}|
{{#if:{{{variants|}}}|
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="{{#if:{{{collapsed|}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
{{{!}} class="{{#if:{{{variants-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
! style="text-align:left" {{!}} Derived subjects
! style="text-align:left" {{!}} Variants
{{!}}-
{{!}}-
{{!}} style="padding:0 2px !important" {{!}} {{{derived_subjects}}}
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{variants-col|{{#rmatch:{{{variants}}}|<br\b|2|1|caseless=1}}}}}">{{{variants}}}</div>
{{!}}}
{{!}}}
}}
}}
|-
|-
{{#if:{{{variants|}}}|
{{#if:{{{derived_subjects|}}}|
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="{{#if:{{{collapsed|}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
{{{!}} class="{{#if:{{{derived_subjects-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
! style="text-align:left" {{!}} Variants
! style="text-align:left" {{!}} Derived subjects
{{!}}-
{{!}}-
{{!}} style="padding:0 2px !important" {{!}} {{{variants}}}
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{derived_subjects-col|{{#rmatch:{{{derived_subjects}}}|<br\b|2|1|caseless=1}}}}}">{{{derived_subjects}}}</div>
{{!}}}
{{!}}}
}}
}}
Line 59: Line 59:
{{#if:{{{relatives|}}}|
{{#if:{{{relatives|}}}|
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="{{#if:{{{collapsed|}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
{{{!}} class="{{#if:{{{relatives-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
! style="text-align:left" {{!}} Relatives
! style="text-align:left" {{!}} Relatives
{{!}}-
{{!}}-
{{!}} style="padding:0 2px !important" {{!}} {{{relatives}}}
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{relatives-col|{{#rmatch:{{{relatives}}}|<br\b|2|1|caseless=1}}}}}">{{{relatives}}}</div>
{{!}}}
{{!}}}
}}
}}
Line 68: Line 68:
{{#if:{{{comparable|}}}|
{{#if:{{{comparable|}}}|
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="{{#if:{{{collapsed|}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
{{{!}} class="{{#if:{{{comparable-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
! style="text-align:left" {{!}} Comparable
! style="text-align:left" {{!}} Comparable
{{!}}-
{{!}}-
{{!}} style="padding:0 2px !important" {{!}} {{{comparable}}}
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{comparable-col|{{#rmatch:{{{comparable}}}|<br\b|2|1|caseless=1}}}}}">{{{comparable}}}</div>
{{!}}}
{{!}}}
}}
}}
Line 77: Line 77:
{{#if:{{{notable|}}}|
{{#if:{{{notable|}}}|
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="{{#if:{{{collapsed|}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
{{{!}} class="{{#if:{{{notable-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
! style="text-align:left" {{!}} Notable members
! style="text-align:left" {{!}} Notable members
{{!}}-
{{!}}-
{{!}} style="padding:0 2px !important" {{!}} {{{notable}}}
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{notable-col|{{#rmatch:{{{notable}}}|<br\b|2|1|caseless=1}}}}}">{{{notable}}}</div>
{{!}}}
{{!}}}
}}
}}
Line 107: Line 107:
|-
|-
|&#124;variant_of=
|&#124;variant_of=
|An older or more basic entity that the subject is considered a subtype of, e.g. [[Gloomba]] is a variant of [[Goomba]].
|An older or more basic entity that the subject is considered a subtype of, e.g. [[Paragoomba]] is a variant of [[Goomba]].
|-
|-
|&#124;subject_origin=
|&#124;subject_origin=
Line 113: Line 113:
|-
|-
|&#124;variants=
|&#124;variants=
|An entity considered a subtype of the subject, e.g. one of [[Goomba]]'s variants is [[Gloomba]]s.
|An entity considered a subtype of the subject, e.g. one of [[Goomba]]'s variants is [[Paragoomba]]s.
|-
|-
|&#124;derived_subjects=
|&#124;derived_subjects=
Line 119: Line 119:
|-
|-
|&#124;relatives=
|&#124;relatives=
|An entity with a variant-type relationship with the subject in which it's not clear who is the variant of whom (if ither), such as [[Spoing]]s and [[Sprangler]]s.
|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=
|&#124;comparable=
|Similar entities that are not necessarily based on one another, such as [[Tub-O-Troopa]]s and [[Big Koopa Paratroopa]]s.
|Similar entities that are not necessarily based on one another, such as [[Koopa Troopa]]s and [[Wild Wendell]]s.
|-
|-
|&#124;notable=
|&#124;notable=
Line 134: 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.
|-
|}
|}



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=
}}