Difference between revisions of "Template:LinkedIn URL/doc"
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| | + | {{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: | + | 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 | + | "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 | + | "default": "Wikidata property P6634", |
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
Revision as of 11:56, 3 April 2019
| 40px | This is a documentation subpage for Template:LinkedIn URL. It contains usage information, categories and other content that is not part of the original template page. |
| 40x40px | The external links guideline recommends 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 not a comprehensive directory of a subject's web presence. Only link to 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 reliable sources or linked by other subject-controlled sources. |
| 30px | This template uses Lua: |
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.
Contents
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:
Usage:
{{LinkedIn URL | https://www.linkedin.com/in/jeriellsworth | Jeri Ellsworth }}
Output:
- Jeri Ellsworth on LinkedInScript error: No such module "EditAtWikidata".
Named parameters
URL:
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
TemplateData for LinkedIn URL
This template generates an external link to an account at LinkedIn.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| URL | url 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
| String | required |
| Name | name 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.
| String | optional |
Tracking categories
See also
- {{Twitter}}
- {{Pinterest}}
- {{Tumblr}}
- {{Flickr-inline}}
- {{Flickr-inline2}}
- {{Instagram}}
- WP:ABOUTSELF