Difference between revisions of "Template:Crunchbase"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(When ID not specified, use Wikidata property P2087 or P2088 if available and add edit link. Allow named parameters: 1=id, 2=name, 3=type.)
imported>Zyxw
(add tracking categories)
Line 5: Line 5:
 
| {{#if: {{#property:P2087}}
 
| {{#if: {{#property:P2087}}
  
   | [https://www.crunchbase.com/person/{{First word|1={{#property:P2087}}|sep=,}} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[Crunchbase]]<includeonly>{{EditAtWikidata|pid=P2087}}</includeonly>
+
   | [https://www.crunchbase.com/person/{{First word|1={{#property:P2087}}|sep=,}} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[Crunchbase]]<includeonly>{{EditAtWikidata|pid=P2087}}</includeonly>{{Main other|[[Category:Crunchbase template using Wikidata]]}}
  
 
   | {{#if: {{#property:P2088}}
 
   | {{#if: {{#property:P2088}}
  
     | [https://www.crunchbase.com/organization/{{First word|1={{#property:P2088}}|sep=,}} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[Crunchbase]]<includeonly>{{EditAtWikidata|pid=P2088}}</includeonly>
+
     | [https://www.crunchbase.com/organization/{{First word|1={{#property:P2088}}|sep=,}} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[Crunchbase]]<includeonly>{{EditAtWikidata|pid=P2088}}</includeonly>{{Main other|[[Category:Crunchbase template using Wikidata]]}}
 +
 
 +
    | [https://www.crunchbase.com/{{Trim|{{{3|{{{type<includeonly>|organization</includeonly>}}}}}}}}/{{Replace|{{lc:{{urlencode:{{PAGENAMEBASE}}}}}}|+|-}} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[Crunchbase]]{{Main other|[[Category:Crunchbase template missing ID and not in Wikidata]]}}
  
    | [https://www.crunchbase.com/{{Trim|{{{3|{{{type<includeonly>|organization</includeonly>}}}}}}}}/{{Replace|{{lc:{{urlencode:{{PAGENAMEBASE}}}}}}|+|-}} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[Crunchbase]]
 
  
 
     }}
 
     }}
 
   }}
 
   }}
 
}}<noinclude>{{documentation}}</noinclude>
 
}}<noinclude>{{documentation}}</noinclude>

Revision as of 01:53, 17 March 2019

{{{name}}} at Crunchbase

50px Template documentation[view] [edit] [history] [purge]

Template:Template redirect Template:Uses Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

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.

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw
Template:Tlcw

Using Wikidata property Template:Property or Template:Property:

Template:Tlcw
Template:Tlcw

Parameters

  1. id – ID as it appears in the Crunchbase URL (optional, default is created from Wikidata or the Wikipedia article name)
  2. name – Name to display (optional, default is the current Wikipedia article name)
  3. 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)

URL
https://www.crunchbase.com/organization/apple
Usage
Template:Tlcw
Template:Tlcw
Template:Tlcw
Output

Person

URL
https://www.crunchbase.com/person/steve-jobs
Usage
Template:Tlcw
Template:Tlcw
Output

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

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
idid 1

ID as it appears in the Crunchbase URL (optional, default is created from Wikidata or the Wikipedia article name)

Example
apple
Stringsuggested
namename 2

Name to display (optional, default is the current Wikipedia article name)

Example
Apple Inc.
Stringsuggested
typetype 3

Type of item as it appears in Crunchbase URL (optional, default is organization))

Example
organization
Stringsuggested

Tracking categories

ID parameter exists
ID parameter does not exist

See also