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

User:Evon R'al/Wiki coding notes: Difference between revisions

From EVE University Wiki
m Formula presentation: Add newline and align.
m Minor edit, no actual changes.
Line 39: Line 39:
=== Linking ===
=== Linking ===
See also: [[mediawikiwiki:Help:Links]]
See also: [[mediawikiwiki:Help:Links]]
==== Space or underscore ====
The wiki software automatically changes spaces to underscores (_) in internal links (Need to check for inter wiki links). So <nowiki>[[Relic_and_data_sites]]</nowiki> and <nowiki>[[Relic and data sites]]</nowiki> are equivalent. Eliminating the need to change the underscore version into a piped link for nice readability, providing a "cleaner" source.


==== Piped link ====
==== Piped link ====
A piped link is an internal or [[#interwiki link|interwiki]] link where the link target and link label are both specified. Piped links should be used sparingly, if a wiki redirect is available it should be used instead.
A piped link is an internal or [[#interwiki link|interwiki]] link where the link target and link label are both specified. Piped links should be used sparingly, if a wiki redirect is available it should be used instead.


==== Space or underscore ====
==== Internal link ====
The wiki software automatically changes spaces to underscores (_) in internal links (Need to check for inter wiki links). So [[Relic_and_data_sites]] and [[Relic and data sites]] are equivalent. Eliminating the need to change the underscore version into a piped link for nice readability, providing a "cleaner" source.
 
==== Internal link====
Internal (or intrawiki) links check the existence of the target page. If the page doesn't exist, is misspelled or the case is incorrect the link turns [[redlink|red]].
Internal (or intrawiki) links check the existence of the target page. If the page doesn't exist, is misspelled or the case is incorrect the link turns [[redlink|red]].


Line 128: Line 128:
Interwiki links are made by using the interwiki prefix as the first parameter in an internal link.
Interwiki links are made by using the interwiki prefix as the first parameter in an internal link.


A intrawiki link to MediaWiki's help page about links looks like <code><nowiki>[[Mediawikiwiki:Help:Links]]</nowiki></code> which gives [[Mediawikiwiki:Help:Links]]
A interwiki link to MediaWiki's help page about links looks like <code><nowiki>[[Mediawikiwiki:Help:Links]]</nowiki></code> which gives [[Mediawikiwiki:Help:Links]]


The link end and pipe tricks described at internal links work for interwiki links just as-well. And use of a label to change the presentation of a link also works.
The link end and pipe tricks described at internal links work for interwiki links just as-well. And use of a label to change the presentation of a link also works.