Template:Top icon/doc
| File:Edit-copy green.svg | 此頁面是Template:Top icon的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
| 警告 | 此Template文档被引用於約15,000個頁面。 為了避免造成大規模的影響,所有對此Template文档的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此Template文档中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
在页面标题右侧放置图标。
注意:本模板使用了页面状态指示器。
用法[编辑]
{{Top icon
| id = ID(若指定此项将不使用页面状态指示器)
| class = HTML class(若指定此项将不使用页面状态指示器)
| image = 图片名(或“imagename”)
| size = 大小(默认24,不需填入px)
| alt = 替代文字
| description = 描述文字(鼠标悬停时显示)
| link = 链接目标(或“wikilink”)
| usercat = [[Category:放置于用户页时的分类]]
| maincat = [[Category:放置于主名字空间页面时的分类]]
| subpage = no或only(模板置于子页时是否加分类)
| nocat = true(不分类)或false(全部分类,哪怕是黑名单的页面)或留空(正常分类)
}}
以下表格未更新,请以上文为准
<templatedata> { "paramOrder": [ "name", "image", "size", "link", "alt", "text", "sortkey", "usercat", "maincat", "subpage", "nocat" ], "params": { "image": { "description": "图标文件名", "type": "wiki-file-name", "required": true, "aliases": [ "imagename" ], "autovalue": "" }, "size": { "description": "图标大小,單位為像素", "type": "string", "default": "20" }, "alt": { "description": "替代文字,用于鼠标放在图标上时显示说明文字", "type": "string", "suggested": true }, "link": { "description": "链接的目标页面", "type": "wiki-page-name", "required": true, "aliases": [ "wikilink" ] }, "name": { "aliases": [ "id" ], "description": "为每个图标分配的唯一名称", "type": "string", "autovalue": "Top icon/doc", "required": true }, "text": { "aliases": [ "description" ], "type": "string" }, "sortkey": {}, "usercat": {}, "maincat": {}, "subpage": {}, "nocat": {} } } </templatedata>