Difference between revisions of "Template:Crunchbase/doc"
imported>Zyxw (add category) |
imported>Zyxw (Add links to new tracking categories.) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> | ||
{{Template redirect|CrunchBase}} | {{Template redirect|CrunchBase}} | ||
| + | {{Uses Wikidata|P2088|P2087}} | ||
| + | {{Lua|Module:EditAtWikidata}} | ||
| − | + | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to the [[Crunchbase]] profile of an organization or a person. It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | |
| − | : | + | |
| + | == Usage == | ||
| + | Unnamed parameters: | ||
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} | ||
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }} | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }} | ||
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> | <var>TYPE</var> }} | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> | <var>TYPE</var> }} | ||
| − | + | Named parameters: | |
| − | + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }} | |
| − | + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }} | |
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> | type{{=}} <var>TYPE</var> }} | ||
| + | |||
| + | Using [[Wikidata]] property {{Property|2088|id=only}} or {{Property|2087|id=only}}: | ||
| + | : {{tlcw|{{BASEPAGENAME}} }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }} | ||
| + | |||
| + | == Parameters == | ||
| + | # '''id''' – ID as it appears in the Crunchbase URL (optional, default is created from Wikidata or the Wikipedia article name) | ||
| + | # '''name''' – Name to display (optional, default is the current Wikipedia article name) | ||
| + | # '''type''' – Type of item as it appears in Crunchbase URL (optional, default is organization) | ||
== Examples == | == Examples == | ||
| − | Using <kbd><nowiki>{{Crunchbase}}</nowiki></kbd> works fine in most articles, as it | + | Using <kbd><nowiki>{{Crunchbase}}</nowiki></kbd> works fine in most articles, as it uses [[Wikidata]] or the article's title to create the URL. If not, then try one of the following methods: |
| − | === Organization === | + | === Organization (default) === |
; URL | ; URL | ||
: <kbd>[https://www.crunchbase.com/organization/apple https://www.crunchbase.com/'''organization'''/{{hilite|apple}}]</kbd> | : <kbd>[https://www.crunchbase.com/organization/apple https://www.crunchbase.com/'''organization'''/{{hilite|apple}}]</kbd> | ||
; Usage | ; Usage | ||
| − | : | + | : {{tlcw|a=1|{{BASEPAGENAME}} | apple | Apple Inc. }} |
| − | : | + | : {{tlcw|a=1|{{BASEPAGENAME}} | apple | Apple Inc. | organization }} |
| − | : | + | : {{tlcw|a=1|Crunchbase company | apple | Apple Inc. }} |
; Output | ; Output | ||
| − | : {{ | + | :* {{{{BASEPAGENAME}} | apple | Apple Inc. }} |
| − | : {{ | + | :* {{{{BASEPAGENAME}} | apple | Apple Inc. | organization }} |
| − | : {{Crunchbase company | apple | Apple Inc. }} | + | :* {{Crunchbase company | apple | Apple Inc. }} |
=== Person === | === Person === | ||
| Line 35: | Line 49: | ||
; Usage | ; Usage | ||
| − | : | + | : {{tlcw|a=1|{{BASEPAGENAME}} | steve-jobs | Steve Jobs | person }} |
| − | : | + | : {{tlcw|a=1|Crunchbase person | steve-jobs | Steve Jobs }} |
; Output | ; Output | ||
| − | : {{ | + | :* {{{{BASEPAGENAME}} | steve-jobs | Steve Jobs | person }} |
| − | : {{Crunchbase person | steve-jobs | Steve Jobs }} | + | :* {{Crunchbase person | steve-jobs | Steve Jobs }} |
== TemplateData == | == TemplateData == | ||
| Line 46: | Line 60: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| + | "description": "This template displays an external link to the Crunchbase profile of an organization or a person. It is intended for use in the external links section of an article.", | ||
| + | "format": "inline", | ||
"params": { | "params": { | ||
| − | " | + | "id": { |
| − | "description": "ID as it appears in the Crunchbase URL (optional, default is created from | + | "label": "id", |
| + | "aliases": ["1"], | ||
| + | "description": "ID as it appears in the Crunchbase URL (optional, default is created from Wikidata or the Wikipedia article name)", | ||
"example": "apple", | "example": "apple", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
| − | " | + | "name": { |
| + | "label": "name", | ||
| + | "aliases": ["2"], | ||
"description": "Name to display (optional, default is the current Wikipedia article name)", | "description": "Name to display (optional, default is the current Wikipedia article name)", | ||
"example": "Apple Inc.", | "example": "Apple Inc.", | ||
| Line 59: | Line 79: | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
| − | " | + | "type": { |
| + | "label": "type", | ||
| + | "aliases": ["3"], | ||
"description": "Type of item as it appears in Crunchbase URL (optional, default is organization))", | "description": "Type of item as it appears in Crunchbase URL (optional, default is organization))", | ||
"example": "organization", | "example": "organization", | ||
| Line 66: | Line 88: | ||
} | } | ||
}, | }, | ||
| − | |||
"paramOrder": [ | "paramOrder": [ | ||
| − | " | + | "id", |
| − | " | + | "name", |
| − | " | + | "type" |
| − | ] | + | ] |
| − | |||
} | } | ||
</templatedata> | </templatedata> | ||
| + | |||
| + | == Tracking categories == | ||
| + | ; ID parameter exists | ||
| + | * {{clc|Crunchbase template with organization ID}} | ||
| + | * {{clc|Crunchbase template with person ID}} | ||
| + | ; ID parameter does not exist | ||
| + | * {{clc|Crunchbase template using Wikidata}} | ||
| + | * {{clc|Crunchbase template missing ID and not in Wikidata}} | ||
== See also == | == See also == | ||
| Line 84: | Line 112: | ||
[[Category:Company external link templates]] | [[Category:Company external link templates]] | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
| + | [[Category:External link templates using Wikidata]] | ||
| + | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 03:03, 17 March 2019
| 40px | 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. |
Template:Template redirect Template:Uses Wikidata
| 30px | This template uses Lua: |
Template:Crunchbase displays an external link to the Crunchbase profile of an organization or a person. It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property Template:Property or Template:Property:
Parameters
- id – ID as it appears in the Crunchbase URL (optional, default is created from Wikidata or the Wikipedia article name)
- name – Name to display (optional, default is the current Wikipedia article name)
- type – Type of item as it appears in Crunchbase URL (optional, default is organization)
Examples
Using {{Crunchbase}} works fine in most articles, as it uses Wikidata or the article's title to create the URL. If not, then try one of the following methods:
Organization (default)
- Output
Person
- Usage
- Template:Tlcw
- Template:Tlcw
- Output
TemplateData
TemplateData for Crunchbase
This template displays an external link to the Crunchbase profile of an organization or a person. It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | ID as it appears in the Crunchbase URL (optional, default is created from Wikidata or the Wikipedia article name)
| String | suggested |
| name | name 2 | Name to display (optional, default is the current Wikipedia article name)
| String | suggested |
| type | type 3 | Type of item as it appears in Crunchbase URL (optional, default is organization))
| String | suggested |
Tracking categories
- ID parameter exists
- Category:Crunchbase template with organization ID (0)
- Category:Crunchbase template with person ID (0)
- ID parameter does not exist
- Category:Crunchbase template using Wikidata (0)
- Category:Crunchbase template missing ID and not in Wikidata (0)
See also
- {{Crunchbase company}}
- {{Crunchbase person}}