Editing Help:Wiki markup cheatsheet

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
{{navbar help}}
 
  
{| class="wikitable" align="center" style="width:100%;"
+
This is a simple guide about the special markup language used to edit RimWorld Wiki, and is not a full guide. RimWorld Wiki runs [https://www.mediawiki.org/wiki/MediaWiki MediaWiki] with the [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki Semantic] extension.
|colspan="3" align="center" style="text-align:center;" |
+
 
<h2 style="margin:.5em; margin-top:.1em; margin-bottom:.1em; border-bottom:0; font-weight:bold;">Wiki markup cheatsheet</h2>
+
==Basic Markup==
|-<!--WORKS ANYWHERE IN THE TEXT-->
 
| colspan=3 style="text-align: center;" |
 
'''Works anywhere in the text'''
 
|-<!--COLUMN HEADINGS--> style="padding:0.3em; font-size: 0.9em; text-align:center;"
 
! style="width:30%" | Description
 
! You type
 
! style="width:30%" | You get
 
|-<!--1ST ROW 1ST COLUMN-->
 
|Italics, bold, and both
 
|<!--2ND COLUMN-->
 
<code><nowiki>''italics'', '''bold''', and '''''both'''''</nowiki></code>
 
|<!--3RD COLUMN-->
 
''italics'', '''bold''', and '''''both'''''
 
|-<!--HORIZONTAL LINE-->
 
|colspan="3" style="border-top:1px solid #cee0f2;"|
 
|-<!--2ND ROW 1ST COLUMN-->
 
|[[wikipedia:Wikipedia:Manual_of_Style|Link]] to another page
 
|
 
<code><nowiki>[[Help:Starting a new page]]</nowiki></code>
 
|
 
[[Help:Starting a new page]]
 
|-
 
|colspan="3" |
 
|-
 
|
 
"Pipe" a link to change the link's destination
 
|
 
<code><nowiki>[[Help:Editing pages|Edit a page]]</nowiki></code>
 
|
 
[[Help:Editing pages|Edit a page]]
 
|-
 
|colspan="3" |
 
|-
 
|
 
Link to a section
 
|
 
<code><nowiki>[[Flak vest#Acquisition]]</nowiki></code><br>
 
<code><nowiki>[[Flak pants#Acquisition|acquisition of flak pants]]</nowiki></code>
 
|
 
[[Flak vest#Acquisition]]<br>
 
[[Flak pants#Acquisition|acquisition of flak pants]]
 
|-
 
|colspan="3" |
 
|-
 
|Red link
 
<div style="padding: 0.7em .5em; font-size:0.9em;">''red links in articles help by showing desired pages to be created''</div>
 
|
 
<code><nowiki>[[Test Broken Link]]</nowiki></code>
 
|
 
[[Test Broken Link]]
 
|-
 
|colspan="3" |
 
|-
 
|Signature
 
<div style="padding: 0.7em .5em; font-size:0.9em;">''sign your contributions when posting to a [[mw:Help:Talk_pages|talk page]]''</div>
 
|
 
<code><nowiki>~~~~</nowiki></code>
 
  
<span style="font-size:0.9em;">''do not sign in an article, only on talk pages''</span>
+
{| {{STDT| sortable}}
|
+
! Effect !! What you type !! What shows up
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
 
 
|-
 
|-
|colspan="3" |
+
! Bold (Wiki)
 +
| <code><nowiki>'''foo''' </nowiki></code> || | '''foo'''
 
|-
 
|-
|Plain website
+
! Italics (Wiki)
|
+
| <code><nowiki>''foo''</nowiki></code> || | ''foo''
<code><nowiki>https://www.mediawiki.org</nowiki></code>
 
|
 
https://www.mediawiki.org
 
 
|-
 
|-
|colspan="3" |
+
! Bold italics (Wiki)
 +
| <code><nowiki>'''''foo'''''</nowiki></code> || | '''''foo'''''
 
|-
 
|-
|Link a website
+
! Bold (HTML)
|
+
| <code><nowiki><b>foo</b></nowiki></code> || | <b>foo</b>
<code><nowiki>[https://www.mediawiki.org]</nowiki></code>
 
|
 
[https://www.mediawiki.org]
 
 
|-
 
|-
|colspan="3" |
+
! Italics (HTML)
 +
| <code><nowiki><i>foo</i></nowiki></code> || | <i>foo</i>
 
|-
 
|-
|Link and name a website
+
! Strikethrough (HTML)
|
+
| <code><nowiki><s>foo</s></nowiki></code> || | <s>foo</s>
<code><nowiki>[https://www.mediawiki.org MediaWiki]</nowiki></code>
 
|
 
[https://www.mediawiki.org MediaWiki]
 
 
|-
 
|-
|colspan="3" |
+
! Underline (HTML)
 +
| <code><nowiki><u>foo</u></nowiki></code> || | <u>foo</u>
 
|-
 
|-
|[[Wikipedia:STRIKE|Strike]] your [[Wikipedia:TALK|talk page]] comment
+
! Comment (HTML)
<div style="padding: 0.7em .5em; font-size:0.9em;">''to show your previous comment is outdated''</div>
+
| <code><nowiki><!-- This is a comment which only shows in editing --></nowiki></code> || | Only shown in edit<!-- This is a comment you won't see unless editing -->
|
 
<code><nowiki><s>This page is missing important information.</s></nowiki></code>
 
|
 
<s>This page is missing important information.</s>
 
 
|-
 
|-
|colspan="3" |
+
! Internal Link
 +
| <code><nowiki>[[Main Page]]</nowiki></code> || | [[Main Page]]
 
|-
 
|-
|Hide text somewhere for editors
+
! External Link
<div style="padding: 0.7em .5em; font-size:0.9em;">''Essentially leaving comments in an article''</div>
+
| <code><nowiki>[https://en.wikipedia.org/wiki/Help:Wiki_markup Wikipedia:Help:Wiki markup]</nowiki></code> || | [https://en.wikipedia.org/wiki/Help:Wiki_markup Wikipedia:Help:Wiki markup]
|
 
<code><nowiki><!--Check the help section for assistance with templates!--></nowiki></code>
 
|
 
<!--Check the help section for assistance with templates!-->
 
 
|-
 
|-
|colspan="3" |
+
! Read as plain text
 +
| <code><nowiki><nowiki>[[foo]]</nowiki></nowiki></code> || | <nowiki>[[foo]]</nowiki>
 
|-
 
|-
|Show an image
+
|}
|
+
==Headings==
<code><nowiki>[[File:Bedroll east.png|thumb|Caption]]</nowiki></code>
+
Heading 1 is the default if none is specified.
|
+
<pre>
[[File:Bedroll east.png|thumb|Caption]]
+
=Heading 1=
|-
+
==Heading 2==
|colspan="3" |
+
===Heading 3===
|-
+
====Heading 4====
|Add a page to a category
+
=====Heading 5=====
|<code><nowiki>[[Category:Category name]]</nowiki></code><br><br><span style="font-size:0.9em;">''place near the bottom of a page''</span>
+
======Heading 6======
|<span style="font-size:0.9em;">''shows''</span> "Category name" <span style="font-size:0.9em;">''in a bar at bottom when the page is previewed or saved''</span>
+
</pre>
|-
 
|colspan="3" |
 
|-
 
| Link to a category or file
 
|
 
<code><nowiki>[[:Category:Help]]</nowiki></code><br />
 
<code><nowiki>[[:File:Medicine industrial a.png]]</nowiki></code>
 
| [[:Category:Help]]<br />[[:File:Medicine industrial a.png]]
 
|-<!--WORKS ONLY AT THE BEGINNING OF LINES-->
 
| colspan="3" style="text-align: center;" |
 
'''Works only at the beginning of lines'''
 
|-<!--COLUMN HEADINGS--> style="padding:0.3em; font-size: 0.9em; text-align:center;"
 
! style="width:30%" | Description
 
! You type
 
! style="width:30%" | You get
 
|-
 
|Redirect to another page
 
<div style="padding: 0.7em .5em; font-size:0.9em;">''redirects must be placed at the start of the first line''</div>
 
|
 
<code><nowiki>#REDIRECT [[About RimWorld]]</nowiki></code>
 
|
 
'''&#x21AA;'''  [[About RimWorld]]
 
|-
 
|colspan="3"|
 
|-
 
|Redirect to a section of another page
 
|
 
<code><nowiki>#REDIRECT [[About RimWorld#The tactics engine]]</nowiki></code>
 
|
 
'''&#x21AA;''' [[About RimWorld#The tactics engine]]
 
|-
 
|colspan="3" |
 
|-
 
|[[Help:Formatting#Level 2|Section headings]]<br>
 
<div style="padding: 0.7em .5em; font-size:0.9em;">''a Table of Contents will automatically be generated when four headings are added to an article''</div>
 
|
 
<code><nowiki>==Level 2==</nowiki></code><br>
 
<code><nowiki>===Level 3===</nowiki></code><br>
 
<code><nowiki>====Level 4====</nowiki></code><br>
 
<code><nowiki>=====Level 5=====</nowiki></code><br>
 
<code><nowiki>======Level 6======</nowiki></code>
 
  
 +
==Common templates to use==
 +
Documentation can be seen in detail on each template's page.
  
<span style="font-size:0.9em">''do not use''&nbsp; =Level 1=&nbsp; ''as it is for page titles''</span>
+
[[Template:Define]] is used for infoboxes (drug, material, textile, food, medical items and exotic items, check [[Template:Define/doc]] for all supported item types.)<br />
|
+
[[Template:Infobox main]] is used for infoboxes (everything else not supported by [[Template:Define]])<br />
 
+
[[Template:Asof]] is used to reference different versions of RimWorld.<br />
==Level 2==
+
[[Template:STDT]] is used for tables.<br />
===Level 3===
+
[[Template:List]] is to list the items in a category.<br />
====Level 4====
+
[[Template:Icon]] is used to display pictures the size of icons, inline with text.
=====Level 5=====
 
======Level 6======
 
|-
 
|colspan="3" |
 
|-
 
|[[Help:Formatting|Bulleted list]]
 
|
 
<code>* One</code><br>
 
<code>* Two</code><br>
 
<code>** Two point one</code><br>
 
<code>* Three</code>
 
|
 
* One
 
* Two
 
** Two point one
 
* Three
 
|-
 
|colspan="3" |
 
|-
 
|[[Help:Formatting|Numbered list]]
 
|
 
<code># One</code><br>
 
<code># Two</code><br>
 
<code>## Two point one</code><br>
 
<code># Three</code>
 
|
 
# One
 
# Two
 
## Two point one
 
# Three
 
|-
 
|colspan="3" |
 
|-
 
|Indenting text
 
<div style="padding: 0.7em .5em; font-size:0.9em;">''this is used when replying on a talk page, to make it easier to follow conversations.''</div>
 
|
 
<code><nowiki>no indent (normal)</nowiki></code><br>
 
<code><nowiki>:first indent</nowiki></code><br>
 
<code><nowiki>::second indent</nowiki></code><br>
 
<code><nowiki>:::third indent</nowiki></code><br>
 
<code><nowiki>::::fourth indent</nowiki></code><br>
 
|
 
no indent (normal)<br>
 
:first indent
 
::second indent
 
:::third indent
 
::::fourth indent
 
|}
 
  
== See also ==
+
[[Template:Stat]] is used to define a stat.<br />
* [https://meta.wikimedia.org/wiki/Help:Reference_card MediaWiki reference card]
+
[[Template:Property with Page]] is used to define the properties included in infoboxes.
  
[[Category:Help]]
+
[[Category:Help pages]]

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)