Template:CompanyInfobox: Difference between revisions

Schang1146 (talk | contribs)
Fix formatting
MtPenguinMonster (talk | contribs)
Merge request
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
     <div style="display: flex; gap: 8px; flex-direction: column">
     <div style="display: flex; gap: 8px; flex-direction: column">
         <div class="infobox-title">{{PAGENAME}}</div>
         <div class="infobox-title">{{PAGENAME}}</div>
         <div class="infobox-image">
         {{#if:{{{Logo|}}}|<div class="infobox-image">[[File:{{{Logo|QuestionMark.svg}}}|200px]]</div>|}}
            [[File:{{{Logo|QuestionMark.svg}}}|200px]]
        </div>
         <table class="infobox-table">
         <table class="infobox-table">
             <tr>
             <tr>
Line 36: Line 34:
</includeonly>
</includeonly>
<noinclude>
<noinclude>
{{MergeRequest|Having two different infobox templates is confusing. One should just redirect to the other.|[[Template:InfoboxCompany]]}}
== 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.
Line 41: Line 40:
| Founded = 2000
| Founded = 2000
| Industry = Industrial
| Industry = Industrial
| Logo = QuestionMark.svg
| Logo =  
| Type = Public
| Type = Public
| Website = https://example.com/
| Website = https://example.com/
Line 60: Line 59:
"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 66: Line 65:
"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"
},
},
Line 79: Line 78:
"type": "string",
"type": "string",
"description": "Type of company ownership",
"description": "Type of company ownership",
"required": true,
"required": false,
"example": "Public,Non-Profit"
"example": "Public"
         },
         },
"Website": {
"Website": {