Template:InfoboxCompany: Difference between revisions
added short description field for browser extension Tags: Reverted 2017 source edit |
Fixed an issue where using this in visualeditor, you get the description showing as the example. I made the description an actual description. |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 7: | Line 7: | ||
<tr> | <tr> | ||
<th colspan=2 class="infobox-table-caption" >Basic information</th> | <th colspan=2 class="infobox-table-caption" >Basic information</th> | ||
</tr> | </tr> | ||
| Line 20: | Line 15: | ||
<tr> | <tr> | ||
<th>{{nowrap| | <th>{{nowrap|Legal structure}}</th> | ||
<td>{{{Type}}}</td> | <td>{{{Type}}}</td> | ||
</tr> | </tr> | ||
| Line 40: | Line 35: | ||
== 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. | ||
{{InfoboxCompany | {{InfoboxCompany | ||
| Company = Company Name | | Company = Company Name | ||
| Type = Public | | Type = Public | ||
| Founded = 2000 | | Founded = 2000 | ||
| Line 56: | Line 47: | ||
{{InfoboxCompany | {{InfoboxCompany | ||
| Company = | | Company = | ||
| Type = | | Type = | ||
| Founded = | | Founded = | ||
| Line 77: | Line 67: | ||
"required": true | "required": true | ||
}, | }, | ||
"Type": { | |||
" | "description": "Type of company ownership", | ||
" | "example": "Public, Private, Government, Subsidiary", | ||
"required": true | "required": true | ||
}, | |||
"Founded": { | "Founded": { | ||
"type": "string", | "type": "string", | ||
| Line 89: | Line 79: | ||
"Industry": { | "Industry": { | ||
"type": "string", | "type": "string", | ||
"description": " | "description": "The industry (or industries) the company is in", | ||
"example": "Electronics, EV's, Esc", | "example": "Electronics, EV's, Esc", | ||
"required": true | "required": true | ||
| Line 104: | Line 94: | ||
"autovalue": "QuestionMark.svg", | "autovalue": "QuestionMark.svg", | ||
"default": "QuestionMark.svg", | "default": "QuestionMark.svg", | ||
"required": true | "required": true | ||
} | } | ||
}, | }, | ||
"description": "This is a simple information box to use in | "description": "This is a a simple information box to use in product line articles.\nParameters are the information displayed on the infobox.", | ||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
"Name", | "Name", | ||
"Type", | "Type", | ||
"Founded", | "Founded", | ||