模板:WikiProject Ships/doc

维基百科,自由的百科全书
跳转到导航 跳转到搜索

用法[编辑]

{{WikiProject Ships}}模板必须加入(而非引用替换)到与本专题相关的每个讨论页。本模板并不需要任何附加参数,但亦可为本横幅提供众多可选功能。所有使用本模板的页面均须包含classimportance字段,以将页面归类至应用程序专题的相应子分类。

精简版
{{WikiProject Ships
|class = 
|importance =
}}
完整版
{{WikiProject Ships
|class = 
|importance = 
|attention = 
|needs-infobox = 
|ref =
|photo =
|problem =
}}

参数详解[编辑]

  • importance – 条目重要度的评级。
    • Top – 用于极高重要度条目
    • High – 用于高重要度条目
    • Mid – 用于中重要度条目
    • Low – 用于低重要度条目
    • Bottom – 用于极低重要度条目
    • No – 用于无重要度条目
    • NA – 用于不适用重要度的非条目
其他参数
  • attention - "yes":如果条目需要立即受到关注(|attention=yes)
  • needs-infobox - "yes":如果条目需要加入信息框(|needs-infobox=yes)
  • ref - "yes":如果条目需要更多来源(|ref=yes)
  • photo - "yes":如果条目需要添加图片(|photo=yes)
  • problem - "yes":如果条目需要解决编辑上的问题(|problem=yes)
  • Navy - "yes":如果条目与海军有关(|Navy=yes)

为避免讨论页冗长,使用时请将模板中未用到的参数移除。

TemplateData[编辑]

<templatedata>{ "description": "船舶专题条目横幅", "format": "inline", "paramOrder": [ "class", "attention", "needs-infobox", "ref", "photo", "problem", "Navy" ], "params": { "class": { "label": "专题品质评级", "example": "Stub", "type": "line", "suggested": true, "description": "船舶专题的品质评级,可选: ['FA', 'FL', 'A', 'GA', 'B', 'C', 'Start', 'Stub', 'List', 'Category', 'Disambig', 'File', 'Portal', Project', 'Redirect', 'Template', 'NA']", "suggestedvalues": [ "FA", "FL", "A", "GA", "B", "C", "Start", "Stub", "List", "Category", "Disambig", "File", "Portal", "Project", "Redirect", "Template", "NA" ] }, "attention": { "label": "需要关注?", "description": "条目是否需要关注?需要则填 ['yes']", "type": "boolean", "autovalue": "yes" }, "needs-infobox": { "label": "需要信息框?", "description": "条目是否需要信息框?需要则填 ['yes']", "type": "boolean", "autovalue": "yes" }, "ref": { "label": "需要信息框?", "description": "条目是否补充更多来源?需要则填 ['yes']", "type": "boolean", "autovalue": "yes" }, "photo": { "label": "需要照片?", "description": "条目是否需要照片?需要则填 ['yes']", "type": "boolean", "autovalue": "yes" }, "problem": { "label": "需要解决编辑问题?", "description": "条目是否需要解决编辑上的问题?需要则填 ['yes']", "type": "boolean", "autovalue": "yes" }, "Navy": { "label": "海军工作组", "description": "若为海军工作组条目则填 ['yes']", "type": "boolean", "autovalue": "yes" } } }</templatedata>