Template:CompanyInfobox: Difference between revisions
Schang1146 (talk | contribs) Undo revision 16126 by Schang1146 (talk) Tag: Undo |
Schang1146 (talk | contribs) Update fields and template |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="infobox"> | <div class="infobox"> | ||
<div style="display: flex; gap: 8px; flex-direction: column"> | |||
<div class="infobox-title">{{PAGENAME}}</div> | |||
<div class="infobox-image"> | |||
[[File:{{{Logo|QuestionMark.svg}}}|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|Legal Structure}}</th> | |||
<td>{{{Type|}}}</td> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|Industry}}</th> | |||
<td>{{{Industry|}}}</td> | |||
</tr> | |||
<tr> | |||
<th>{{nowrap|Official website}}</th> | |||
<td>{{{Website|}}}</td> | |||
</tr> | |||
</table> | |||
</div> | |||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
== Usage == | == 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. | 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. | ||
{{CompanyInfobox | {{CompanyInfobox | ||
| Founded = 2000 | | Founded = 2000 | ||
| Industry = Industrial | | Industry = Industrial | ||
| Logo = QuestionMark.svg | |||
| Type = Public | |||
| Website = https://example.com/ | | Website = https://example.com/ | ||
}} | }} | ||
{{#template_params: | {{#template_params: | ||
| Founded (label=Founded) | | Founded (label=Founded) | ||
| Industry (label=Industry) | | Industry (label=Industry) | ||
| Logo (label=Logo) | |||
| Type (label=Type) | |||
| Website (label=Website) | | Website (label=Website) | ||
}} | }} | ||
Line 55: | Line 59: | ||
{ | { | ||
"params": { | "params": { | ||
"Founded": { | "Founded": { | ||
"type": "date", | "type": "date", | ||
Line 72: | Line 70: | ||
"required": true, | "required": true, | ||
"example": "Electronics,Servers,Streaming Services" | "example": "Electronics,Servers,Streaming Services" | ||
}, | }, | ||
"Logo": { | "Logo": { | ||
Line 85: | Line 77: | ||
"example": "filename.[jpg|png|svg]", | "example": "filename.[jpg|png|svg]", | ||
"default": "QuestionMark.svg" | "default": "QuestionMark.svg" | ||
}, | |||
"Type" : { | |||
"type": "string", | |||
"description": "Type of company ownership", | |||
"required": true, | |||
"example": "Public,Non-Profit" | |||
}, | |||
"Website": { | |||
"type": "url", | |||
"description": "Website of the company", | |||
"required": false, | |||
"example": "https://www.apple.com/" | |||
} | } | ||
}, | }, | ||
Line 90: | Line 94: | ||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
"Founded", | "Founded", | ||
"Industry", | "Industry", | ||
" | "Logo", | ||
" | "Type", | ||
"Website" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |