Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Advertisement
这是文档页面,它应该被放置到Template:Section link。查看Template:Documentation以获取更多信息。
快捷方式
slink

Usage

This template is intended primarily for use in hatnotes. It should not be used in running body text.

Syntax (overview)

  • {{section link|Article|Section}} or {{section link|Article#Section}}, link to section of other article. → Example: 僵尸§掉落物
  • {{section link|Article|Section|nopage=y}}, link to section of other article, only displaying the section's title → Example: 僵尸§掉落物
  • {{section link||Section}}, for usage within the same article, supply an empty first parameter → Example: §掉落物

Single section

This template, {{section link}}, or its shortcut, {{slink}}, is used to generate a link to a certain section of a local wiki page and render an appropriate section mark (§).

Instead of:

[[僵尸#掉落物]]

僵尸#掉落物

...you can write:

{{section link|僵尸|掉落物}}

僵尸§掉落物

...or

{{section link|僵尸#掉落物}}

僵尸#掉落物

Multiple sections

This template may generate consecutive links to several sections of the same page. You can write: 僵尸§掉落物

僵尸§掉落物

Suppressing page name

Sometimes the page name needs not to appear, e.g. to avoid redundancy and wordiness. For the page on which the template is used, not specifying a page name creates a section link only. The following:

{{Section link||Suppressing page name}}

...is the equivalent of:

[[#Suppressing page name|§ Suppressing page name]]

...and renders as:

§Suppressing page name

For other pages, Template:Parameter can be used to suppress the page name. This can be used when the page name is clear from context, such as on talk pages referring to the article being discussed.


Comparison of displayed results:

Styling page name

For some page names (e.g., titles of films or short stories) we're always supposed to present the core part of the page's name (without any parenthetic disambiguation) in italics, quotation marks, or some other markup (per wikipedia:MOS:TITLES). The Template:Parameter parameter can be used for this purpose:

  • {{section link|Ghast|Spawning}}Ghast§Spawning



Advertisement