Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

UniWiki:Manual of Style/Linking: Difference between revisions

From EVE University Wiki
Djavin novienta (talk | contribs)
Djavin novienta (talk | contribs)
Line 127: Line 127:


====Broken section links====
====Broken section links====
A problem can arise if the title of the section is changed for any reason, since this will break any incoming section links (if this occurs, incoming links will default to the top of the linked article). The simplest way to prevent this breakage is to add an {{tl|anchor}} template just below the section title, listing the section title, and (optionally) any obsolete titles or alternative titles. This method is easy to understand, reliable, and straightforward to maintain and update. For example:<br/>
A problem can arise if the title of the section is changed for any reason, since this will break any incoming section links (if this occurs, incoming links will default to the top of the linked article).
<code><nowiki>==Section name==</nowiki></code><br/>
<code><nowiki>{{anchor|Section name}}</nowiki></code><br/>
<code><nowiki>{{anchor|Section name|Old name|Alternative name|Other name etc.}}</nowiki></code>


It is good practice to place an anchor whenever the section is expected to be the target of an incoming wikilink, either from elsewhere in the same article or from anywhere else outside the article.
To prevent this breakage, add a hidden comment to the target section such as <code><nowiki><!-- "Quark" links here --></nowiki></code> so that someone changing the title of that section can fix the incoming links.
 
An alternative, supplementary method has been to add a hidden comment to the target section such as <code><nowiki><!-- "Quark" links here --></nowiki></code> so that someone changing the title of that section can fix the incoming links.
The hidden message (<code><nowiki><!-- "Article" links here --></nowiki></code>) must be added to the target section with a break between the header and the hidden message:<br/>
The hidden message (<code><nowiki><!-- "Article" links here --></nowiki></code>) must be added to the target section with a break between the header and the hidden message:<br/>
<code><nowiki>==Target section==</nowiki></code><br/>
<code><nowiki>==Target section==</nowiki></code><br/>