Jump to content

Template:CompanyInfobox: Difference between revisions

From Consumer Rights Wiki
Created page with "<includeonly> <div class="infobox"> <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"> <tr> <th colspan="2" class="infobox-table-caption">Basic information</th> </tr> <tr> <th>{{nowrap|Founded}}</th> <td>{{{Founded}}}</td> </tr> <tr> <th..."
 
Fix templatedata
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="infobox">
<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-title">{{PAGENAME}}</div>
    <div class="infobox-image">[[File:{{{Logo}}}|200px]]</div>
        <div class="infobox-image">[[File:{{{Logo|QuestionMark.svg}}}|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>


      <tr>
            <tr>
        <th>{{nowrap|Founded}}</th>
                <th>{{nowrap|Founded}}</th>
        <td>{{{Founded}}}</td>
                <td>{{{Founded|}}}</td>
      </tr>
            </tr>


      <tr>
            <tr>
        <th>{{nowrap|Type}}</th>
                <th>{{nowrap|Legal Structure}}</th>
        <td>{{{Type}}}</td>
                <td>{{{Type|}}}</td>
      </tr>
            </tr>


      <tr>
            <tr>
        <th>{{nowrap|Industry}}</th>
                <th>{{nowrap|Industry}}</th>
        <td>{{{Industry}}}</td>
                <td>{{{Industry|}}}</td>
      </tr>
            </tr>


      <tr>
            <tr>
        <th>{{nowrap|Official website}}</th>
                <th>{{nowrap|Official website}}</th>
        <td>{{{Website}}}</td>
                <td>{{{Website|}}}</td>
      </tr>
            </tr>
    </table>
        </table>
  </div>
    </div>
</div>
</div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Line 36: Line 37:
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.
{{CompanyInfobox
{{CompanyInfobox
| Type = Public
| Founded = 2000
| Founded = 2000
| Industry = Industrial
| Industry = Industrial
| Logo = QuestionMark.svg
| Type = Public
| Website = https://example.com/
| Website = https://example.com/
| Logo = QuestionMark.svg
}}
}}
{{#template_params:
{{#template_params:
| Type (label=Type)
| Founded (label=Founded)
| Founded (label=Founded)
| Industry (label=Industry)
| Industry (label=Industry)
| Logo (label=Logo)
| Type (label=Type)
| Website (label=Website)
| Website (label=Website)
| Logo (label=Logo)
}}
}}


Line 54: Line 55:
{
{
"params": {
"params": {
        "Type" : {
"type": "string",
"description": "Type of company ownership",
"required": true,
"example": "Public,Non-Profit"
        },
"Founded": {
"Founded": {
"type": "date",
"type": "date",
"description": "What year-month-day was the company founded (month and day are NOT required)",
"description": "What year-month-day was the company founded (month and day are NOT required)",
"required": true,
"required": false,
"example": "2000-01-01"
"example": "2000-01-01"
},
},
Line 69: Line 64:
"type": "string",
"type": "string",
"description": "What economic sector a company belongs to based on its main activity",
"description": "What economic sector a company belongs to based on its main activity",
"required": true,
"required": false,
"example": "Electronics,Servers,Streaming Services"
"example": "Electronics,Servers,Streaming Services"
},
"Website": {
"type": "url",
"description": "Website of the company",
"required": false,
"example": "https://www.apple.com/"
},
},
"Logo": {
"Logo": {
Line 84: Line 73:
"example": "filename.[jpg|png|svg]",
"example": "filename.[jpg|png|svg]",
"default": "QuestionMark.svg"
"default": "QuestionMark.svg"
},
        "Type" : {
"type": "string",
"description": "Type of company ownership",
"required": false,
"example": "Public"
        },
"Website": {
"type": "url",
"description": "Website of the company",
"required": false,
"example": "https://www.apple.com/"
}
}
},
},
Line 89: Line 90:
"format": "block",
"format": "block",
"paramOrder": [
"paramOrder": [
"Type",
"Founded",
"Founded",
"Industry",
"Industry",
"Website",
"Logo",
"Logo"
"Type",
"Website"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 17:28, 5 July 2025


Usage[edit source]

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.

CompanyInfobox
Basic information
Founded 2000
Legal Structure Public
Industry Industrial
Official website https://example.com/


This is the "CompanyInfobox" template.

It should be called in the following format:

{{CompanyInfobox
|Founded=
|Industry=
|Logo=
|Type=
|Website=
}}

Edit the page to see the template text.

Template Data[edit source]

This is a a simple information box to use in product line articles. Parameters are the information displayed on the infobox.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
FoundedFounded

What year-month-day was the company founded (month and day are NOT required)

Example
2000-01-01
Dateoptional
IndustryIndustry

What economic sector a company belongs to based on its main activity

Example
Electronics,Servers,Streaming Services
Stringoptional
LogoLogo

The logo associated with the company

Default
QuestionMark.svg
Example
filename.[jpg|png|svg]
Fileoptional
TypeType

Type of company ownership

Example
Public
Stringoptional
WebsiteWebsite

Website of the company

Example
https://www.apple.com/
URLoptional