Template:Linkedin/doc

From Wooly Moon Books
Revision as of 15:43, 9 March 2023 by Wendyulmer (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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

Using Wikidata

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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Template:Template parameter usage

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