2023년 3월 3일 오후 9:54
Overview
Available character formatting in WikiText includes:
Wikitext | Button | Shortcut | Rendered Output |
Double single quotes are used for ''bold text'' | ctrl-B | Double single quotes are used for bold text | |
Double slashes are used for //italic text// | ctrl-I | Double slashes are used for italic text | |
Double underscores are used for __underlined text__ | ctrl-U | Double underscores are used for underlined text | |
Double circumflex accents are used for ^^superscripted^^ text | ctrl-shift-P | Double circumflex accents are used for superscripted text | |
Double commas are used for ,,subscripted,, text | ctrl-shift-B | Double commas are used for subscripted text | |
Double tilde signs are used for ~~strikethrough~~ text | ctrl-T | Double tilde signs are used for | |
Single backticks are used for `code` | ctrl-M | Single backticks are used for code | |
Double @ characters are used to create a @@highlight@@ | - | - | Double @ characters are used to create a highlight |
See Styles and Classes in WikiText for more formatting options
Embedded Backticks
Wikitext | Rendered Output |
``double backticks allows `embedded` backticks`` | double backticks allows `embedded` backticks |
Keyboard Shortcuts
The full list of KeyboardShortcuts can be found in the $:/ControlPanel -> Keyboard Shortcuts tab.
Semantic Information
Wikitext | Resulting HTML Code |
Double single quotes are used for ''bold text'' | Double single quotes are used for <strong>bold text</strong> |
Double slashes are used for //italic text// | Double slashes are used for <em>italic text</em> |
Double underscores are used for __underlined text__ | Double underscores are used for <u>underlined text<u> |
Double circumflex accents are used for ^^superscripted^^ text | Double circumflex accents are used for <sup>superscripted</sup> text |
Double commas are used for ,,subscripted,, text | Double commas are used for <sub>subscripted</sub> text |
Double tilde signs are used for ~~strikethrough~~ text | Double tilde signs are used for <strike>strikethrough</strike> text |
Single backticks are used for `code` | Single backticks are used for <code>code</code> |
Double @ characters are used to create a @@highlight@@ | Double @ characters are used to create a <span class="tc-inline-style">highlighted</span> |
Bold vs Strong
In TW we use the term "bold" instead of "strong" because most users are used to it. ... The rendering process converts our "bold text" into the STRONG HTML element.
The<strong>
element is for content that is of greater importance, while the<b>
element is used to draw attention to text without indicating that it's more important.
Underline vs. Underscore
Use underline to describe text formatting that puts a line under the characters. Use underscore to refer to the underscore character ( _ ).
Emphasis vs Italics
The<em>
element represents stress emphasis of its contents, while the<i>
element represents text that is set off from the normal prose, such as a foreign word, fictional character thoughts, or when the text refers to the definition of a word instead of representing its semantic meaning. (The title of a work, such as the name of a book or movie, should use<cite>
.)