Wiki Markup Reference: Difference between revisions
Line 133: | Line 133: | ||
<nowiki>| __TOC__</nowiki><br> | <nowiki>| __TOC__</nowiki><br> | ||
<nowiki>|}</nowiki> | <nowiki>|}</nowiki> | ||
| Place the table of contents into a floating table on the right side, in other words the table of contents appears the same, just to the right side with text flowing normally alongside on the left. | | Place the table of contents into a floating table on the right side, in other words the table of contents appears the same, just to the right side with text flowing normally alongside on the left. You can adjust the alignment, cellpadding (whitespace around the ToC), color, etc if desired. For simple usage, you can use [[Template:RightToC|<nowiki>{{RightToC}}</nowiki>]]. | ||
|- | |- | ||
| <nowiki>__NOEDITSECTION__</nowiki> | | <nowiki>__NOEDITSECTION__</nowiki> |
Revision as of 16:41, 2 January 2009
If you find new markup that you need to use, please add it for future reference.
Text
Bold Text
Italics Text
Bold Italics Text
Big Text
Small Text
Stricken Text
Underlined Text
SuperScript
SubScript
small caps
Red Text
Green Text
Links
External Links
Internal Links
Lists
Unordered Lists
- Item A
- Item B
- Item C
Numbered Lists
- First Item
- Second Item
- Third Item
Nested Lists
Putting an unordered list within a numbered list:
- Numbered List 1
- Numbered List 2
- Unordered List A
- Unordered List B
- Numbered List 3
Indentation, Alignment, and Spacing
- Single Indentation
- Double Indentation
- Triple Indentation
- Definition List Term
- Definition List Definition
Special Wiki Code
Signing Comments
It's helpful to sign comments made on disscussion/talk pages so later on we know who left the comment and when it was made. Clicking the Signature button on the edit toolbar will automatically insert wiki code that will be translated into a link to your user page and the current time when you click the Save Page button. Alternatively you can insert the code yourself:
--~~~~
What Links Here
You can create a hard link to the Whatlinkshere function. Use either a particular article name, or you can use a variable. The primary benefit to using a whatlinkshere function as opposed to just listing items, is in the future when more items are added to the wiki, a whatlinkshere will automatically reflect the new additions. A static list will depend on being correctly updated, something that may or may not happen.
[[:Special:Whatlinkshere/Pack (White)|Vendors that sell White Packs.]] [[:Special:Whatlinkshere/{{PAGENAME}}|Variable]]
Search
You can create a wiki link to a search for a particular term or variable. For example to create a link that searches for the term Geomancy:
[[:Special:Search/Geomancy|Geomancy]]
For more than one word, separate terms with +, such as:
[[:Special:Search/Fire+Cold]]
You can also use variables such as:
[[:Special:Search/{{PAGENAME}}|Article]]
Note that a search term that exactly matches the name of an existing article will resolve to that article, not a search.
Magic Words
Word | Description |
---|---|
__NOTOC__ | Hides ToC on the current page. |
__FORCETOC__ | Forces the table of contents to appear. |
__TOC__ | Places a ToC here (overriding any __NOTOC__). Multiple ToCs are no longer supported. If __TOC__ is used multiple times, only the first occurrence causes a ToC to appear. |
{|align=right cellpadding=10 |
Place the table of contents into a floating table on the right side, in other words the table of contents appears the same, just to the right side with text flowing normally alongside on the left. You can adjust the alignment, cellpadding (whitespace around the ToC), color, etc if desired. For simple usage, you can use {{RightToC}}. |
__NOEDITSECTION__ | Hides the edit links beside headings. Also, will no longer automatically edit only one section at a time when double- or right-clicking a heading (if you have that feature enabled in your preferences) |
__NEWSECTIONLINK__ | [MW1.7+] Gives a "+"-link next to the edit-tab to make a new section on a non-talk page (post-a-comment feature). |
__NOCONTENTCONVERT__ __NOCC__ |
Don't perform the content language conversion (character and phase) in article display; for example, Chinese zh with zh_cn, zh_tw, zh_sg, zh_hk. |
__NOGALLERY__ | [MW1.7+] This magic word allows images in category pages to be displayed as inline links instead of gallery. |
__NOTITLECONVERT__ __NOTC__ |
Like __NOCC__ but affecting article title only. |
__END__ | Allows for trailing whitespace to be included in the page save (does not seem to work anymore). |
__START__ | This magic word has no effect but an ID in MagicWord.php (MAG_START). |
__HIDDENCAT__ | When placed anywhere on a category page, this magic word causes that category not to appear in the horizontal box near the bottom of every member page. See Help:Category#Hidden_categories for further detail. |
Variables
{{PAGENAME}} - Name of the article where the variable is used. {{??}} - ??