Template:Company infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(41 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{|class="infobox" cellpadding=3 cellspacing=2 width=250px style="font-family:arial,sans-serif;padding:4px;margin:{{#switch:{{{align|}}}|left=0 1em 1em 0|center=1em 1em 1em 1em|0 0 1em 1em}};font-size:12px;background-color:#fcfffc;border:1px solid #88c;float:{{{align|right}}}"
{| class="infobox" style="width:250px;background:#fcfffc;border-color:#88c"
|align=center style="background-color:#ccf;border:1px solid #88c;font-size:medium" colspan=2|'''{{{name|{{PAGENAME}}}}}'''
! colspan="2" style="font-size:125%;background:#ccf" | {{{title|{{PAGETITLE}}}}}
|-  
|-  
|colspan=2|{{#if:{{{logo|}}}|[[File:{{{logo|}}}|{{{width|250}}}px|center]]}}
| colspan="2" style="text-align:center;{{#if:{{{bg|}}}|background:{{{bg}}} !important;padding:1em 0}}" | {{#if:{{{logo|}}}|{{#ifexist:File:{{{logo}}}|[[File:{{{logo}}}|{{{width|250}}}px]]|{{{logo}}}}}}}{{#if:{{{caption|}}}|<br>{{{caption}}}}}
{{#if:{{{founded|}}}|{{!}}-
|-
{{!}}'''Founded'''
{{#if:{{{founded|}}}|
{{!}}{{{founded}}}}}{{#if:{{{defunct|}}}|&shy;
{{!}} '''Founded'''
{{!}}-
{{!}} {{date|{{{founded}}}}}
{{!}}'''Defunct'''
}}
{{!}}{{{defunct}}}}}{{#if:{{{firstgame|}}}|&shy;
|-
{{!}}-
{{#if:{{{defunct|}}}|
{{!}}'''First ''Mario'' {{{product|game}}}'''
{{!}} '''Defunct'''
{{!}}{{{firstgame}}}}}{{#if:{{{lastgame|}}}|&shy;
{{!}} {{date|{{{defunct}}}}}
{{!}}-
}}
{{!}}'''Latest ''Mario'' {{{product|game}}}'''
|-
{{!}}{{{lastgame}}}}}{{#if:{{{president|}}}|&shy;
{{#if:{{{first_release|}}}|
{{!}}-
{{!}} '''First ''Super Mario'' {{{product|game}}}'''
{{!}}'''Current president'''
{{!}} {{{first_release}}}
{{!}}{{{president}}}}}
}}
|}<noinclude><br clear=all>
|-
{{#if:{{{latest_release|}}}|
{{!}} '''{{#if:{{{defunct|}}}|Final|Latest}} ''Super Mario'' {{{product|game}}}'''
{{!}} {{{latest_release}}}
}}
|-
{{#if:{{{president|}}}|
{{!}} '''{{#if:{{{defunct|}}}|Final|Current}} president'''
{{!}} {{{president}}}
}}
|}<noinclude>{{br}}
==Usage instructions==
==Usage instructions==
Provides info about a [[:Category:Companies|company]], including year of establishment, first and last Mario game created, and current president. Variable <tt>logo</tt> is equivalent to an <tt>image</tt> variable, which means there is also a width variable, default 220px. For <tt>logo</tt>, you only need the file name without the Image namespace attachment, i.e. <tt>logo=<nowiki>[[File:Nintendo.png]]</nowiki></tt> becomes <tt>logo=Nintendo.png</tt>.
Provides info about a [[:Category:Companies|company]], including year of establishment, first and last ''Super Mario'' game created, and current president. Parameter <tt>logo</tt> is equivalent to an <tt>image</tt> variable, which means there is also a width variable, default 220px. For <tt>logo</tt>, you only need the file name without the Image namespace attachment, i.e. <tt>logo=<nowiki>[[File:Nintendo.png]]</nowiki></tt> becomes <tt>logo=Nintendo.png</tt>. For logos with transparent backgrounds and white text, <tt>bg</tt> with a specified color can be used.


All rows will disappear if respective variables are not defined.
All rows will disappear if respective variables are not defined.
<pre>
<pre>
{{company-infobox
{{company infobox
|title=
|logo=
|logo=
|caption=
|width=
|width=
|bg=
|founded=
|founded=
|defunct=
|defunct=
|firstgame=
|first_release=
|lastgame=
|latest_release=
|president=
|president=
}}
}}
</pre>
</pre>
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Infobox templates]]</noinclude>

Latest revision as of 10:22, March 31, 2025

Company infobox

Usage instructions

Provides info about a company, including year of establishment, first and last Super Mario game created, and current president. Parameter logo is equivalent to an image variable, which means there is also a width variable, default 220px. For logo, you only need the file name without the Image namespace attachment, i.e. logo=[[File:Nintendo.png]] becomes logo=Nintendo.png. For logos with transparent backgrounds and white text, bg with a specified color can be used.

All rows will disappear if respective variables are not defined.

{{company infobox
|title=
|logo=
|caption=
|width=
|bg=
|founded=
|defunct=
|first_release=
|latest_release=
|president=
}}