查看“模板:Flag template documentation”的源代码
←
模板:Flag template documentation
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<includeonly>{{documentation | content = {{#ifeq:{{#invoke:High-use|num|x}}|many||{{High-use}}}} {{{header|}}} ==Description== :<code><nowiki>{{</nowiki>{{#if:{{{2|}}} |{{{2}}} |{{#if:{{{3|}}} |{{{3}}} |{{#if:{{{4|}}} |{{{4}}} |? }} }} }}<nowiki>}}</nowiki></code> Renders a flag icon and wikilink to [[{{getalias|{{{1}}}}}|{{getalias|{{{1}}}|shortname}}]]. This template is equivalent to {{tlx|flag|{{{1}}}}}, but is named after the standard three letter {{#if:{{{2|}}} |{{#if:{{{3|}}} |{{#if:{{{4|}}} |{{#ifeq:{{{2}}}|{{{3}}} |{{#ifeq:{{{3}}}|{{{4}}} |[[ISO 3166-1 alpha-3]] country code, [[List of IOC country codes|IOC code]], and [[List of FIFA country codes|FIFA code]] |[[ISO 3166-1 alpha-3]] country code and [[List of IOC country codes|IOC code]] }} |{{#ifeq:{{{2}}}|{{{4}}} |[[ISO 3166-1 alpha-3]] country code and [[List of FIFA country codes|FIFA code]] |[[ISO 3166-1 alpha-3]] country code }} }} |{{#ifeq:{{{2}}}|{{{3}}} |[[ISO 3166-1 alpha-3]] country code and [[List of IOC country codes|IOC code]] |[[ISO 3166-1 alpha-3]] country code }} }} |{{#if:{{{4|}}} |{{#ifeq:{{{2}}}|{{{4}}} |[[ISO 3166-1 alpha-3]] country code and [[List of FIFA country codes|FIFA code]] |[[ISO 3166-1 alpha-3]] country code }} |[[ISO 3166-1 alpha-3]] country code }} }} |{{#if:{{{3|}}} |{{#if:{{{4|}}} |{{#ifeq:{{{3}}}|{{{4}}} |[[List of IOC country codes|IOC country code]] and [[List of FIFA country codes|FIFA code]] |[[List of IOC country codes|IOC country code]] }} |[[List of IOC country codes|IOC country code]] }} |{{#if:{{{4|}}} |[[List of FIFA country codes|FIFA country code]] |country code }} }} }} for {{{1}}} as a shorthand editing convenience. {{#if:{{{2|}}} |<br/>{{#if:{{{3|}}} |{{#if:{{{4|}}} |{{#ifeq:{{{2}}}|{{{3}}} |{{#ifeq:{{{3}}}|{{{4}}}| |You can also use {{tlx|{{{4}}}}} (which is a redirect to this template) because "{{{4}}}" is the [[List of FIFA country codes|FIFA code]] for {{{1}}}. }} |{{#ifeq:{{{3}}}|{{{4}}} |You can also use {{tlx|{{{3}}}}} (which is a redirect to this template) because "{{{3}}}" is the [[List of IOC country codes|IOC code]] and [[List of FIFA country codes|FIFA code]] for {{{1}}}. |{{#ifeq:{{{2}}}|{{{4}}} |You can also use {{tlx|{{{3}}}}} (which is a redirect to this template) because "{{{3}}}" is the [[List of IOC country codes|IOC code]] for {{{1}}}. |You can also use {{tlx|{{{3}}}}} or {{tlx|{{{4}}}}} (which are redirects to this template) because "{{{3}}}" is the [[List of IOC country codes|IOC code]] and "{{{4}}}" is the [[List of FIFA country codes|FIFA code]] for {{{1}}}. }} }} }} |{{#ifeq:{{{2}}}|{{{3}}}| |You can also use {{tlx|{{{3}}}}} (which is a redirect to this template) because "{{{3}}}" is the [[List of IOC country codes|IOC code]] for {{{1}}}. }} }} |{{#if:{{{4|}}} |{{#ifeq:{{{2}}}|{{{4}}}| |You can also use {{tlx|{{{4}}}}} (which is a redirect to this template) because "{{{4}}}" is the [[List of FIFA country codes|FIFA code]] for {{{1}}}. }} }} }} |{{#if:{{{3|}}} |{{#if:{{{4|}}} |{{#ifeq:{{{3}}}|{{{4}}}| |You can also use {{tlx|{{{4}}}}} (which is a redirect to this template) because "{{{4}}}" is the [[List of FIFA country codes|FIFA code]] for {{{1}}}. }} }} }} }} {{#ifexist:{{SUBJECTPAGENAME}}/doc |{{ {{SUBJECTPAGENAME}}/doc}} <!-- category and other documentation for the flag template --> }} ==TemplateData== {{TemplateData header}} <templatedata> { "params": {}, "description": "Renders a flag icon and wikilink. Takes no parameters." } </templatedata> ==See also== *[[Template:Country data {{{1}}}]]—for more options, such as historical flag variations where applicable *[[Wikipedia:WikiProject Flag Template]]—for a complete discussion of the flag template system *[[Wikipedia:Inline templates linking country articles]]—for a complete list of these "shorthand" flag templates {{Sandbox other||[[Category:Flag template shorthands]]}} | link box = This documentation is generated by [[Template:Flag template documentation]]. <br/> Documentation specific to this template may be placed in this template's [[{{FULLPAGENAME}}/doc|/doc]] subpage and will be automatically transcluded. <br/> Any [[Wikipedia:Categorization|categories]] should also be added to the [[{{FULLPAGENAME}}/doc|/doc]] subpage. }}</includeonly><noinclude> {{documentation}}<!-- Add categories to the /doc subpage, not here! --> </noinclude>
本页使用的模板:
模板:Documentation
(
查看源代码
)
模块:Arguments
(
查看源代码
)
模块:Documentation
(
查看源代码
)
模块:Documentation/config
(
查看源代码
)
模块:Documentation/styles.css
(
查看源代码
)
返回
模板:Flag template documentation
。
导航菜单
个人工具
登录
命名空间
模板
讨论
简体中文
查看
阅读
查看源代码
查看历史
更多
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息