Difference between revisions of "Template:Species-infobox"

From Marioverse Wiki
Jump to navigationJump to search
(Created page with "<includeonly>{| class="infobox" cellpadding=2 cellspacing=2 align=right width=280px style="font-family: verdana, sans-serif; padding: 4px; margin: 0 0 1em 1em; font-size: 10px...")
 
Line 1: Line 1:
<includeonly>{| class="infobox" cellpadding=2 cellspacing=2 align=right width=280px style="font-family: verdana, sans-serif; padding: 4px; margin: 0 0 1em 1em; font-size: 10px; background-color: ghostwhite; border:1px solid #8a8; color:black"
{{ infobox
| align="center" colspan="2" bgcolor="#10274c" style="font-size:145%;" | '''<span style="color:white;">{{{title|{{PAGENAME}}}}}</span>'''
| abovestyle  =
|-
| above      =
|align="center" colspan="2" | {{{image|}}}
| image       =
|- style="vertical-align: top"
| caption    =
{{#if:{{{affiliation|}}}|{{!}}- style="vertical-align: top;"
| headerstyle =
{{!}} '''Affiliation(s)'''
| header1    =
{{!}} {{{affiliation}}}
| label1      =
|}}
| data1      =
|- style="vertical-align: top"
| header2    =
{{#if:{{{first_appearance|}}}|{{!}}- style="background:#c5ced6; vertical-align:top"
| label2      =
{{!}} '''First appearance'''
| data2      =
{{!}} {{{first_appearance}}}
| header3    =
|}}
| label3      =
|- style="vertical-align: top"
| data3      =
{{#if:{{{latest_appearance|}}}|{{!}}- style="vertical-align:top"
| header4    =
{{!}} '''Latest appearance'''
| label4      =
{{!}} {{{latest_appearance}}}
| data4      =
|}}
| header5    =
|- style="vertical-align: top"
| label5      =
{{#if:{{{species_origin|}}}|{{!}}- style="background:#c5ced6; vertical-align: top;"
| data5      =
{{!}} '''Subject origin'''
| header6    =
{{!}} style="width:17em" {{!}} {{{species_origin}}}
| label6      =
|}}
| data6      =
|- style="vertical-align: top"
| header7    =
{{#if:{{{parent_species|}}}|{{!}}- style="background:#c5ced6; vertical-align: top;"
| label7      =
{{!}} '''Variant of'''
| data7      =
{{!}} style="width:17em" {{!}} {{{parent_species}}}
| header8    =
|}}
| label8      =
|- style="vertical-align: top"
| data8      =
{{#if:{{{sub_species|}}}|
| header9    =
{{!}} colspan="2" style="padding:0" {{!}}
| label9      =
{{{!}} class="{{#ifeq:{{{expand}}}|expandable|mw-collapsible mw-collapsed|noexpandable}}" width="100%" style="background:ghostwhite; text-align:left;" border="0" cellpadding="0" cellspacing="0"
| data9      =
! style="background:{{{secbg|#c5ced6}}}; padding:2px;" {{!}} Variants
| header10    =
{{!}}-
| label10    =
{{!}} style="padding:0 2px;" {{!}} {{{sub_species|}}}
| data10      =
{{!}}}
}}<noinclude>
|}}
Test
|- style="vertical-align: top"
<!-- Please add categories and interwiki links to /doc subpage, not here! -->
{{#if:{{{derived_species|}}}|
</noinclude>
{{!}} 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;" {{!}} {{{derived_species|}}}
{{!}}}
|}}
|- style="vertical-align: top"
{{#if:{{{related|}}}|
{{!}} 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;" {{!}} Comparable
{{!}}-
{{!}} style="padding:0 2px;" {{!}} {{{related|}}}
{{!}}}
|}}
|- style="vertical-align: top"
{{#if:{{{relatives|}}}|
{{!}} 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;" {{!}} Relatives
{{!}}-
{{!}} style="padding:0 2px;" {{!}} {{{relatives|}}}
{{!}}}
|}}
|- style="vertical-align: top"
{{#if:{{{notable|}}}|
{{!}} 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;" {{!}} Notable members
{{!}}-
{{!}} style="padding:0 2px;" {{!}} {{{notable}}}
{{!}}}
|}}
|}</includeonly><noinclude><div style="float:right"><pre>{{species-infobox
|title=
|image=
|first_appearance=
|latest_appearance=
|parent_species=
|derived_species=
|related=
|relatives=
|notable=
|expand=
}}</pre></div>
*image &ndash; an image. Must use <code><nowiki>{{!}}</nowiki></code> for a <code>|</code> break symbol in image syntax.
*title &ndash; default pagename, just in case can be changed
*first_appearance
*latest_appearance
*parent_species (shown as ''Variant of'') &ndash; an older or more basic entity that the subject is based on, i.e. [[Gloomba]] is a variant of [[Goomba]]
*derived_species (shown as ''Variants'') &ndash; an entity based on the subject, i.e one of [[Goomba]]'s variants is [[Gloomba]]s
*related (shown as ''Comparable'') &ndash; similar entities that are not actually based off one another, such as [[Tub-O-Troopa]]s and [[Big Koopa Paratroopa]]s
*relatives &ndash; an entity with a variant-type relationship with the subject in which it's not clear which is the variant of which.
*notable &ndash; notable members of a species, like how [[Magikoopa]]s would have [[Kamek]].
*affiliation &ndash; i.e., Koopa Troop, X-Naut. <b>Note that 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>
*expand &ndash; for collapsing the "derives species", "related species" and "notable" lists when they are long. Activate this by writing "expandable" (it is "noexpandable" by default).
{{br}} [[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Revision as of 03:15, 16 December 2020