Difference between revisions of "Template:Crunchbase/doc"

From blackwiki
Jump to navigation Jump to search
imported>Officialjjones
(change of URI)
imported>Daylen
(Added template data)
Line 17: Line 17:
  
 
: {{crunchbase|steve jobs|Steve Jobs|person}}
 
: {{crunchbase|steve jobs|Steve Jobs|person}}
 +
 +
== Template data ==
 +
</includeonly>
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Name (as it appears in the CrunchBase URL)",
 +
"example": "apple",
 +
"type": "string",
 +
"required": true
 +
},
 +
"2": {
 +
"label": "Name to display",
 +
"example": "Apple Inc.",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"3": {
 +
"label": "Type of item (as it appears in CrunchBase URL)",
 +
"example": "organization",
 +
"type": "string",
 +
"suggested": true
 +
}
 +
},
 +
"description": "Adds external link to the CrunchBase profile of an organization or person.",
 +
"paramOrder": [
 +
"1",
 +
"2",
 +
"3"
 +
],
 +
"format": "inline"
 +
}
 +
</templatedata>
  
 
=== See also ===
 
=== See also ===
Line 27: Line 61:
  
 
[[zh:Template:CrunchBase]]
 
[[zh:Template:CrunchBase]]
</includeonly>
 

Revision as of 19:30, 27 March 2017

Usage

  • Parameter 1: Name as it appears in the CrunchBase URL
  • Parameter 2: Optional name to displaycomp
  • Parameter 3: Optional type of item as it appears in CrunchBase URL

Using {{crunchbase}} works fine in most articles, as it takes the article's title to create the URL. If not, then try one of the following methods:


{{crunchbase|apple|Apple Inc.}}, {{crunchbase|apple|Apple Inc.|organization}}, and {{crunchbase organization|apple|Apple Inc.}} produce:

Apple Inc. at Crunchbase

Both {{crunchbase|steve jobs|Steve Jobs|person}} and {{crunchbase person|steve jobs|Steve Jobs}} produce:

Steve Jobs at Crunchbase

Template data

</includeonly>

Adds external link to the CrunchBase profile of an organization or person.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Name (as it appears in the CrunchBase URL)1

no description

Example
apple
Stringrequired
Name to display2

no description

Example
Apple Inc.
Stringsuggested
Type of item (as it appears in CrunchBase URL)3

no description

Example
organization
Stringsuggested

See also