Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

General usage and invocation syntax: Difference between revisions

Fix typo I missed
(Add links to text where users might not want to manually search for the parameter or function being referred to.)
(Fix typo I missed)
Line 61:
;Syntax features
* To use wiki characters as arguments, escape them.<!--need link to what this means-->
** It is possible to use the [[mw:Help:Magic_words#Other|Magic Word]] <code><nowiki>{{!}}</nowiki></code> which 'hides' the pipe from the MediaWiki parser, ensuring that it is [[mw:Help:Extension:ParserFunctions#Escaping pipe characters in tables|not considered until after]] other items have been expanded.
** With DPL it is also possible to use the symbol <code>¦</code> instead of <code>|</code>; this is very intuitive, and maybe it could be adopted by MediaWiki in general...but be <u>careful</u>: it must be inserted by copy-and-paste from here (or from an HTML symbol or extended ASCII table like Windows' ''Character Map'') as normally a keyboard will not have it available (even worse: on some keyboards the standard pipe character is printed in a way that it looks more like the "broken pipe").
* The text can (but needs not) be written in one line of text, parameters are separated by pipe characters.
* What was said before regarding explicit line breaks also holds true for parser function syntax, i.e., the special symbols <code>\n</code> or <code>¶</code> must be used to insert an explicit linefeed character into the wiki output stream if wiki symbols are used which must stand at the beginning of a line.
 
Note: The pipe character, which is used to define a logical OR for the two categories, must be represented as a [[mw:Help:Magic words#Other|Magic Word]] <code><nowiki>{{!}}</nowiki></code> which 'hides' the pipe from the MediaWiki parser, ensuring that it is not considered until after other items have been expanded. The second example shows that the <code>¦</code> character acts as an alternative to this somewhat awkward notation.
 
The second example is not literally equivalent to the first one, as there is an additional pipe character before the first parameter. Technically, this creates an additional empty parameter, but as empty parameters are silently ignored by DPL it makes no difference.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.