Help:Wikitext: Difference between revisions

3,222 bytes added ,  5 years ago
no edit summary
No edit summary
No edit summary
Line 737:
 
==Escaping wikitext==
In situations where you need to display the raw wiki markup codes on the page without rendering them, such as for demonstration purposes or when they conflict with a character you want to use on the page, you can "escape" them by using the following methods.
 
===Nowiki tags===
The <code><nowiki><nowiki></nowiki></nowiki></code> tags can be used to tell the wiki software not to convert wiki markup into HTML, instead displaying them in their raw form on the page. For example, <code><nowiki>'''Bold text'''</nowiki></code> would be rendered as <nowiki>'''Bold text'''</nowiki>, rather than as '''Bold text''' like it normally would. Anything placed between these tags will not have their wiki markup processed.
 
You can also use a single <code><nowiki><nowiki /></nowiki></code> to "break" certain interpretations. For example, placing <code><nowiki><nowiki /></nowiki></code> before a list entry (either <code>#</code> or <code>*</code>) will cause that entry to not be considered part of the list.
 
{| style="width:100%;"
!scope="col" style="width:50%;"| You type
!scope="col" style="width:50%;"| You get
|-
|style="width:50%; background:#f9f9f9; border-width:1px;border-style:solid none none solid;border-color:#ddd; padding:9px 5px 5px; vertical-align:top;"|<pre style="margin:0;border:none;padding:0; word-wrap:break-word; white-space:-moz-pre-wrap;white-space:-o-pre-wrap;white-space:-pre-wrap;white-space:pre-wrap;">
<nowiki><nowiki>[[Example]]</nowiki></nowiki>
</pre>
|style="width:50%; background:#f9f9f9; border-width:1px;border-style:solid none none solid;border-color:#ddd; padding:9px 5px 5px; vertical-align:top;"|<nowiki>[[Example]]</nowiki>
|-
|style="width:50%; background:#f9f9f9; border-width:1px;border-style:solid none none solid;border-color:#ddd; padding:9px 5px 5px; vertical-align:top;"|<pre style="margin:0;border:none;padding:0; word-wrap:break-word; white-space:-moz-pre-wrap;white-space:-o-pre-wrap;white-space:-pre-wrap;white-space:pre-wrap;">
# Ordered list
<nowiki><nowiki /></nowiki># Ordered list
</pre>
|style="width:50%; background:#f9f9f9; border-width:1px;border-style:solid none none solid;border-color:#ddd; padding:9px 5px 5px; vertical-align:top;"|
# Ordered list
<nowiki /># Ordered list
|-
|style="width:50%; background:#f9f9f9; border-width:1px;border-style:solid none none solid;border-color:#ddd; padding:9px 5px 5px; vertical-align:top;"|<pre style="margin:0;border:none;padding:0; word-wrap:break-word; white-space:-moz-pre-wrap;white-space:-o-pre-wrap;white-space:-pre-wrap;white-space:pre-wrap;">
 
</pre>
|style="width:50%; background:#f9f9f9; border-width:1px;border-style:solid none none solid;border-color:#ddd; padding:9px 5px 5px; vertical-align:top;"|
|-
|style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"|
|style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"|
|}
 
===Preformatted text block===
{| style="width:100%;"
Line 747 ⟶ 780:
</pre></nowiki>|style="margin:0;border:none;padding:0; word-wrap:break-word; white-space:-moz-pre-wrap;white-space:-o-pre-wrap;white-space:-pre-wrap;white-space:pre-wrap;"}}
|style="width:50%; background:#f9f9f9; border-width:1px;border-style:solid none none solid;border-color:#ddd; padding:9px 5px 5px; vertical-align:top;"|<pre>Wiki markup, like '''bold''', ''italics'', and [[link]]s are not followed. However, some HTML entities are kept, like &amp;.</pre>
|-
|style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"|
|style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"|
|}