Template:InfoboxCompany: Difference between revisions

added short description field for browser extension
Tags: Reverted 2017 source edit
Update Type field name to be more descriptive of what it represents
 
(One intermediate revision by one other user 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>
                <th>{{nowrap|Short description}}</th>
                <td>{{{short_description}}}</td>
             </tr>
             </tr>


Line 20: Line 15:


             <tr>
             <tr>
                 <th>{{nowrap|Type}}</th>
                 <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.
'''Short description:''' This appears as a browser alert when someone visits this company's site. Limit to 140 characters. Be concise and clear.
{{InfoboxCompany
{{InfoboxCompany
| Company = Company Name
| Company = Company Name
| short_description = Brief alert text that shows in the browser extension when users visit the site
| Type = Public
| Type = Public
| Founded = 2000
| Founded = 2000
Line 56: Line 47:
{{InfoboxCompany
{{InfoboxCompany
| Company =
| Company =
| short_description =
| Type =  
| Type =  
| Founded =
| Founded =
Line 106: Line 96:
"required": true
"required": true
},
},
"short_description": {
"Type": {
"type": "string",
"description": "Type of company ownership",
"description": "Appears in the browser extension as a warning or summary when someone visits this company's site. Limit to 140 characters.",
"example": "Public, Private, Government, Subsidiary",
"required": true
"required": true
}
}
},
},
"description": "This is a simple information box to use in company articles. Includes core details and short summary for external use.",
"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",
"short_description",
"Type",
"Type",
"Founded",
"Founded",