Difference between revisions of "Template:Species-infobox"

From Marioverse Wiki
Jump to navigationJump to search
Line 1: Line 1:
{{Infobox
<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"
|name        = Species-infobox
| align="center" colspan="2" bgcolor="#10274c" style="font-size:145%;" | '''<span style="color:white;">{{{title|{{PAGENAME}}}}}</span>'''
|bodystyle    =  
|-
 
|align="center" colspan="2" | {{{image|}}}
|titlestyle  =  
|- style="vertical-align: top"
|abovestyle  = background:#cfc;
{{#if:{{{affiliation|}}}|{{!}}- style="vertical-align: top;"
|subheaderstyle =
{{!}} '''Affiliation(s)'''
|title        = Test Infobox
{{!}} {{{affiliation}}}
|above        = Above text
|}}
|subheader    = Subheader above image
|- style="vertical-align: top"
|subheader2  = Second subheader
{{#if:{{{first_appearance|}}}|{{!}}- style="background:#c5ced6; vertical-align:top"
 
{{!}} '''First appearance'''
|imagestyle  =  
{{!}} {{{first_appearance}}}
|captionstyle =  
|}}
| image      = [[File:Example-serious.jpg|200px|alt=Example alt text]]
|- style="vertical-align: top"
|caption      = Caption displayed below Example-serious.jpg
{{#if:{{{latest_appearance|}}}|{{!}}- style="vertical-align:top"
 
{{!}} '''Latest appearance'''
|headerstyle  = background:#ccf;
{{!}} {{{latest_appearance}}}
|labelstyle  = background:#ddf;
|}}
|datastyle    =  
|- style="vertical-align: top"
 
{{#if:{{{species_origin|}}}|{{!}}- style="background:#c5ced6; vertical-align: top;"
|header1 = Header defined alone
{{!}} '''Subject origin'''
| label1 =  
{{!}} style="width:17em" {{!}} {{{species_origin}}}
| data1 =  
|}}
|header2 =  
|- style="vertical-align: top"
| label2 = Label defined alone does not display (needs data, or is suppressed)
{{#if:{{{parent_species|}}}|{{!}}- style="background:#c5ced6; vertical-align: top;"
| data2 =  
{{!}} '''Variant of'''
|header3 =
{{!}} style="width:17em" {{!}} {{{parent_species}}}
| label3 =  
|}}
| data3 = Data defined alone
|- style="vertical-align: top"
|header4 = All three defined (header, label, data, all with same number)
{{#if:{{{sub_species|}}}|
| label4 = does not display (same number as a header)
{{!}} colspan="2" style="padding:0" {{!}}
| data4 = does not display (same number as a header)
{{{!}} class="{{#ifeq:{{{expand}}}|expandable|mw-collapsible mw-collapsed|noexpandable}}" width="100%" style="background:ghostwhite; text-align:left;" border="0" cellpadding="0" cellspacing="0"
|header5 =
! style="background:{{{secbg|#c5ced6}}}; padding:2px;" {{!}} Variants
| label5 = Label and data defined (label)
{{!}}-
| data5 = Label and data defined (data)
{{!}} style="padding:0 2px;" {{!}} {{{sub_species|}}}
 
{{!}}}
|belowstyle = background:#ddf;
|}}
|below      = Below text
|- style="vertical-align: top"
}}<noinclude>
{{#if:{{{derived_species|}}}|
Test
{{!}} colspan="2" style="padding:0" {{!}}
</noinclude>
{{{!}} 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:52, 16 December 2020

{{species-infobox
|title=
|image=
|first_appearance=
|latest_appearance=
|parent_species=
|derived_species=
|related=
|relatives=
|notable=
|expand=
}}
  • image – an image. Must use {{!}} for a | break symbol in image syntax.
  • title – default pagename, just in case can be changed
  • first_appearance
  • latest_appearance
  • parent_species (shown as Variant of) – 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) – an entity based on the subject, i.e one of Goomba's variants is Gloombas
  • related (shown as Comparable) – similar entities that are not actually based off one another, such as Tub-O-Troopas and Big Koopa Paratroopas
  • relatives – an entity with a variant-type relationship with the subject in which it's not clear which is the variant of which.
  • notable – notable members of a species, like how Magikoopas would have Kamek.
  • affiliation – i.e., Koopa Troop, X-Naut. 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.
  • expand – for collapsing the "derives species", "related species" and "notable" lists when they are long. Activate this by writing "expandable" (it is "noexpandable" by default).