Jump to content

Template:InfoboxCompany: Difference between revisions

From Consumer Rights Wiki
too many infoboxes
added short description field for browser extension
Tag: 2017 source edit
 
(23 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly><div class="infobox" style="background: #eee;border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 0.5em; width: 22em;">
<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">{{{Company|{{PAGENAME}}}}}</div>
    <div class="infobox-image">[[File:{{{Logo}}}|200px]]</div>
    <table class="infobox-table">


    <div style="font-size: 2em; text-align: center; border-bottom: 1px solid #ccc; padding-bottom: .25em;"> {{{Title|{{PAGENAME}}}}} </div>
            <tr>
                <th colspan=2 class="infobox-table-caption" >Basic information</th>
            </tr>


    <div style="aspect-ratio: 2 / 1;align-items: center;justify-content: center;display: flex;">[[File:{{{Logo}}}|200px]]</div>
            <tr>
 
                <th>{{nowrap|Short description}}</th>
    <table style="width:100%;">
                 <td>{{{short_description}}}</td>
 
            <tr>  
                 <th colspan=2 style="text-align: left; border-bottom: 1px solid #ccc; font-size:125%;">Basic Information</th>  
             </tr>
             </tr>


Line 16: Line 17:
                 <th>{{nowrap|Founded}}</th>
                 <th>{{nowrap|Founded}}</th>
                 <td>{{{Founded}}}</td>
                 <td>{{{Founded}}}</td>
            </tr>
            <tr>
                <th>{{nowrap|Type}}</th>
                <td>{{{Type}}}</td>
             </tr>
             </tr>


Line 24: Line 30:
   
   
             <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>
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
== 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.
'''Short description:''' This appears as a browser alert when someone visits this company's site. Limit to 140 characters. Be concise and clear.


== Usage ==
To have this infobox appear to the right of the page:
{{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
| 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 =
| short_description =
| Type =
| Founded =
| Founded =
| Industry =
| Industry =
| Official Website =
| Official Website =
| Logo=
| Logo =
}}
}}
</nowiki>
</nowiki>
</pre>
</pre>
[[Category:Styling templates]]
{{Clear}}


== Template Data ==
== Template Data ==
Line 66: Line 77:
"required": true
"required": true
},
},
        "Type" : {
"type": "string",
"description": "Ownership status of company",
"required": true
        },
"Founded": {
"Founded": {
"type": "string",
"type": "string",
Line 83: 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",
"autovalue": "QuestionMark.svg",
"autovalue": "QuestionMark.svg",
"default": "QuestionMark.svg",
"default": "QuestionMark.svg",
"required": true
},
"short_description": {
"type": "string",
"description": "Appears in the browser extension as a warning or summary when someone visits this company's site. Limit to 140 characters.",
"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 simple information box to use in company articles. Includes core details and short summary for external use.",
"format": "block"
"format": "block",
"paramOrder": [
"Name",
"short_description",
"Type",
"Founded",
"Industry",
"Official Website",
"Logo"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 05:18, 12 June 2025

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.

Short description: This appears as a browser alert when someone visits this company's site. Limit to 140 characters. Be concise and clear.

Company Name
Basic information
Short description Brief alert text that shows in the browser extension when users visit the site
Founded 2000
Type Public
Industry Industrial
Official website https://example.com/

{{InfoboxCompany
| Company =
| short_description =
| Type = 
| Founded =
| Industry =
| Official Website =
| Logo =
}}

Template Data

This is a simple information box to use in company articles. Includes core details and short summary for external use.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
NameName

Name of Company

Stringrequired
short_descriptionshort_description

Appears in the browser extension as a warning or summary when someone visits this company's site. Limit to 140 characters.

Stringrequired
TypeType

Ownership status of company

Stringrequired
FoundedFounded

What year was the company founded

Stringrequired
IndustryIndustry

conglomerate, electronics manufacturer

Example
Electronics, EV's, Esc
Stringrequired
Official WebsiteOfficial Website

Website of the company.

Stringrequired
LogoLogo

The logo associated with the company.

Default
QuestionMark.svg
Example
filename.[jpg|png|svg]
Auto value
QuestionMark.svg
Filerequired