Minecraft Wiki

Minecraft Wiki ภาษาไทยกำลังจะย้ายออกจาก Fandom ตามภาษาอังกฤษในเร็ว ๆ นี้ ดูที่หน้านี้และ Discord สำหรับข้อมูลเพิ่มเติม

READ MORE

Minecraft Wiki
Advertisement
เว็บย่อ
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: Zombie § Drops
  • {{section link|Article|Section|nopage=y}}, link to section of other article, only displaying the section's title → Example: § Drops
  • {{section link||Section}}, for usage within the same article, supply an empty first parameter → Example: § Drops

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:

[[Zombie#Drops]]

Zombie#Drops

...you can write:

{{section link|Zombie|Drops}}

Zombie § Drops

...or

{{section link|Zombie#Drops}}

Zombie § Drops

Multiple sections[]

This template may generate consecutive links to several sections of the same page. You can write: Zombie §§ Drops, Behaivor, and History

Zombie §§ Drops, Behaivor, and History

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, |nopage=y 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:

  • {{section link|WP:Manual of Style|Quotations}}WP:Manual of Style § Quotations
  • {{section link|WP:Manual of Style|Quotations|nopage=y}}§ Quotations
  • {{section link|WP:Manual of Style|Quotations|Quotation marks|Commas}} → WP:Manual of Style §§ Quotations, Quotation marks, and Commas
  • {{section link|WP:Manual of Style|Quotations|Quotation marks|Commas|nopage=y}} → §§ Quotations, Quotation marks, and Commas

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 |display= parameter can be used for this purpose:

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


Advertisement