模板:River item box/doc
此页面是Template:River item box的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
- For discussion and queries, see Template talk: River item box.
This template is a self-reference and so is part of the Wikipedia project rather than the encyclopaedic content.
用法
本模版用于河流的特征,包含桥梁、岛屿、水闸等,具体例子可参见examples。
- 基本用法
{{River item box |River = # |upstream = # |downstream = # }}
- 显示有“#”的项目是必须要有的。
- 高级用法
{{River item box |River = # |upstream = # |downstream = # |type = any text (defaults to crossing) |thisis = any test (defaults to {{PAGENAME}}) |upsub = |downsub = |location = |table = see extended table below |upstream2 = see River junction below |upsub2 = see River junction below }}
- 显示有“#” 的项目是必须要有的
- |River 需要首字大写以便与其它模版兼容
- |type 和 |thisis have the defaults shown
- |location 仅用于英格兰
Using the correct template
The template is designed as a one line replacement for Template:River bridge start and Template:River item line. It should also make the following redundant: Template:River island start, Template:River bridge start, Template:River bridge line, Template:River item line X.
Extended table
It is possible to generate a block of these templates using the option |table =. The first call uses |table = start; the middle ones |table = middle; and the final one |table = end. Beware: the alignment in the third column can be disrupted unless the templates are linked together with a comment e.g. <!-- --> - See examples.
River junction
Where there is a river junction upstream the options |upstream2 = and |upsub2 = can be used. See examples.
真实条目中的例子
放置位置
本模版可放置于条目的末尾。