编辑“︁
Template:Flagg/doc
”︁(章节)
跳转到导航
跳转到搜索
这是
Flagg
模板的
文档页面
。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
=== Text and link parameters === ;{{para|name}} :Changes the displayed country name. Note that with the [[#f|{{mono|f}}]] format, this includes the prefix and/or suffix. ;{{para|clink}} [{{para|link}}] :Overwrites the link to the country article; this is also used to construct the prefix/suffix link for the {{mono|f}}, {{mono|p}} and {{mono|b}} options. ;{{anchor|pref}}{{para|pref}}, {{para|suff}}, {{para|plink}} :{{para|pref}} and {{para|suff}} set the prefix and suffix to use for the prefix/suffix links (format letters {{mono|f}}, {{mono|p}} and {{mono|b}}). The default, if neither is specified, is "Flag of" as prefix (cf. {{tl|flagof}}) and no suffix. {{para|plink}} can be used to override the combined link. ;{{para|the}} :Set to "yes" ["y", "1"] to include the article "the" before the country name in the prefix/suffix links. Example: {{#invoke:DemoTemplate|flagg|usf|Philippines|the=1}}. Use {{para|pthe}} if the link needs "the" but the name doesn't, and {{para|nthe}} if the name needs it but the link doesn't. ;{{para|section}} :Links to a section of the linked article without displaying the section name. If both a country link and a prefix/suffix link are used, use {{para|csection}} for a section of the country article, and {{para|psection}} for a section of the prefixed/suffixed article. ;{{para|altvar}} [{{para|avar}}], {{para|age}} :Enables using one of a set of standard suffixes for linking to sports teams and militaries. The altvar and suffix data is loaded from [[Module:Flagg/Altvar data]]. The possible parameter values are the base names of the corresponding specialized templates; alias values from full sports names exist (see examples below and data page). For some entities this also changes the image to a variant specific to a sport or military branch; for example, {{#invoke:DemoTemplate|flagg|usp|Ireland|avar=ru}} uses the [[List of flags of Ireland#Sporting flags|IRFU flag]] to represent the Irish rugby union team. For youth teams in some sports (see the data page), the age limit must be additionally set using {{para|age}}. ;{{para|nalign}} [{{para|nal}}] :Sets the alignment of the text in table cell format ({{mono|t}}). The default is left; the possible values are the same as for [[#align|{{para|align}}]]. ;{{para|text}} :Overrides the entire text; only use when necessary for any nonstandard formats. Alternatively, you can set the third letter of the format parameter to {{mono|x}} (no text) and add custom text outside the template. ;{{para|nodata|y}} :Overrides attempts to use the corresponding {{tld|country data ...}} template, which is useful when the corresponding data template doesn't exist. ;{{para|pref2}}, {{para|suff2}}, {{para|plink2}}, {{para|psection2}} : If the f extra is specified, and the prefix/suffixed article name being linked to doesn't exist, then use these parameters as an alternate prefix/suffix, and check if it exists as well. (If it still doesn't exist, then fall back to the non-prefixed/suffixed page as normal). This may be [[:mw:Help:Extension:ParserFunctions#ifexist_limits|expensive]], and the number of time it can be used on single page is limited.
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息