Template:Linkedin/doc

From DMJ Productions

Template:Linkedin displays an external link to a page at Linkedin, a business-focused social networking website. It is intended for use in the external links section of an article.

Usage[edit]

Unnamed parameters
{{Linkedin | user name or number }}
{{Linkedin | user name or number | Displayed Name }}
Named parameters
{{Linkedin | id= user name or number }}
{{Linkedin | id= user name or number | name= Displayed Name }}
Using Wikidata property (P6634)
{{Linkedin}}
{{Linkedin | name= Displayed Name }}

Examples[edit]

Using Wikidata[edit]

Generally, Wikidata should contain article subjects' Linkedin IDs in property (P6634), allowing the ID parameter to be omitted:

* {{Linkedin}}
* {{Linkedin |name=NAME }}

If the Wikidata property is not defined, the output is:

  • Linkedin/doc on LinkedInLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).

TemplateData[edit]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Linkedin

<templatedata> {

   "description": "Generate a link to a Linkedin profile in a standard format.",
   "params": {
       "id": {
           "label": "Account ID",
           "aliases": ["1"],
           "description": "ID of the Linkedin account (part of the web page address, for www.Linkedin.com/in/example/ the account id is \"example\"). This parameter is optional if Wikidata property P6634 exists, but required if not.",
           "type": "string/line",
           "required": false,
           "default": "Wikidata property P2013"
       },
       "name": {
           "label": "Display name",
           "aliases": ["2"],
           "description": "Display name for the Linkedin account",
           "type": "string/line",
           "required": false,
           "default": "Name of the page"
       }
   }

} </templatedata>


See also[edit]