模板:Information page
(重新導向自Template:Infopage)
| File:Information icon4.svg |
File:Test Template Info-Icon - Version (2).svg 模板文件[檢視] [編輯] [歷史] [清除快取]
這是Category:維基百科資訊頁的頁面橫幅模板。 它可以適當地放在管理頁面(非條目)的頂部。
分類[編輯]
本模板會把使用該模板的頁面添加到分類中。對於使用該模板的頁面:
- 如果該頁面的命名空間為「維基百科:」("Wikipedia:")或「說明:」("Help:"),那麼這個頁面會被添加到Category:維基百科資訊頁。
- 如果該頁面的命名空間為「用戶:」("User:"),那麼這個頁面會被添加到Category:維基用戶論述。
如果使用該模板的頁面是一個草稿,請在草稿完成前使用參數|nocat=,以避免草稿頁面被添加到以上分類。
如果使用該模板的頁面不屬於上面的命名空間,該頁面應當不會被自動分類。但在有些時候,它會被錯誤地分類到一些頁面中。
使用[編輯]
這個模板可以像這樣使用:
{{Information page}}
但是也可以使用至多三個捷徑作為參數,並形成一個小的捷徑框。如下:
{{Information page|WP:SHORT|WP:LONG}}
其顯示效果如下:
| File:Information icon4.svg |
如果你使用了超過兩個捷徑參數,會使捷徑參數框變得太高,這看起來不好。 在這種情況下最好在本模板下方直接使用{{shortcut}},如下所示:
可選參數[編輯]
|1=或|sc1=、|shortcut1=、|shortcut=,或第一個未命名的參數 – First shortcut. Don't include[[...]]linking brackets in this or other shortcut parameters.|2=or|sc2=,|shortcut2=, or first unnamed parameter – Second shortcut|3=or|sc3=,|shortcut3=, or first unnamed parameter – Third shortcut (deprecated; please use separate Template:Shortcut for three or more)|interprets=or|page=or|pages=– Specify name of page (policy, process, etc.) that this essay provides advice about. For a single page, it is not necessary to include[[...]]linking brackets;. This will replace the wording "Wikipedia's norms and practices". If more than one page and/or any notes are intended, links must be manually coded, e.g.:|interprets=[[Wikipedia:Verifiability]] policy and the [[Wikipedia:Identifying reliable sources]] guideline|sort-by=– Specify a sort key for the category. For example, if the how-to page is Wikipedia:Producing maps with xplanet and you want it category-sorted to appear under "X", use|sort-by=Xplanet, Producing maps with. This has no effect on the user essays category.|category=– Specify a complete wikilink (i.e, do include the[[...]]linking brackets) to one or more categories to override the default Category:Wikipedia information pages. May include a category sort; example:[[Category:WikiProject Underwater Basketweaving|Article structure advice]]This parameter does not replace the Category:User essays categorization for pages in the "User:" namespace, but can be used to add them manually to Category:Wikipedia information pages, in addition to the automatic user category.|nocat=yor|demo=y– Bypass all categorization, when the template is used for demo purposes, e.g. in template documentation, on talk pages, etc.|style=– Pass arbitrary CSS to the Template:Ombox base template that this template uses.
TemplateData[編輯]
|
Information page模板資料 <templatedata> { "description": "",
"params": {
"page": {
"label": "页面名称",
"type": "wiki-page-name",
"description": "Guideline or other page being interpreted"
},
"shortcut1" : {
"label": "快捷方式1",
"type": "wiki-page-name",
"description": "到此页面的快捷方式"
},
"shortcut2" : {
"label": "快捷方式2",
"type": "wiki-page-name",
"description": "到此页面的快捷方式"
},
"shortcut3" : {
"label": "快捷方式3",
"type": "wiki-page-name",
"description": "到此页面的快捷方式"
},
"nocat" : {
"type": "string",
"description": "填入任何值都会阻止添加项目分类"
}
}
} </templatedata> |
See also[編輯]
{{Wikipedia how-to}}– the banner template for pages that are more directly instructional than just informational like H:EDIT.{{Essay|interprets=}}– the banner template for pages that are more opinionated then instructional or technical; there are several parameters and variations.{{Supplement|interprets=}}– to tag a well-established page that adds something to a policy or guideline, to make up for a deficiency, and when it is referenced in the guideline or policy like WP:BRD.- Wikipedia:Template messages/Project namespace – for other "Wikipedia:"-namespace banner templates.