Difference between revisions of "Template:LinkedIn URL/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(note module used, update example formatting)
imported>OwenBlacker
(Updated to note the move to use d:Property:P6634 instead of the now-deprecated d:Property:P2035)
Line 2: Line 2:
 
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
 
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
 
{{warning|The [[Wikipedia:External links|external links guideline]] recommends [[WP:ELNO|avoiding links to social networks]]. Only include links to social media if it is not easily linked from another link included in the article (i.e. if the individual's homepage is linked and ''that'' has a prominent link to social media links, delete them from here) '''and''' when the social network provider provides the reader with significant unique content. Wikipedia is [[WP:NOTDIR|not a comprehensive directory of a subject's web presence]]. Only link to [[WP:ELOFFICIAL|official accounts]] "controlled by the subject (organization or individual person) of the Wikipedia article". By way of comparison, legitimate [[LinkedIn]] accounts are usually named in [[WP:RS|reliable sources]] or linked by other subject-controlled sources.}}
 
{{warning|The [[Wikipedia:External links|external links guideline]] recommends [[WP:ELNO|avoiding links to social networks]]. Only include links to social media if it is not easily linked from another link included in the article (i.e. if the individual's homepage is linked and ''that'' has a prominent link to social media links, delete them from here) '''and''' when the social network provider provides the reader with significant unique content. Wikipedia is [[WP:NOTDIR|not a comprehensive directory of a subject's web presence]]. Only link to [[WP:ELOFFICIAL|official accounts]] "controlled by the subject (organization or individual person) of the Wikipedia article". By way of comparison, legitimate [[LinkedIn]] accounts are usually named in [[WP:RS|reliable sources]] or linked by other subject-controlled sources.}}
{{Uses Wikidata|P2035}}
+
{{Uses Wikidata|P6634}}
 
{{Lua|Module:EditAtWikidata}}
 
{{Lua|Module:EditAtWikidata}}
 
{{See also|Wikipedia:External links/Perennial websites}}
 
{{See also|Wikipedia:External links/Perennial websites}}
Line 19: Line 19:
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | url= ''URL'' | name= ''NAME'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | url= ''URL'' | name= ''NAME'' }}</code>
  
Using [[Wikidata]] property [[d:Property:P2035|P2035]]:
+
Using [[Wikidata]] property [[d:Property:P6634|P6634]]:
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |name=''NAME'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |name=''NAME'' }}</code>
Line 61: Line 61:
 
       "label": "URL",
 
       "label": "URL",
 
       "aliases": [ "1" ],
 
       "aliases": [ "1" ],
       "description": "The \"url\" parameter (or unnamed parameter \"1\") should contain the URL for the LinkedIn profile. This parameter is optional if Wikidata property P2035 exists, but required if not. Examples: https://www.linkedin.com/in/jeriellsworth or https://www.linkedin.com/in/jimmy-wales-919a8b",
+
       "description": "The \"url\" parameter (or unnamed parameter \"1\") should contain the URL for the LinkedIn profile. This parameter is optional if Wikidata property P6634 exists, but required if not. Examples: https://www.linkedin.com/in/jeriellsworth or https://www.linkedin.com/in/jimmy-wales-919a8b",
       "default": "Wikidata property P2035",
+
       "default": "Wikidata property P6634",
 
       "type": "string",
 
       "type": "string",
 
       "required": true
 
       "required": true

Revision as of 11:56, 3 April 2019

Template:Uses Wikidata

Template:LinkedIn URL displays an external link to an account at LinkedIn. It is intended for use in the external links section of an article.

Please make a particular effort to verify the authenticity of social media links. Legitimate LinkedIn accounts are usually named in reliable sources, such as newspaper stories, about the subject, or linked by other subject-controlled sources.

Usage

Unnamed parameters:

{{LinkedIn URL | URL }}
{{LinkedIn URL | URL | NAME }}

Named parameters:

{{LinkedIn URL | url= URL }}
{{LinkedIn URL | url= URL | name= NAME }}

Using Wikidata property P6634:

{{LinkedIn URL}}
{{LinkedIn URL |name=NAME }}

Examples

Unnamed parameters

URL:

https://www.linkedin.com/in/jeriellsworth

Usage:

{{LinkedIn URL | https://www.linkedin.com/in/jeriellsworth | Jeri Ellsworth }}

Output:

Jeri Ellsworth on LinkedInScript error: No such module "EditAtWikidata".

Named parameters

URL:

https://www.linkedin.com/in/jimmy-wales-919a8b

Usage:

{{LinkedIn URL |url= https://www.linkedin.com/in/jimmy-wales-919a8b |name= Jimmy Wales }}

Output:

Jimmy Wales on LinkedInScript error: No such module "EditAtWikidata".

No parameters and Wikidata property not defined

Usage:

{{LinkedIn URL}}

Output:

Template:PAGENAMEBASE on LinkedInScript error: No such module "EditAtWikidata".

Template data

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 LinkedIn URL

This template generates an external link to an account at LinkedIn.

Template parameters

ParameterDescriptionTypeStatus
URLurl 1

The "url" parameter (or unnamed parameter "1") should contain the URL for the LinkedIn profile. This parameter is optional if Wikidata property P6634 exists, but required if not. Examples: https://www.linkedin.com/in/jeriellsworth or https://www.linkedin.com/in/jimmy-wales-919a8b

Default
Wikidata property P6634
Stringrequired
Namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text. This parameter is optional; it defaults to the Wikipedia article name, without disambiguation.

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

See also