Template:Instagram/sandbox
| This is the template sandbox page for Template:Instagram (diff). See also the companion subpage for test cases. |
| This template uses Lua: |
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
Usage
- Unnamed parameters
{{Instagram | account_name }}{{Instagram | account_name | Displayed Name }}
- Named parameters
{{Instagram | id= account_name }}{{Instagram | id= account_name | name= Displayed Name }}
- Using Wikidata property Template:WPL
{{Instagram}}{{Instagram | name= Displayed Name }}
Examples
Unnamed parameters
URL:
Usage:
{{Instagram | wikipedia | Wikipedia }}
Output:
Named parameters
URL:
Usage:
{{Instagram | id= kevin | name= Kevin Systrom }}
Output:
- Kevin Systrom on InstagramScript error: No such module "EditAtWikidata".
No parameters and Wikidata property not defined
Usage:
{{Instagram}}
Output:
- Template:PAGENAMEBASE on InstagramScript error: No such module "EditAtWikidata".
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the account name in the URL. Example: kevin is the account name in https://www.instagram.com/kevin/. This parameter is optional if Wikidata property P2003 exists, but required if not.
| String | optional |
| 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 any disambiguation.
| String | optional |
Tracking category
See also
- {{Twitter}}
- {{Pinterest}}
- {{Tumblr}}
- {{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. Please add categories to the /doc subpage. Subpages of this template. |