跳转到内容

模板:England Labelled Map

维基百科,自由的百科全书
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

模板介绍[编辑]

使用方法[编辑]

所有参数都是可选的(可不填),如果不填参数,连结的名称就是其连结的文章的标题,比如: “东英格兰”。注意:默认的连结里,伦敦就是"伦敦"。如果想要连结到“大伦敦”,就一定要使用{{England Labelled Map|Londonprefix=大}}


英文的连结默认是"West Midlands"。在英文版中要将连结改成"West Midlands (region)",就要使用{{England Labelled Map|WMsuffix=(region)}}。 但在中文版中默认连结就是“西密德兰”,所以请不要使用该参数只是为了连入西密德兰。

参数 默认 使用方法
width= 370 整个地图的宽度,建议不要改。改小了,字会重合,难以辩认。
float= none
  • none:默认参数。地图单独成一行。在模板后的文字会在模板下方。
  • left:地图在左侧。与设置为none不同在于,在模板后的文字会在模板右方。
  • right:地图在右侧。文字在左。
ns= 每个连结连到的页面的命名空间。默认不填则为条目空间。例如::Category:就会连到分类。必须以冒号开始和结束。
prefix= Text to precede every region name when forming links. E.g. List of rivers in. If this parameter is specified, the word "the" will automatically be appended for the regions "East of England", "West Midlands" and "East Midlands".
suffix= Text to follow every region name when forming links.
Londonprefix= Text to precede "London" when forming the link labelled "London". This overrides prefix if specified. Use this to generate a link including "Greater London".
WMsuffix= Text to follow "West Midlands" when forming its link. This overrides suffix if specified. Use this to generate a link ending in "West Midlands (region)" or "West Midlands region".
UK= If non-empty, this adds 3 links, one each for Wales, Scotland and Northern Ireland.

范例[编辑]

示例连结 模板使用方法
[[East of England]] {{England Labelled Map|Londonprefix = Greater
|WMsuffix = (region)
}}
This example replicates the behaviour of earlier versions of this template, before 22 April 2012.
[[List of places in the East of England|East of England]] {{England Labelled Map|prefix = List of places in
|WMsuffix = (region)
}}
[[:Category:East of England|East of England.]] {{England Labelled Map|ns = :Category:
|WMsuffix = (region)
}}
[[:Category:People from the East of England|East of England]] {{England Labelled Map|ns = :Category:
|prefix = People from
|WMsuffix = (region)
}}

注意事项[编辑]

参见[编辑]

给模板编辑者的说明[编辑]

模板结构[编辑]

实现方法[编辑]

编辑注意[编辑]