• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Instagram/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Instagram
This is the template sandbox page for Template:Instagram (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
The external links guideline recommends avoiding links to Instagram unless the profile is an official account, "controlled by the subject (organization or individual person) of the Wikipedia article" and when the links to Instagram "provide the reader with unique content and are not prominently linked from other official websites". Wikipedia is not a directory for helping Instagram users find pages on Instagram.
This template tracks and uses Wikidata property:
  • Instagram username (P2003) (see uses)
This template uses Lua:
  • Module:EditAtWikidata (sandbox)
  • Module:WikidataCheck (sandbox)
WarningThis template is used on approximately 15,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

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.

Contents

  • 1 Usage
  • 2 Examples
    • 2.1 Unnamed parameters
    • 2.2 Named parameters
    • 2.3 No parameters and Wikidata property not defined
  • 3 TemplateData
  • 4 Tracking categories
  • 5 See also

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
  • Wikipedia on Instagram

Named parameters

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

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[Edit template data]

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
  • Category:Instagram username different from Wikidata (500) – comparison is case insensitive, so kevin matches Kevin
  • Category:Instagram username not in Wikidata (341)
  • Category:Instagram template missing ID and not in Wikidata (0)
  • Category:Pages using Instagram with unknown parameters (0)

See also

edit
  • {{Cite Instagram}}
  • {{Facebook}}
  • {{Pinterest}}
  • {{Tumblr}}
  • {{Twitter}}
  • {{Flickr-inline}}
  • {{Flickr-inline2}}
The above documentation is transcluded from Template:Instagram/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Instagram/sandbox&oldid=1167834285"
Last edited on 30 July 2023, at 04:44

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 30 July 2023, at 04:44 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop