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 Add link.
m Put link end trick into own section.
Line 39: Line 39:
=== Linking ===
=== Linking ===
See also: [[mediawikiwiki:Help:Links]]
See also: [[mediawikiwiki:Help:Links]]
Links are case sensitive, with the exception of the first character.


==== Space or underscore ====
==== 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.
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.
==== Link end trick ====
{{Note box|'''Link end "trick"''' (Word-ending links)
Putting text directly connecting to the closing ]] results in that text being added to the displayed text.<br>
<code><nowiki>[[Venture]]s</nowiki></code> results in [[Venture]]s while the link still goes to Venture.<br>
<code><nowiki>[[Venture]]abunchofletters</nowiki></code> results in [[Venture]]abunchofletters while the link still goes to Venture.
For more details see: [[mediawikiwiki:Help:Links]]
|italics= no}}


==== Piped link ====
==== Piped link ====
Line 59: Line 70:
<code><nowiki>[[Venture]]</nowiki></code> results in [[Venture]]<br>
<code><nowiki>[[Venture]]</nowiki></code> results in [[Venture]]<br>
As the first letter is not case sensitive <code><nowiki>[[venture]]</nowiki></code> also results in a valid link [[venture]]
As the first letter is not case sensitive <code><nowiki>[[venture]]</nowiki></code> also results in a valid link [[venture]]
{{Note box|'''Link end "trick"''' (Word-ending links)
Putting text directly connecting to the closing ]] results in that text being added to the displayed text.<br>
<code><nowiki>[[Venture]]s</nowiki></code> results in [[Venture]]s while the link still goes to Venture.<br>
<code><nowiki>[[Venture]]abunchofletters</nowiki></code> results in [[Venture]]abunchofletters while the link still goes to Venture.
For more details see: [[mediawikiwiki:Help:Links]]
|italics= no}}


:; Namespace and Page name : To go to a page outside the main namespace the namespace needs to be added to the link
:; Namespace and Page name : To go to a page outside the main namespace the namespace needs to be added to the link
Line 123: Line 126:
* [https://wiki.eveuniversity.org/api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml List of namespaces (In raw XML)]
* [https://wiki.eveuniversity.org/api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml List of namespaces (In raw XML)]


==== Interwiki link====
==== Interwiki link ====
Interwiki links are internal-style links to other websites using an "interwiki prefix". For a list of valid interwiki prefixes see [[Special:interwiki]].
Interwiki links are internal-style links to other websites using an "interwiki prefix". For a list of valid interwiki prefixes see [[Special:interwiki]].


Line 132: Line 135:
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.


==== External link====
==== External link ====
External links are rendered different from internal and interwiki links. On the UNI Wiki the links have a marker at the end. The exact marker depends on if the link is HTTP of HTTPS.
External links are rendered different from internal and interwiki links. On the UNI Wiki the links have a marker at the end. The exact marker depends on if the link is HTTP of HTTPS.