Toggle menu
14
236
69
27.2K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Help:Cheatsheet: Difference between revisions

Brief guide to Wikipedia formatting codes
Created page with "<noinclude>{{short description|Brief guide to Wikipedia formatting codes}} <div align="center"> {{Help pages header}}</div></noinclude> {{Notice|For a complete list of wikitext codes, see <b>Help:Wikitext.</b> For information on special words, see <b>Help:Magic words.</b>|shortcut1=H:CS|shortcut2=H:CHEAT|shortcut3=WP:CHEAT|shortcut4=WP:CHEATSHEET}} <!--COMMENT MARKUP. Displays in only source editing mode.--> {|align="center" class="notheme" style="width:100%; bor..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
<div align="center">
<div align="center">
{{Help pages header}}</div></noinclude>
{{Help pages header}}</div></noinclude>
{{Notice|For a complete list of wikitext codes, see <b>[[Help:Wikitext]].</b> For information on special words, see <b>[[Help:Magic words]].</b>|shortcut1=H:CS|shortcut2=H:CHEAT|shortcut3=WP:CHEAT|shortcut4=WP:CHEATSHEET}}
{{Notice|For a complete list of wikitext codes, see <b>[[Help:Wikitext]].</b> For information on special words, see <b>[[Help:Magic words]].</b>|shortcut1=H:CS|shortcut2=H:CHEAT}}
<!--COMMENT MARKUP. Displays in only source editing mode.-->
<!--COMMENT MARKUP. Displays in only source editing mode.-->
{|align="center" class="notheme" style="width:100%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
{|align="center" class="notheme" style="width:80%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
|colspan="3" align="center" style="background:#cee0f2; text-align:center;" |
|colspan="3" align="center" style="background:#cee0f2; text-align:center;" |
<h2 style="margin:.5em; margin-top:.1em; margin-bottom:.1em; border-bottom:0; font-weight:bold;"><br>Wikitext cheatsheet</h2>  
<h2 style="margin:.5em; margin-top:.1em; margin-bottom:.1em; border-bottom:0; font-weight:bold;"><br>Wikitext cheatsheet</h2>  
Line 172: Line 172:
|-
|-
|Add a page to a [[Wikipedia:FAQ/Categories|category]]{{Anchor|Add a page to a category}}
|Add a page to a [[Wikipedia:FAQ/Categories|category]]{{Anchor|Add a page to a category}}
|<code><nowiki>[[Category:Category name]]</nowiki></code><br><br><span style="font-size:0.9em;">''place near the bottom of a page''</span>
|<code><nowiki></nowiki></code><br><br><span style="font-size:0.9em;">''place near the bottom of a page''</span>
|<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 published''</span>
|<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 published''</span>
|-
|-
Line 286: Line 286:
* If you don't want to use wikitext markup, try [[Wikipedia:VisualEditor]] instead
* If you don't want to use wikitext markup, try [[Wikipedia:VisualEditor]] instead
* '''To ask a question''', see [[Wikipedia:Questions]] to locate the appropriate venue(s)
* '''To ask a question''', see [[Wikipedia:Questions]] to locate the appropriate venue(s)
---- <div style="font-size:smaller">{{Center|1={{Offer help}}}}</div>
---- <div style="font-size:smaller"></div>
{{Wikipedia editor navigation|state=collapsed}}
{{Wikipedia editor navigation|state=collapsed}}


__NOTOC__ __NOEDITSECTION__
__NOTOC__ __NOEDITSECTION__
[[Category:Wikipedia basic information|{{PAGENAME}}]]
 
 
 
 
</noinclude>
 
[[Category:Pages with broken file links]]
[[Category:Pages with script errors]]
[[Category:Pages with short description]]
[[Category:Wikipedia basic information|Cheatsheet]]
[[Category:Wikipedia editor snippet collections]]
[[Category:Wikipedia quick introductions]]
[[Category:Wikipedia text help]]
[[Category:Wikipedia text help]]
[[Category:Wikipedia quick introductions]]
[[Category:Wikipedia editor snippet collections]]
</noinclude>

Latest revision as of 03:58, 1 June 2025


Wikitext cheatsheet

Works anywhere in the text        

Description You type You get
Italics, bold, and both

''italics'', '''bold''', and '''''both'''''

italics, bold, and both

Link to another page
see Help:Interwikimedia links for linking to sister projects

[[copy edit]]
[[copy edit]]ors

copy edit
copy editors

"Pipe" a link to change the link's text

[[Android (operating system)|Android]]

Android

Link to a section

[[Frog#Locomotion]]
[[Frog#Locomotion|locomotion in frogs]]
{{slink|Frog#Locomotion}}

Frog
locomotion in frogs
Frog  Locomotion

Red link
Links to pages that don't exist are automatically red. Red links in articles often help by showing desired redirects or notable pages.

[[Red link example]]

Red link example

Plain website

https://www.wikipedia.org

https://www.wikipedia.org

Link a website

[https://www.wikipedia.org]

[1]

Link and name a website

[https://www.wikipedia.org Wikipedia]

Wikipedia

Citations, references, and footnotes
sources in the article will appear where {{reflist}} is put, typically under a level 2 section heading (see below) towards the bottom of the page; text between {{}} is for a template.
Hello<ref name="LoC">[https://www.loc.gov/about/ Library of Congress]</ref> World!<ref>{{cite web |url=https://www.w3.org/ |title = World Wide Web Consortium (W3C)}}</ref>

Hello again!<ref name="LoC" /><ref>Perry's Handbook, Sixth Edition, McGraw-Hill Co., 1984.</ref>

References: {{reflist}}

Hello[1] World![2]

Hello again![1][3]

References:
  1. 1.0 1.1 Library of Congress
  2. Template:Cite web
  3. Perry's Handbook, Sixth Edition, McGraw-Hill Co., 1984.
Template:Citation needed
one of many cleanup templates

This statement is true.{{cn}}

This statement is true.Template:Cn

Signature
sign your contributions when posting to a talk page

~~~~

do not sign in an article, only on talk pages

Username (talk) 10:57, 19 June 2025 (UTC)

Ping a user on a talk page
so they will see your comment

[[User:Example]] or {{u|Example}}

User:Example or Example

Strike your talk page comment
to show your previous comment is outdated

<s>This topic isn't [[WP:N|notable]].</s>

This topic isn't notable.

Underline your text

<u>This topic is notable</u>

This topic is notable

Hide comment(s) somewhere for editors; hidden comments are visible only in the editors
consensus is how things are decided

<!-- This had consensus, discuss at talk page -->

Show an image
for uploading, see the intro to uploading images

[[File:Wiki.png|thumb|Caption]]

File:Wiki.png
Caption
Add a page to a category

place near the bottom of a page
shows "Category name" in a bar at bottom when the page is previewed or published
Link to a category or file
[[:Category:Category name]]
[[:File:File name]]

Category:Wikipedia basic information
File:Example.jpg


Works only at the beginning of lines    
Description You type You get
Redirect to another page
redirects must be placed at the start of the first line

#REDIRECT [[Target page]]

Target page

Redirect to a section of another page

#REDIRECT [[Target page#anchorName]]

Target page

Section headings
a Table of Contents will automatically be generated when four headings are added to an article

== Level 2 ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====
====== Level 6 ======

do not use  = Level 1 =  as it is for page titles

Level 2

Level 3

Level 4

Level 5
Level 6
Bulleted list

* One
* Two
** Two point one
* Three

  • One
  • Two
    • Two point one
  • Three
Numbered list

# One
# Two
## Two point one
# Three

  1. One
  2. Two
    1. Two point one
  3. Three
Indenting text
this is used when replying on a talk page, to make it easier to follow conversations.
After a string of indents, or to revive a discussion, an outdent {{Outdent|n}} (Template:Outdent) can be used to reset the paragraph to the left margin.

no indent (normal)
: first indent
:: second indent
::: third indent
:::: fourth indent
{{Outdent|4}} return to left margin

no indent (normal)

first indent
second indent
third indent
fourth indent
return to left margin

Images

[[File: | thumb | upright | right | alt= | caption ]]

Cite web

<ref>{{cite web
 |url= 
 |title= 
 |author= 
 |date= 
 |website= 
 |publisher= 
 |access-date= 
}}</ref>

Cite journal

<ref>{{cite journal
 |last1= 
 |first1= 
 |last2= 
 |first2= 
 |date= 
 |title= 
 |journal= 
 |volume= 
 |issue= 
 |pages= 
 |publisher= 
 |doi= 
 |url= 
 |access-date= 
}}</ref>

Cite book (short)

<ref>{{cite book
 |last= 
 |first= 
 |author-link= 
 |title= 
 |publisher= 
 |series= 
 |date=  
 |doi= 
 |isbn= 
}}</ref>

Cite book (extended)

<ref>{{cite book
 |last1        = 
 |first1       = 
 |last2        = 
 |first2       = 
 |author-link1 = 
 |author-link2 = 
 |editor       = 
 |title        = 
 |trans-title  = 
 |url          = 
 |access-date  = 
 |edition      = 
 |series       = 
 |volume       = 
 |date         = 
 |publisher    = 
 |location     = 
 |isbn         = 
 |doi          = 
 |page         = 
 |pages        = 
 |chapter      = 
}}</ref>

Metric conversions

Single input:
{{convert|original_value|original_unit|conversion_unit|abbr=on}}
Range of values:
{{convert|orig_val1|range|orig_val2|original_unit|conversion_unit|abbr=on}}
Examples:
{{convert|60|and|170|kg|lb|abbr=on}}
{{convert|18|°C|°F}}
{{convert|3.21|kg|lb}}

Variables

Code Effect
{{CURRENTWEEK}} 25
{{CURRENTDOW}} 4
{{CURRENTMONTH}} 06
{{CURRENTMONTHNAME}} June
{{CURRENTMONTHNAMEGEN}} June
{{CURRENTDAY}} 19
{{CURRENTDAYNAME}} Thursday
{{CURRENTYEAR}} 2025
{{CURRENTTIME}} 10:57
{{NUMBEROFARTICLES}} 14
{{NUMBEROFPAGES}} 12,242
{{NUMBEROFUSERS}} 69
{{PAGENAME}} Cheatsheet
{{NAMESPACE}} Help
{{REVISIONID}} 26762
{{REVISIONUSER}} Prd
{{localurl:pagename}} /w/Pagename
{{localurl:Wikipedia:Sandbox|action=edit}} https://en.wikipedia.org/wiki/Sandbox?action=edit
{{fullurl:pagename}} https://kenshi.wiki/w/Pagename
{{fullurl:pagename|query_string}} https://kenshi.wiki/index.php?title=Pagename&query_string
{{SERVER}} https://kenshi.wiki
{{ns:index}} e.g. '{{ns:1}}' fullname of namespace e.g 'Talk'
{{SITENAME}} Kenshi Wiki

Recalling named reference

<ref name="NAMEOFREF" />

Quotes

{{blockquote |text= |sign= }}

Blockquotes

<blockquote>
<p>QUOTED PARAGRAPH</p>
<p>NAME, SOURCE, REFERENCE</p>
</blockquote>

About

(This page is about USE1. For other uses, see About (disambiguation).)
{{About|USE1}}
(This page is about USE1. For other uses, see PAGE2.)
{{About|USE1||PAGE2}}
(This page is about USE1. For USE2, see PAGE2.)
{{About|USE1|USE2|PAGE2}}
(This page is about USE1. For USE2, see PAGE2. For USE3, see PAGE3. For USE4, see PAGE4. For USE5, see PAGE5.)
{{About|USE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}}

Tables (borderless)

{|
|-
! scope="col" |COLUMN1
! scope="col" |COLUMN2
|-
|ROW1
|ROW1/COL2
|-
|ROW2
|ROW2/COL2
|}

Tables (wikitable)

{| class="wikitable"
|-
! scope="col" |COLUMN1
! scope="col" |COLUMN2
|-
|ROW1
|ROW1/COL2
|-
|ROW2
|ROW2/COL2
|}

Collapsible tables (Default: collapsed)

{| class="wikitable mw-collapsible mw-collapsed" style="text-align: left;margin:0px;"
|- 
! style="width:20em;" |COLUMN1
! style="width:20em;" |COLUMN2
|- 
|ROW1
|ROW1/COL2
|-
|ROW2
|ROW2/COL2
|-
|}

Columns

{{col-begin|width=100%}}
{{col-break|width=}} 
{{col-end}}

Interwiki links

Wiki Shortcut
Wikimedia Commons [[commons:]]
Wikipedia [[w:]]
Wiktionary [[wikt:]]
Wikibooks [[b:]]
Wikisource [[s:]]
Wikispecies [[species:]]
Wikiversity [[wv:]]
Metawiki [[m:]]
MediaWiki [[mw:]]

Vandalism response templates

 * {{subst:uw-vandalism1|PageName}} ~~~~ (unintentional vandalism/test)
 * {{subst:uw-delete1|PageName}} ~~~~ (unintentional removal of content)
 * {{subst:uw-vandalism2|PageName}} ~~~~ (suitable for intentional nonsense or disruption)
 * {{subst:uw-delete2|PageName}} ~~~~ (variant for removal of content)
 * {{subst:uw-vandalism3|PageName}} ~~~~ ("please stop" for use after level 2 warning)
 * {{subst:uw-delete3|PageName}} ~~~~ (please stop removing content)
 * {{subst:uw-vandalism4|PageName}} ~~~~ (last warning for vandalism)
 * {{subst:uw-delete4|PageName}} ~~~~ (last warning for removing content)
 * {{subst:uw-vandalism4im|PageName}} ~~~~ (only warning; for severe or grotesque vandalism only)
 * {{subst:uw-delete4im|PageName}} ~~~~ (only warning; for many blankings in a short period of time)

Page citations

{{rp|page=}}


See also

File:Wiki markup cheatsheet EN.pdf
Wiki markup quick reference (PDF download)

Template:Wikipedia editor navigation