Help:Wikitext: Difference between revisions

Content deleted Content added
 
(5 intermediate revisions by the same user not shown)
Line 1,878:
{{anchor|NOWIKI}}
{{redirect|wikipedia:WP:NOWIKI|the essay about the name "Wiki"|Wikipedia:Don't abbreviate "Wikipedia" as "Wiki"!}}
{{shortcut|H:NOWIKI|wikipedia:WP:NOWIKI}}
 
In order for the software to interpret wiki markup, its parser first scans the page. When it sees its nowiki tags
:{{tag|nowiki}} ([[Wikipedia:escape character|escape]]s all contained wiki markup), and
:{{tag|nowiki|s}} (escapes the interpretations it is designed to "break"),
it escapes its wikicode, so editors can document its markup ''using'' its markup.
Line 1,901 ⟶ 1,900:
<nowiki /># Ordered list
|<nowiki>A [[micro-]]second.</nowiki>
|A [[Wikipedia:micro-|micro-]]second.
|<nowiki>A [[micro-]]<nowiki />second.</nowiki>
|A [[Wikipedia:micro-|micro-]]<nowiki />second.
|<nowiki>a<nowiki>
 
Line 1,926 ⟶ 1,925:
:{{ ''pagename'' <nowiki />| {{ ''pagename'' }<nowiki />} }}
 
Unless you use the two "balanced" nowiki tags, troubleshooting [[Wikipedia:help:strip markers|strip marker]] errors and template parameter-handling inconsistencies is a risk. Also, a rendering error may arise when two <kbd>[<nowiki />[...]]</kbd> square brackets are on the same line, or two <kbd>{<nowiki />{...}}</kbd> curly brackets are in the same section, but only when the two have the nowiki markup placed inconsistently.
 
====Displaying wikilinks====
Line 1,997 ⟶ 1,996:
 
====Displaying magic words====
{{Further|Wikipedia:Help:Magic words|Wikipedia:Help:Parser function}}
 
For input '''parameters''', {{{1}}}, {{{2}}}, just write them out, unless they have a default (which goes behind their pipe):
Line 2,133 ⟶ 2,132:
 
==Invisible text (comments)==
{{see also|Wikipedia:Help:Hidden text|l1=Hidden text}}
 
It's uncommon{{spaced ndash}}but on occasion acceptable for notes to other editors{{spaced ndash}}to add a hidden comment within the text of an article. These comments are visible only when editing or viewing the source of a page. Most comments should go on the appropriate [[Wikipedia:Talk page|Talk page]]. <!-- This is an example of text that is not visible except in "edit" mode. --> The format is to surround the hidden text with "<code>&lt;!--</code>" and "<code>--&gt;</code>" and may cover several lines, e.g.:
Line 2,243 ⟶ 2,242:
{{main|Help:HTML in wikitext}}
 
Many [[Wikipedia:HTML]] tags can be used in wiki markup. You can check your HTML by using [[Wikipedia:Help:Markup validation|markup validation]].
 
==Notes==