Difference between revisions of "Template:Section link/doc"
From EVE University Wiki
(Created page with "== Usage == === Syntax (overview) === * <code><nowiki>{{section link|Article|Section}}</nowiki></code>, link to section of other article. → Example: {{section link|Missioni...") |
(Added categories.) |
||
Line 1: | Line 1: | ||
+ | <noinclude>{{main|Template:Section link}}</noinclude> | ||
== Usage == | == Usage == | ||
− | |||
=== Syntax (overview) === | === Syntax (overview) === | ||
* <code><nowiki>{{section link|Article|Section}}</nowiki></code>, link to section of other article. → Example: {{section link|Missioning 101|Class Contents}} | * <code><nowiki>{{section link|Article|Section}}</nowiki></code>, link to section of other article. → Example: {{section link|Missioning 101|Class Contents}} | ||
Line 28: | Line 28: | ||
...and renders as: | ...and renders as: | ||
:{{section link||Suppressing page name}} | :{{section link||Suppressing page name}} | ||
+ | <includeonly>[[Category:Template]]</includeonly> | ||
+ | <noinclude>[[Category:Template documentation]]</noinclude> |
Revision as of 19:15, 25 February 2017
- Main article: Template:Section link
Usage
Syntax (overview)
{{section link|Article|Section}}
, link to section of other article. → Example: Missioning 101 § Class Contents{{section link||Section}}
, for usage within the same article, leave the 2nd position empty → Example: § Class Contents
Single section
This template, {{section link}}
, is used to generate a link to a certain section of a local wiki page and render an appropriate section mark (§).
Instead of:
[[Missioning 101#Class Contents]]
...you can write:
{{section link|Missioning 101|Class Contents}}
Missioning 101 § Class Contents
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: