Template:InfoboxCompany: Difference between revisions

Created page so that the company infobox will show up on the right side
 
Update Type field name to be more descriptive of what it represents
 
(27 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><div class="infobox">
<div style="background: #eee;border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 0.5em; width: 400px;">
<div style="display:flex;gap:8px;flex-direction:column;">
 
     <div class="infobox-title">{{{Company|{{PAGENAME}}}}}</div>
     <div style="font-size: 2em; text-align: center; border-bottom: 1px solid #ccc; padding-bottom: .25em;"> {{{Title|{{PAGENAME}}}}} </div>
     <div class="infobox-image">[[File:{{{Logo}}}|200px]]</div>
 
     <table class="infobox-table">
     <div style="text-align: center; padding-top: .2em;">[[File:{{{Logo}}}|200px]]</div>
 
     <table style="width:100%;">


             <tr>  
             <tr>  
                 <th colspan=2 style="text-align: left; border-bottom: 1px solid #ccc; font-size:125%; padding-top: 1.5em;">Basic Information</th>  
                 <th colspan=2 class="infobox-table-caption" >Basic information</th>  
             </tr>
             </tr>


             <tr>
             <tr>
                 <th>{{nowrap|Founded Year}}</th>
                 <th>{{nowrap|Founded}}</th>
                 <td>{{{Founded}}}</td>
                 <td>{{{Founded}}}</td>
            </tr>
            <tr>
                <th>{{nowrap|Legal structure}}</th>
                <td>{{{Type}}}</td>
             </tr>
             </tr>


Line 23: Line 25:
   
   
             <tr>
             <tr>
                 <th>{{nowrap|Official Website}}</th>
                 <th>{{nowrap|Official website}}</th>
                 <td>{{nowrap|{{{Official Website}}}}}</td>
                 <td>{{{Official Website}}}</td>
             </tr>
             </tr>


     </table>
     </table>
</div>
</div>
</includeonly>
</div>
 
</includeonly><noinclude>
<noinclude>
 
== Usage ==
== Usage ==
To have this infobox appear to the right of the page:
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
| Founded = 2000
| Founded = 2000
| Industry = Industrial
| Industry = Industrial
| Official Website = somewebsite.somewhere
| Official Website = https://example.com/
| Logo= QuestionMark.svg
| Logo = QuestionMark.svg
}}
}}
add this to the page with the text you wish to appear on the box when using the source editor.
<pre>
<pre>
<nowiki>
<nowiki>
{{InfoboxCompany
{{InfoboxCompany
| Company =
| Company =
| Type =
| Founded =
| Founded =
| Industry =
| Industry =
| Official Website =
| Official Website =
| Logo=
| Logo =
}}
}}
</nowiki>
</nowiki>
</pre>
</pre>
[[Category:Styling templates]]
{{Clear}}


== Template Data ==
== Template Data ==
Line 65: Line 67:
"required": true
"required": true
},
},
        "Type" : {
"type": "string",
"description": "Ownership status of company",
"required": true
        },
"Founded": {
"Founded": {
"type": "string",
"type": "string",
Line 82: Line 89:
},
},
"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",
"autovalue": "QuestionMark.svg",
"autovalue": "QuestionMark.svg",
"default": "QuestionMark.svg",
"default": "QuestionMark.svg",
"required": true
},
"Type": {
"description": "Type of company ownership",
"example": "Public, Private, Government, Subsidiary",
"required": true
"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 a simple information box to use in product line articles.\nParameters are the information displayed on the infobox.",
"format": "block"
"format": "block",
"paramOrder": [
"Name",
"Type",
"Founded",
"Industry",
"Official Website",
"Logo"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>