Help:Editing: Difference between revisions
No edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 119: | Line 119: | ||
Some HTML-Tags are allowed in MediaWiki, for example ttnowikicode/nowiki/tt, ttnowikidiv/nowiki/tt, ttnowikispan/nowiki/tt and ttnowikifont/nowiki/tt. | Some HTML-Tags are allowed in MediaWiki, for example ttnowikicode/nowiki/tt, ttnowikidiv/nowiki/tt, ttnowikispan/nowiki/tt and ttnowikifont/nowiki/tt. | ||
'''Admin tip''': If you trust your users you can allow full HTML by setting code$wgRawHtml = true;/code in LocalSettings.php. Switch off HTML completely with <code>$wgUserHtml = false;</code>. | |||
Line 130: | Line 130: | ||
== External Links == | == External Links == | ||
{{meta|Help:Editing}} | {{meta|Help:Editing}} | ||
__NOTOC__ | __NOTOC__ |
Latest revision as of 20:45, 20 December 2023
From http://www.mediawiki.org/wiki/Help:Formatting
You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in italic, you include it in two single quotes like ttnowikithis/nowiki/tt
Text formatting markup
Description | You type | You get |
---|---|---|
applies anywhere | ||
Italic text | ttnowikiitalic/nowiki/tt | italic |
Bold text | ttnowikibold/nowiki/tt | bold |
Bold and italic | ttnowikibold italic/nowiki/tt | bold italic |
Escape wiki markup | ttnowikinowikino markup/nowiki/nowiki/tt | nowikino markup/nowiki |
only at the beginning of the line | ||
Headings ofbr /
different sizes |
ttnowiki==level 1==/nowiki/ttbr / ttnowiki===level 2===/nowiki/ttbr / ttnowiki====level 3====/nowiki/ttbr / ttnowiki=====level 4=====/nowiki/tt |
Level 1Level 2Level 3Level 4 |
Horizontal rule |
ttnowiki----/nowiki/tt |
|
Bullet list |
|
|
Numbered list |
|
|
Mixture of bulletedbr / and numbered lists |
|
|
Definition list |
|
|
Preformatted text |
nbsp;nbsp;preformatted text is done withbr / nbsp;nbsp;a space at thebr / nbsp;nbsp;beginning of the linebr / |
preformatted text is done with a space at the beginning of the line |
Paragraphs
Mediawiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a newline with the HTML tag ttnowikibrnbsp;//nowiki/tt.
HTML
Some HTML-Tags are allowed in MediaWiki, for example ttnowikicode/nowiki/tt, ttnowikidiv/nowiki/tt, ttnowikispan/nowiki/tt and ttnowikifont/nowiki/tt.
Admin tip: If you trust your users you can allow full HTML by setting code$wgRawHtml = true;/code in LocalSettings.php. Switch off HTML completely with $wgUserHtml = false;
.
More advanced formatting
Beyond the basic text formatting markup shown above, there are some more advanced formatting tricks:
External Links
MetaWiki: Help:Editing |