Difference between revisions of "Template:Crunchbase/doc"
Jump to navigation
Jump to search
imported>Zyxw m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB) |
imported>Zyxw m (update usage and examples, add TemplateData header) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- PLEASE ADD CATEGORIES | + | <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> |
| + | {{Template redirect|crunchbase}} | ||
=== Usage === | === Usage === | ||
| − | * '''Parameter 1:''' | + | : {{tlcw|{{BASEPAGENAME}}}} |
| − | * '''Parameter 2:''' Optional name to | + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} |
| − | * '''Parameter 3:''' | + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }} |
| + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> | <var>TYPE</var> }} | ||
| + | |||
| + | * '''Parameter 1:''' ID as it appears in the CrunchBase URL | ||
| + | * '''Parameter 2:''' Optional name to display | ||
| + | * '''Parameter 3:''' Type of item (as it appears in CrunchBase URL) | ||
Using <kbd><nowiki>{{crunchbase}}</nowiki></kbd> 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: | Using <kbd><nowiki>{{crunchbase}}</nowiki></kbd> 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: | ||
| + | == Examples == | ||
| − | <kbd> | + | === Organization === |
| + | ; URL | ||
| + | : <kbd>[https://www.crunchbase.com/organization/apple https://www.crunchbase.com/'''organization'''/{{hilite|apple}}]</kbd> | ||
| − | : {{crunchbase|apple|Apple Inc.|organization}} | + | ; Usage |
| + | : <kbd><nowiki>{{crunchbase | apple | Apple Inc. }}</nowiki></kbd> | ||
| + | : <kbd><nowiki>{{crunchbase | apple | Apple Inc. | organization }}</nowiki></kbd> | ||
| + | : <kbd><nowiki>{{crunchbase company | apple | Apple Inc. }}</nowiki></kbd> | ||
| − | + | ; Output | |
| + | : {{crunchbase | apple | Apple Inc. }} | ||
| + | : {{crunchbase | apple | Apple Inc. | organization }} | ||
| + | : {{crunchbase company | apple | Apple Inc. }} | ||
| − | : {{ | + | === Person === |
| + | ; URL | ||
| + | : <kbd>[https://www.crunchbase.com/person/steve-jobs https://www.crunchbase.com/'''person'''/{{hilite|steve-jobs}}]</kbd> | ||
| − | == | + | ; Usage |
| + | : <kbd><nowiki>{{crunchbase | steve-jobs | Steve Jobs | person }}</nowiki></kbd> | ||
| + | : <kbd><nowiki>{{crunchbase person | steve-jobs | Steve Jobs }}</nowiki></kbd> | ||
| + | |||
| + | ; Output | ||
| + | : {{crunchbase | steve-jobs | Steve Jobs | person }} | ||
| + | : {{crunchbase person | steve-jobs | Steve Jobs }} | ||
| + | |||
| + | == TemplateData == | ||
| + | {{TemplateData header}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
| − | " | + | "description": "ID (as it appears in the CrunchBase URL)", |
"example": "apple", | "example": "apple", | ||
"type": "string", | "type": "string", | ||
| Line 29: | Line 55: | ||
}, | }, | ||
"2": { | "2": { | ||
| − | " | + | "description": "Name to display", |
"example": "Apple Inc.", | "example": "Apple Inc.", | ||
"type": "string", | "type": "string", | ||
| Line 35: | Line 61: | ||
}, | }, | ||
"3": { | "3": { | ||
| − | " | + | "description": "Type of item (as it appears in CrunchBase URL)", |
"example": "organization", | "example": "organization", | ||
"type": "string", | "type": "string", | ||
| Line 51: | Line 77: | ||
</templatedata> | </templatedata> | ||
| − | + | == See also == | |
| + | * {{tl|crunchbase company}} | ||
* {{tl|crunchbase person}} | * {{tl|crunchbase person}} | ||
| − | |||
| − | <includeonly> | + | <includeonly>{{sandbox other|| |
| − | <!-- | + | <!--Categories below this line; interwikis at Wikidata--> |
[[Category:Company external link templates]] | [[Category:Company external link templates]] | ||
| − | </includeonly> | + | }}</includeonly> |
| − | |||
Revision as of 17:02, 26 January 2019
| This is a documentation subpage for Template:Crunchbase. It contains usage information, categories and other content that is not part of the original template page. |
Usage
- Parameter 1: ID as it appears in the CrunchBase URL
- Parameter 2: Optional name to display
- Parameter 3: 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:
Examples
Organization
- Usage
- {{crunchbase | apple | Apple Inc. }}
- {{crunchbase | apple | Apple Inc. | organization }}
- {{crunchbase company | apple | Apple Inc. }}
- Output
- Apple Inc. at Crunchbase
- Apple Inc. at Crunchbase
- Apple Inc. at Crunchbase
Person
- Usage
- {{crunchbase | steve-jobs | Steve Jobs | person }}
- {{crunchbase person | steve-jobs | Steve Jobs }}
- Output
- Steve Jobs at Crunchbase
- Steve Jobs at Crunchbase
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Crunchbase
Adds external link to the CrunchBase profile of an organization or person.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | ID (as it appears in the CrunchBase URL)
| String | required |
| 2 | 2 | Name to display
| String | suggested |
| 3 | 3 | Type of item (as it appears in CrunchBase URL)
| String | suggested |
See also
- {{crunchbase company}}
- {{crunchbase person}}