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.

User:MiamiVolts/test: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>MiamiVolts
expand examples
imported>MiamiVolts
m Usage: expand
Line 17: Line 17:
<span class="plainlinks">[{{SERVER}}{{localurl:{{PAGENAME}}|action=edit&section=0}} {{SERVER}}{{localurl:{{PAGENAME}}|action=edit&section=0}}]</span>
<span class="plainlinks">[{{SERVER}}{{localurl:{{PAGENAME}}|action=edit&section=0}} {{SERVER}}{{localurl:{{PAGENAME}}|action=edit&section=0}}]</span>


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


===Syntax===
===Syntax===
Line 30: Line 30:
}}
}}
</pre>
</pre>

==Notes==
==Notes==
* I'm using this subpage to test templates before applying them in mainspace.
* I'm using this subpage to test templates before applying them in mainspace.

Revision as of 00:52, 27 December 2008

[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=MiamiVolts/test&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 -->
}}

Notes

  • I'm using this subpage to test templates before applying them in mainspace.