Difference between revisions of "Template:Instagram/doc"
Wikirug>Zyxw (note module used, add intro text, update usage and examples, add TemplateData) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 24: | Line 24: | ||
=== Unnamed parameters === | === Unnamed parameters === | ||
''URL:'' | ''URL:'' | ||
− | : <tt>[https://www.instagram.com/ | + | : <tt>[https://www.instagram.com/wikirug/ https://www.instagram.com/{{hilite|wikirug}}/]</tt> |
''Usage:'' | ''Usage:'' | ||
− | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | wikirug | Wikirug }}</code> |
''Output:'' | ''Output:'' | ||
− | : {{{{BASEPAGENAME}} | | + | : {{{{BASEPAGENAME}} | wikirug | Wikirug }} |
=== Named parameters === | === Named parameters === | ||
Line 61: | Line 61: | ||
"label": "name", | "label": "name", | ||
"aliases": ["2"], | "aliases": ["2"], | ||
− | "description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify the link text. This parameter is optional; it defaults to the | + | "description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify the link text. This parameter is optional; it defaults to the WikiRug article name, without any disambiguation.", |
"type": "string", | "type": "string", | ||
"required": false, | "required": false, |
Latest revision as of 13:55, 19 September 2019
![]() | This is a documentation subpage for Template:Instagram. It contains usage information, categories and other content that is not part of the original template page. |
![]() |
This template uses the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
![]() | 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.
Usage
- Unnamed parameters
{{Instagram | account_name }}
{{Instagram | account_name | Displayed Name }}
- Named parameters
{{Instagram | id= account_name }}
{{Instagram | id= account_name | name= Displayed Name }}
Examples
Unnamed parameters
URL:
Usage:
{{Instagram | wikirug | Wikirug }}
Output:
Named parameters
URL:
Usage:
{{Instagram | id= kevin | name= Kevin Systrom }}
Output:
No parameters and Wikidata property not defined
Usage:
{{Instagram}}
Output:
- Template:First word/ Instagram/doc on InstagramTemplate:EditAtWikiRug
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 WikiRug article name, without any disambiguation.
| String | optional |
Tracking category
See also
- {{Twitter}}
- {{Pinterest}}
- {{Tumblr}}
- {{Flickr-inline}}
- {{Flickr-inline2}}