编辑“︁
Template:Flagg/doc
”︁(章节)
跳转到导航
跳转到搜索
这是
Flagg
模板的
文档页面
。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
=== Image parameters === ;{{para|variant}} [third unnamed parameter] :Specifies a variant flag image, as defined and documented in each entity's data template. For example, {{#invoke:DemoTemplate|flagg|ixx|Germany|naval}} uses the "naval" variant of [[Template:Country data Germany]]. ;{{para|image}} :Custom image name, with or without the "File:" namespace prefix. Can be used if the wanted image is not available as variant for the entity (you can alternatively request it be added at the respective data template's talk page), or if no data template exists. Set to "none" ["blank", empty string] to use an unlinked transparent image (functionally identical to the [[#x|{{mono|x}}]] format). ;{{para|size}} [{{para|sz}}] :Sets the image size; default is 23×15 pixels (larger for [[:Category:Country data templates with distinct default size|some entities]]). You can use an explicit size in pixels (e.g. 30x20px; the "px" suffix is optional) or one of the relative sizes "xs" (half the default dimensions), "s", "m", "l" and "xl" (twice the default size). ;{{para|border}} :By default, the flag icon includes a border, except if it is disabled in the entity's country data template. {{para|border}} can be set to "yes" ["y", "1"] to force a border when excluded by default, or "no" ["n", "0", empty string] to prevent one. ;{{anchor|align}}{{para|align}} [{{para|al}}] :Set to "left" ["l"], "center" ["centre", "c", "middle", "m"] or "right" ["r"] to set the alignment of the image for the span box ([[#s|{{mono|s}}]]) and table cell ([[#t|{{mono|t}}]]) formats. For {{mono|t}}, the default is center; for {{mono|s}}, it is right-aligned if [[#r|{{mono|r}}]] is set, else left-aligned. ;{{para|width}} [{{para|w}}] :Sets the width of the span box surrounding the image for the span box ([[#s|{{mono|s}}]]) format, in pixels, without the "px" suffix. The default is calculated by [[Module:Flaglist]] and depends on the image size. ;{{anchor|alt}}{{para|alt}} :Sets alt text and mouseover text for the flag image, if it is for information rather than just decoration. If the wanted text is equal to the entity name, use the [[#a|{{mono|a}}]] option described above. ;{{para|ilink}} :Overrides the link target of the image (only use if none of the image formats above allow linking to the desired page). ;{{para|noredlink|no}} :Displays a red link to the missing country data template instead of a placeholder image. Defaults to "yes" (no red link displayed). ;{{para|missingcategory|''category name''}} :Adds the page to ''category name'' if the image if the country data is missing.
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息