Help:Formatting: Difference between revisions

→‎Links: + Links to categories, files and other language versions. Can be good to have there with the rest of the links
(+ Short summary of templates and tables + Pre-formatted text and syntax highlighting. Now 99% complete)
(→‎Links: + Links to categories, files and other language versions. Can be good to have there with the rest of the links)
Line 328: Line 328:
  <pre style="white-space: pre-wrap;">Tables can be [[Help:Tables#Sortable tables|sortable]].</pre>
  <pre style="white-space: pre-wrap;">Tables can be [[Help:Tables#Sortable tables|sortable]].</pre>
| Tables can be [[Help:Tables#Sortable tables|sortable]].
| Tables can be [[Help:Tables#Sortable tables|sortable]].
|}
=== Links to categories, files and other language versions ===
A preceding colon (''':''') vae to be used if you want to add links to categories, files or articles in another language.  Otherwisw you would add the category, image or language link to a page.  These links can be piped links just as normal links by adding a vertical stroke or pipe ('''<nowiki>|</nowiki>''').
{| class="wikitable" width="100%"
! Description
! width="30%" | What you type
! width="30%" | What you get
|-
| Linking to a category.
|
<nowiki>See [[:Category:Help]]</nowiki>
| See [[:Category:Help]]
|-
| Links to a file description page.
|
<pre style="white-space: pre-wrap;">A filing cabinet can be found [[:File:Replacement filing cabinet.png|here]].</pre>
| A filing cabinet can be found [[:File:Replacement filing cabinet.png|here]].
|-
| Another language version can also be linked to preceding colon ('''<nowiki>:</nowiki>''').
|
<pre style="white-space: pre-wrap;">See also the [[:de:Help:Übersetzen|German page]].</pre>
| See also the [[:de:Help:Übersetzen|German page]].
|}
|}