Changes

no edit summary
Line 3: Line 3:  
In [[MP:wikitext|wikitext]], links are enclosed in doubled square brackets like this:
 
In [[MP:wikitext|wikitext]], links are enclosed in doubled square brackets like this:
 
* <code><nowiki>[[1234]]</nowiki></code> is seen as "[[1234]]" in text and links to page "[[1234]]".
 
* <code><nowiki>[[1234]]</nowiki></code> is seen as "[[1234]]" in text and links to page "[[1234]]".
Use a [[vertical bar]] "|" (the "pipe" symbol) to create a link while labelling it with a different name on the original page. The first term inside the brackets is the page you would be taken to (the link target), while anything you type after the vertical bar is what that link looks like on the original page (the link label). Here are some examples:
+
Use a vertical bar "|" (the "pipe" symbol) to create a link while labelling it with a different name on the original page. The first term inside the brackets is the page you would be taken to (the link target), while anything you type after the vertical bar is what that link looks like on the original page (the link label). Here are some examples:
 
* <code><nowiki>[[a|b]]</nowiki></code> is labelled "[[b]]" on this page but links to page "[[a]]". Example: [[a|b]].
 
* <code><nowiki>[[a|b]]</nowiki></code> is labelled "[[b]]" on this page but links to page "[[a]]". Example: [[a|b]].
 
* <code><nowiki>[[a]]b</nowiki></code> gives [[a]]b. So does <code><nowiki>[[a|ab]]</nowiki></code>: [[a|ab]]. The code <code><nowiki>[[a|b]]c</nowiki></code> gives [[a|b]]c, just as <code><nowiki>[[a|bc]]</nowiki></code> does. However, all four of these examples will link to page "[[a]]".
 
* <code><nowiki>[[a]]b</nowiki></code> gives [[a]]b. So does <code><nowiki>[[a|ab]]</nowiki></code>: [[a|ab]]. The code <code><nowiki>[[a|b]]c</nowiki></code> gives [[a|b]]c, just as <code><nowiki>[[a|bc]]</nowiki></code> does. However, all four of these examples will link to page "[[a]]".
Editor, Editors, USER, admin, Bureaucrats, Check users, dev, editor, Interface administrators, lookupuser, oversight, push-subscription-manager, Suppressors, Administrators, translator, widgeteditor
17,894

edits