Difference between revisions of "Template:Crunchbase/doc"

From blackwiki
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 AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
 +
{{Template redirect|crunchbase}}
  
 
=== Usage ===
 
=== Usage ===
* '''Parameter 1:''' Name as it appears in the CrunchBase URL
+
: {{tlcw|{{BASEPAGENAME}}}}
* '''Parameter 2:''' Optional name to displaycomp
+
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }}
* '''Parameter 3:''' Optional type of item as it appears in CrunchBase URL
+
: {{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><nowiki>{{crunchbase|apple|Apple Inc.}}</nowiki></kbd>, <kbd><nowiki>{{crunchbase|apple|Apple Inc.|organization}}</nowiki></kbd>, and <kbd><nowiki>{{crunchbase organization|apple|Apple Inc.}}</nowiki></kbd> produce:
+
=== 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>
  
Both <kbd><nowiki>{{crunchbase|steve jobs|Steve Jobs|person}}</nowiki></kbd> and <kbd><nowiki>{{crunchbase person|steve jobs|Steve Jobs}}</nowiki></kbd> produce:
+
; Output
 +
: {{crunchbase | apple | Apple Inc. }}
 +
: {{crunchbase | apple | Apple Inc. | organization }}
 +
: {{crunchbase company | apple | Apple Inc. }}
  
: {{crunchbase|steve jobs|Steve Jobs|person}}
+
=== Person ===
 +
; URL
 +
: <kbd>[https://www.crunchbase.com/person/steve-jobs https://www.crunchbase.com/'''person'''/{{hilite|steve-jobs}}]</kbd>
  
=== Template data ===
+
; 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": {
"label": "Name (as it appears in the CrunchBase URL)",
+
"description": "ID (as it appears in the CrunchBase URL)",
 
"example": "apple",
 
"example": "apple",
 
"type": "string",
 
"type": "string",
Line 29: Line 55:
 
},
 
},
 
"2": {
 
"2": {
"label": "Name to display",
+
"description": "Name to display",
 
"example": "Apple Inc.",
 
"example": "Apple Inc.",
 
"type": "string",
 
"type": "string",
Line 35: Line 61:
 
},
 
},
 
"3": {
 
"3": {
"label": "Type of item (as it appears in CrunchBase URL)",
+
"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 ===
+
== See also ==
 +
* {{tl|crunchbase company}}
 
* {{tl|crunchbase person}}
 
* {{tl|crunchbase person}}
* {{tl|crunchbase company}}
 
  
<includeonly>
+
<includeonly>{{sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!--Categories below this line; interwikis at Wikidata-->
 
[[Category:Company external link templates]]
 
[[Category:Company external link templates]]
</includeonly>
+
}}</includeonly>
[[zh:Template:CrunchBase]]
 

Revision as of 17:02, 26 January 2019

Template:Template redirect

Usage

Template:Tlcw
Template:Tlcw
Template:Tlcw
Template:Tlcw
  • 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

URL
https://www.crunchbase.com/organization/apple
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

URL
https://www.crunchbase.com/person/steve-jobs
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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

ID (as it appears in the CrunchBase URL)

Example
apple
Stringrequired
22

Name to display

Example
Apple Inc.
Stringsuggested
33

Type of item (as it appears in CrunchBase URL)

Example
organization
Stringsuggested

See also