Template:CompanyCargo: Difference between revisions

Schang1146 (talk | contribs)
No edit summary
Schang1146 (talk | contribs)
Formatting
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation}}
{{#cargo_declare:_table=Company
| Description  = String
| Founded      = Date
| Industry      = List (,) of String
| Logo          = File
| ParentCompany = Page
| Type          = String
| Website      = List (,) of URL
}}
<templatedata>
<templatedata>
{
{
Line 37: Line 46:
"suggestedvalues": [
"suggestedvalues": [
"Public",
"Public",
"Private"
"Private",
                "Government",
                "Non-Profit"
]
]
},
},
Line 43: Line 54:
"label": "Official Website",
"label": "Official Website",
"description": "Links to a company website - only include a website if it represents a separate top level domain (TLD) or regional variation",
"description": "Links to a company website - only include a website if it represents a separate top level domain (TLD) or regional variation",
"example": "https://www.apple.com",
"example": "https://www.apple.com/",
"type": "url"
"type": "url"
},
},
Line 56: Line 67:
</templatedata>
</templatedata>
</noinclude>
</noinclude>
<includeonly><!--


<includeonly>
-->{{#cargo_store:_table=Company
{{#cargo_store:_table=Company
| Founded      = {{{Founded|}}}
| Founded      = {{{Founded|}}}
| Industry      = {{{Industry|}}}
| Industry      = {{{Industry|}}}
Line 66: Line 77:
| Website      = {{{Website|}}}
| Website      = {{{Website|}}}
| Description  = {{{Description|}}}
| Description  = {{{Description|}}}
}}
}}<!--
<div class="infobox">
 
  <div style="display: flex; gap: 8px; flex-direction: column">
// company infobox element
--><div class="infobox">
    <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">[[File:{{{Logo|QuestionMark.svg}}}|200px]]</div>
     <div class="infobox-image">[[File:{{{Logo|QuestionMark.svg}}}|200px]]</div>
Line 89: Line 102:
       <tr>
       <tr>
         <th>{{nowrap|Official website}}</th>
         <th>{{nowrap|Official website}}</th>
         <td>{{{Website|}}}</td>
         <td>{{#explode:{{{Website|}}}|,|0}}</td>
       </tr>
       </tr>
     </table>
     </table>
   </div>
   </div>
</div>
</div><!--
</includeonly>
 
--></includeonly>