Template:Company infobox: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
7feetunder (talk | contribs) mNo edit summary |
mNo edit summary |
||
(41 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{|class="infobox" | {| class="infobox" style="width:250px;background:#fcfffc;border-color:#88c" | ||
! colspan="2" style="font-size:125%;background:#ccf" | {{{title|{{PAGETITLE}}}}} | |||
|- | |- | ||
|colspan=2|{{#if:{{{logo|}}}|[[File:{{{logo | | 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''' | {{#if:{{{founded|}}}| | ||
{{!}}{{{founded}}}}}{{#if:{{{defunct|}}}| | {{!}} '''Founded''' | ||
{{!}} {{date|{{{founded}}}}} | |||
{{!}}'''Defunct''' | }} | ||
{{!}}{{{defunct}}}}}{{#if:{{{ | |- | ||
{{#if:{{{defunct|}}}| | |||
{{!}}'''First ''Mario'' {{{product|game}}}''' | {{!}} '''Defunct''' | ||
{{!}}{{{ | {{!}} {{date|{{{defunct}}}}} | ||
{{!}} | }} | ||
{{ | |- | ||
{{!}}{{{ | {{#if:{{{first_release|}}}| | ||
{{!}} | {{!}} '''First ''Super Mario'' {{{product|game}}}''' | ||
{{ | {{!}} {{{first_release}}} | ||
{{!}}{{{president}}}}} | }} | ||
|}<noinclude> | |- | ||
{{#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. | 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 | {{company infobox | ||
|title= | |||
|logo= | |logo= | ||
|caption= | |||
|width= | |width= | ||
|bg= | |||
|founded= | |founded= | ||
|defunct= | |defunct= | ||
| | |first_release= | ||
| | |latest_release= | ||
|president= | |president= | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Infobox templates | |||
[[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= }}