Template:Infobox Other stakeholder: Difference between revisions

Created page with "<templatestyles src="Template:Infobox/styles.css" /> <templatestyles src="Template:Infobox_Startup/styles.css" /> {{#invoke:InfoboxMinimal|infobox | bodyclass = other_organisation | title = {{BASEPAGENAME}} | image = {{{logo|}}} | label1 = Status | data1 = {{#if:{{{status|}}}|{{{status}}}}} | label2 = Organisation Type | data2 = {{#if:{{{organisation_type|}}}|{{{organisation_type}}}}} | label3 = Website | data3 = {{#if:{{{website|}}}|[{{{website}}} {{{web..."
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:


{{#invoke:InfoboxMinimal|infobox
{{#invoke:InfoboxMinimal|infobox
  | bodyclass = other_organisation
  | bodyclass = other_stakeholder
  | title = {{BASEPAGENAME}}
  | title = {{BASEPAGENAME}}


Line 11: Line 11:
  | data1 = {{#if:{{{status|}}}|{{{status}}}}}
  | data1 = {{#if:{{{status|}}}|{{{status}}}}}


  | label2 = Organisation Type
  | label2 = Stakeholder Type
  | data2 = {{#if:{{{organisation_type|}}}|{{{organisation_type}}}}}
  | data2 = {{#if:{{{stakeholder_type|}}}|{{#invoke:ListUtils|linkifyCommaList|{{{stakeholder_type|}}}}}}}


  | label3 = Website
  | label3 = Website
Line 23: Line 23:
  | data5 = {{#if:{{{other_offices|}}}|{{{other_offices}}}}}
  | data5 = {{#if:{{{other_offices|}}}|{{{other_offices}}}}}
   
   
  | label6 = Associated Vertical(s)
  | label6 = Vertical(s)
  | data6 = {{#if:{{{verticals|}}}|{{#invoke:ListUtils|linkifyCommaList|{{{verticals|}}}}}}}  
  | data6 = {{#if:{{{verticals|}}}|{{#invoke:ListUtils|linkifyCommaList|{{{verticals|}}}}}}}  


}}<includeonly>[[Category:Other_stakeholders]]</includeonly>{{#if:{{{stakeholder_type|}}}|
  {{#invoke:ListUtils|propsOnly
    | list = {{{stakeholder_type}}}
    | property = HasStakeholder Type
  }}
}}{{#if:{{{headquarters|}}}|
  {{#set: HasHeadquarters={{{headquarters}}} }}
}}{{#if:{{{verticals|}}}|
  {{#invoke:ListUtils|catsAndProps
    | list = {{{verticals}}}
    | property = HasVertical
  }}
}}{{#if:{{{status|}}}|
  {{#set: HasStatus={{{status}}} }}
}}
}}


Line 31: Line 45:
== Usage ==
== Usage ==
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
{{Infobox_Other_organisation
{{Infobox_Other_stakeholder
  | logo = ExampleLogo.png
  | logo = ExampleLogo.png
  | status = Active
  | status = Active
  | organisation_type = Accelerator
  | stakeholder_type = Accelerator
  | website = example.com
  | website = example.com
  | headquarters = Country A
  | headquarters = Country A
Line 45: Line 59:
<templatedata>
<templatedata>
{
{
   "description": "Use this template to add an infobox to an organisation's page",
   "description": "Use this template to add an infobox to a stakeholder's page",
   "params": {
   "params": {
       "status": {
       "status": {
             "label": "Status",
             "label": "Status",
             "description": "The current operational status of the organisation.",
             "description": "The current operational status of the stakeholder.",
             "type": "string",
             "type": "string",
             "required": true,
             "required": true,
Line 60: Line 74:
         "logo": {
         "logo": {
             "label": "Logo",
             "label": "Logo",
             "description": "The filename of the startup's logo (e.g., ExampleLogo.png)",
             "description": "The filename of the stakeholder's logo (e.g., ExampleLogo.png)",
             "type": "wiki-file-name"
             "type": "wiki-file-name"
         },
         },
         "organisation_type": {
         "stakeholder_type": {
"label": "Organisation Type",
"label": "Stakeholder Type",
"description": "The type of organisation this is (e.g. research institute, accelerator)",
"description": "The type of stakeholder this is (e.g. research institute, accelerator)",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
Line 71: Line 85:
"website": {
"website": {
"label": "Website",
"label": "Website",
"description": "Investor's primary website",
"description": "Stakeholder's primary website",
"type": "url",
"type": "url",
"suggested": true
"suggested": true
Line 77: Line 91:
         "headquarters": {
         "headquarters": {
"label": "Headquarters country",
"label": "Headquarters country",
"description": "The country that the organisation is headquarted in",
"description": "The country that the stakeholder is headquarted in",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
Line 83: Line 97:
"other_offices": {
"other_offices": {
"label": "Other offices in",
"label": "Other offices in",
"description": "Any countries other than the headquarters country that the organisation has offices in",
"description": "Any countries other than the headquarters country that the stakeholder has offices in",
"type": "string"
"type": "string"
},
},
"associated_verticals": {
"verticals": {
"label": "Associated verticals",
"label": "Associated verticals",
"description": "The verticals that the organisation is involved in. Refer to page:List of Verticals.",
"description": "The verticals that the stakeholder is involved in. Refer to page:List of Verticals.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
Line 94: Line 108:
   },
   },


   "paramOrder": ["status", "logo", "organisation_type", "website", "headquarters", "other_offices", "associated_verticals"]
   "paramOrder": ["status", "logo", "stakeholder_type", "website", "headquarters", "other_offices", "verticals"]
}
}


</templatedata>
</templatedata>
</noinclude>
</noinclude>