Template:InfoboxCompany: Difference between revisions

mNo edit summary
Tag: Reverted
added short description field for browser extension
Tag: 2017 source edit
 
(15 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<includeonly><div class="infobox">
<includeonly><div class="infobox">
<div style="display:flex;gap:8px;flex-direction:column;">
<div style="display:flex;gap:8px;flex-direction:column;">
     <div class="infobox-title">{{{Title|{{PAGENAME}}}}}</div>
     <div class="infobox-title">{{{Company|{{PAGENAME}}}}}</div>
     <div class="infobox-image">[[File:{{{Logo}}}|200px]]</div>
     <div class="infobox-image">[[File:{{{Logo}}}|200px]]</div>
     <table class="infobox-table">
     <table class="infobox-table">


             <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 25: Line 30:
   
   
             <tr>
             <tr>
                 <th>{{nowrap|Official Website}}</th>
                 <th>{{nowrap|Official website}}</th>
                 <td>{{{Official Website}}}</td>
                 <td>{{{Official Website}}}</td>
             </tr>
             </tr>
Line 35: Line 40:
== 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
| Industry = Industrial
| Industry = Industrial
| Official Website = somewebsite.somewhere
| Official Website = https://example.com/
| Logo= QuestionMark.svg
| Logo = QuestionMark.svg
}}
}}
<pre>
<pre>
Line 47: Line 56:
{{InfoboxCompany
{{InfoboxCompany
| Company =
| Company =
| short_description =
| Type =  
| Type =  
| Founded =
| Founded =
| Industry =
| Industry =
| Official Website =
| Official Website =
| Logo=
| Logo =
}}
}}
</nowiki>
</nowiki>
</pre>
</pre>
<noinclude>[[Category:Styling templates]]</noinclude>
[[Category:Styling templates]]
{{Clear}}
 
== Template Data ==
== Template Data ==
<templatedata>
<templatedata>
Line 87: Line 99:
},
},
"Logo": {
"Logo": {
"description": "The logo accociated with the company.",
"description": "The logo associated with the company.",
"example": "filename.[jpg|png|svg]",
"example": "filename.[jpg|png|svg]",
"type": "wiki-file-name",
"type": "wiki-file-name",
Line 94: Line 106:
"required": true
"required": true
},
},
"Type": {
"short_description": {
"description": "Type of company ownership",
"type": "string",
"example": "Public, Private, Government, Subsidiary"
"description": "Appears in the browser extension as a warning or summary when someone visits this company's site. Limit to 140 characters.",
"required": true
}
}
},
},
"description": "This is a a simple information box to use in product line articles.\nParameters are the information displayed on the infobox.",
"description": "This is a simple information box to use in company articles. Includes core details and short summary for external use.",
"format": "block",
"format": "block",
"paramOrder": [
"paramOrder": [
"Name",
"Name",
"short_description",
"Type",
"Type",
"Founded",
"Founded",