This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Template:Edit-section-number

From Heroes Wiki
Jump to navigation Jump to search

[edit] Examples:

This text appears before the first section. The edit link to the right of this text allows for editing of this text.

[edit] The edit link to the right of this text applies to the syntax section.

[edit] The edit link to the right of this text applies to the zeroth section of Heroes Wiki:Sandbox.

Usage

This template is adapted from Template:Edit-first-section on Wikipedia's Meta-Wiki.

This template defaults to editing the zeroth section. On a page structured with sections, there can be text and other page elements before the first section. To edit this part of the page, one usually has to edit the whole page. This template defaults to creating an edit link for the part before the first section, also called section 0.

The section 0 link is:
https://heroeswiki.ddns.net/index.php?title=Edit-section-number&action=edit&section=0

It is also possible to edit other sections by specifying the number and other pages by specifying them as the first argument. Also, if nolinks is specified and true, normal section links will also be suppressed.

Syntax

Add {{Edit-section-number}} to the page where the edit link should appear (on the right hand side, as usual). Typically, this is on the first line of the page.

or:

{{Edit-section-number
|<!-- full name of page where edit link should link; defaults to the viewed page -->
|number=<!-- number of link to appear; defaults to 0 -->
|nolinks=<!-- remove all normal edit links from the applied page if true -->
}}