Template:Instagram/doc

From Wikipedia, the free encyclopedia

Template:Instagram displays an external link to a page at Instagram, a photo sharing and social media website. It is intended for use in the external links section of an article.

Usage[edit]

Unnamed parameters
{{Instagram | username }}
{{Instagram | username | Displayed Name }}
Named parameters
{{Instagram | id= username }}
{{Instagram | id= username | name= Displayed Name }}
Using Wikidata property
{{Instagram}}
{{Instagram | name= Displayed Name }}

Examples[edit]

Unnamed parameters[edit]

URL
https://www.instagram.com/wikipedia/
Usage
* {{Instagram | wikipedia | Wikipedia }}
Output

Named parameters[edit]

URL
https://www.instagram.com/kevin/
Usage
* {{Instagram | id= kevin | name= Kevin Systrom }}
Output

No parameters and Wikidata property not defined[edit]

Usage
* {{Instagram}}
Output
  • {{Instagram}} template missing ID and not present in Wikidata.

TemplateData[edit]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Instagram in articles based on its TemplateData.

TemplateData for Instagram

This template displays an external link to a page at Instagram, a photo sharing and social media website. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The username in the Instagram URL, such as kevin in https://www.instagram.com/kevin/. This parameter is optional if Wikidata property P2003 exists, but required if not.

Default
Wikidata property P2003
Example
kevin
Stringoptional
Namename 2

The name displayed as the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.

Default
{{PAGENAMEBASE}}
Example
Kevin Systrom
Stringoptional

Tracking categories[edit]

See also[edit]