APL Wiki:Formatting: Difference between revisions

Jump to navigation Jump to search
1,162 bytes added ,  08:46, 6 May 2020
Links to Wikipedia
(DISPLAYTITLE instead of note)
(Links to Wikipedia)
Line 5: Line 5:


However, please familiarise yourself with the below APL Wiki-specific guidelines before making any major edits.
However, please familiarise yourself with the below APL Wiki-specific guidelines before making any major edits.
== Links to Wikipedia ==
Linking to a [[wikipedia:Wikipedia|Wikipedia]] page is more like an internal link than an external one: both technically, because it uses MediaWiki just like APLWiki, and conceptually, because Wikipedia also has encyclopedic information on a variety of topics. And in fact Wikipedia links are supported by our [https://www.mediawiki.org/wiki/Help:Links#Internal_links internal link] syntax. This form is preferred because it is displayed with a "W" as an indication to the reader. Write an internal link as it would appear on Wikipedia, but put <code>wikipedia:</code> in front.
A Wikipedia link always needs to be given displayed text with <code>|</code>, because otherwise it will appear with that <code>wikipedia:</code> in the link, a very cluttered display! However, when editing there is a shortcut that can often be used. Writing the <code>|</code> character with no text afterwards will strip <code>wikipedia:</code> and any trailing material in parentheses from the display, so that for example <code><nowiki>[[wikipedia:APL (programming language)|]]</nowiki></code> displays as [[wikipedia:APL (programming language)|APL]].
== Mentioning subjects that have their own page ==
== Mentioning subjects that have their own page ==
It is fine for a page to have a section about a subject that also has its own page. When that happens, begin the section with <code><nowiki>{{Main|subject}}</nowiki></code> where <code>subject</code> is the target page title. Don't include double brackets (as a page link) — it is done for you.
It is fine for a page to have a section about a subject that also has its own page. When that happens, begin the section with <code><nowiki>{{Main|subject}}</nowiki></code> where <code>subject</code> is the target page title. Don't include double brackets (as a page link) — it is done for you.

Navigation menu