Template:InfoboxCompany: Difference between revisions
Appearance
No edit summary Tags: Undo Reverted |
m Reverted edit by ! (talk) to last revision by Jparks2112 Tag: Rollback |
||
Line 1: | Line 1: | ||
<includeonly><div class="infobox"> | |||
<div style="display:flex;gap:8px;flex-direction:column;"> | |||
<div class="infobox-title">{{{Company|{{PAGENAME}}}}}</div> | |||
<div class="infobox-image">[[File:{{{Logo}}}|200px]]</div> | |||
<table class="infobox-table"> | |||
<tr> | |||
<th colspan=2 class="infobox-table-caption" >Basic information</th> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|Founded}}</th> | |||
<td>{{{Founded}}}</td> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|Type}}</th> | |||
<td>{{{Type}}}</td> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|Industry}}</th> | |||
<td>{{{Industry}}}</td> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|Official website}}</th> | |||
<td>{{{Official Website}}}</td> | |||
</tr> | |||
</table> | |||
</div> | |||
</div> | |||
</includeonly><noinclude> | |||
== Usage == | |||
To have this infobox appear to the right of the page, add this to the page with the text you wish to appear on the box when using the source editor. | |||
{{InfoboxCompany | |||
| Company = Company Name | |||
| Type = Public | |||
| Founded = 2000 | |||
| Industry = Industrial | |||
| Official Website = somewebsite.somewhere | |||
| Logo = QuestionMark.svg | |||
}} | |||
<pre> | |||
<nowiki> | |||
{{InfoboxCompany | |||
| Company = | |||
| Type = | |||
| Founded = | |||
| Industry = | |||
| Official Website = | |||
| Logo = | |||
}} | |||
</nowiki> | |||
</pre> | |||
[[Category:Styling templates]] | |||
{{Clear}} | |||
== Template Data == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"Name": { | |||
"type": "string", | |||
"description": "Name of Company", | |||
"required": true | |||
}, | |||
"Type" : { | |||
"type": "string", | |||
"description": "Ownership status of company", | |||
"required": true | |||
}, | |||
"Founded": { | |||
"type": "string", | |||
"description": "What year was the company founded", | |||
"required": true | |||
}, | |||
"Industry": { | |||
"type": "string", | |||
"description": "conglomerate, electronics manufacturer", | |||
"example": "Electronics, EV's, Esc", | |||
"required": true | |||
}, | |||
"Official Website": { | |||
"type": "string", | |||
"description": "Website of the company.", | |||
"required": true | |||
}, | |||
"Logo": { | |||
"description": "The logo associated with the company.", | |||
"example": "filename.[jpg|png|svg]", | |||
"type": "wiki-file-name", | |||
"autovalue": "QuestionMark.svg", | |||
"default": "QuestionMark.svg", | |||
"required": true | |||
}, | |||
"Type": { | |||
"description": "Type of company ownership", | |||
"example": "Public, Private, Government, Subsidiary", | |||
"required": true | |||
} | |||
}, | |||
"description": "This is a a simple information box to use in product line articles.\nParameters are the information displayed on the infobox.", | |||
"format": "block", | |||
"paramOrder": [ | |||
"Name", | |||
"Type", | |||
"Founded", | |||
"Industry", | |||
"Official Website", | |||
"Logo" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 06:46, 28 February 2025
Usage
To have this infobox appear to the right of the page, add this to the page with the text you wish to appear on the box when using the source editor.
{{InfoboxCompany | Company = | Type = | Founded = | Industry = | Official Website = | Logo = }}
Template Data
This is a a simple information box to use in product line articles. Parameters are the information displayed on the infobox.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | Name | Name of Company | String | required |
Type | Type | Type of company ownership
| Unknown | required |
Founded | Founded | What year was the company founded | String | required |
Industry | Industry | conglomerate, electronics manufacturer
| String | required |
Official Website | Official Website | Website of the company. | String | required |
Logo | Logo | The logo associated with the company.
| File | required |