求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

變更

前往: 導覽搜尋

Template:Instagram/doc

增加 2,996 位元組, 6 年前
更新、扩充文档
{{Documentation subpage}}
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{Uses Wikidata|P2003}}
{{Lua|Module:EditAtWikidata}}

== 模板介紹 ==
用於链接[[Instagram]]帳號。

__TOC__
{{clear}}

==參數及使用方法==
; 匿名参数
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''账号名称'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''账号名称'' | ''显示名称'' }}</code>

; 命名参数
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id=''账号名称'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id=''账号名称'' | name=''显示名称'' }}</code>

; 使用[[维基数据]]上的属性
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name=''显示名称'' }}</code>

==例子==
=== 匿名参数 ===
URL:
: <tt>[https://www.instagram.com/wikipedia/ https://www.instagram.com/{{hilite|wikipedia}}/]</tt>
使用:
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | wikipedia | Wikipedia }}</code>
输出:
: {{{{BASEPAGENAME}} | wikipedia | Wikipedia }}

=== 命名参数===
URL:
: <tt>[https://www.instagram.com/kevin/ https://www.instagram.com/{{hilite|kevin}}/]</tt>
使用:
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= kevin | name= Kevin Systrom }}</code>
输出:
: {{{{BASEPAGENAME}} | id= kevin | name= Kevin Systrom }}

=== 无参数且维基数据属性未定义 ===
使用:
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
输出:
: {{ {{BASEPAGENAME}} }}

== 模板数据 ==
{{TemplateData header}}
<templatedata>
{
"description": "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.",
"params": {
"id": {
"label": "id",
"aliases": ["1"],
"description": "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.",
"type": "string",
"required": false,
"default": "Wikidata property P2003"
},
"name": {
"label": "name",
"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 Wikipedia article name, without any disambiguation.",
"type": "string",
"required": false,
"default": "{{PAGENAMEBASE}}"
}
},
"paramOrder": [
"id",
"name"
]
}
</templatedata>

== 跟踪分类 ==
* {{clc|缺少ID的Instagram模板}}

== 参见==
* {{tl|Twitter}}
* {{tl|Pinterest}}
* {{tl|Tumblr}}
* {{tl|Instagram post}}
* [[Wikipedia:外部連結]]

<includeonly>
[[Category:外部资源模板]]
[[Category:社交网络链接模板]]
[[Category:Facebook|*]]
</includeonly>