Difference between revisions of "Syntax Cheatsheet for Wiki Markup"

From KDHX Production
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<div align="center">
+
==Wikipedia syntax cheat sheet==
<!--COMMENT MARKUP. Displays:Edit mode only.-->
+
{| class="wikitable"
{|align="center" style="width:100%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
+
|'''Description'''
|colspan="3" align="center" style="background:#cee0f2; text-align:center;" |
+
|'''You type'''
<h2 style="margin:.5em; margin-top:.1em; margin-bottom:.1em; border-bottom:0; font-weight:bold;">Wikipedia Cheatsheet</h2>
+
|'''You get'''
|-<!--WORKS ANYWHERE IN THE TEXT-->
+
| colspan="3" style="background:#E6F2FF; padding: 0.2em; font-size: 0.9em; text-align:center;" | '''Works anywhere in the text'''
+
|-<!--COLUMN HEADINGS-->
+
| width="30%" style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"|Description
+
| style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"|You type
+
| width="30%" style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"|You get
+
|-<!--1ST ROW 1ST COLUMN-->
+
|Italic text
+
|<!--2ND COLUMN-->
+
<tt>
+
 
+
<nowiki>''italic''</nowiki> </tt>
+
|<!--3RD COLUMN-->
+
''italic''
+
|-<!--HORIZONTAL LINE-->
+
|colspan="3" style="border-top:1px solid #cee0f2;"|
+
|-<!--2ND ROW 1ST COLUMN-->
+
|Bold text
+
|
+
<tt>
+
 
+
<nowiki>'''bold'''</nowiki> </tt>
+
|
+
'''bold'''
+
 
|-
 
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
+
|Italic text<br><br>Bold text<br><br>Bold and italic text
 +
|<nowiki>''italic''</nowiki><br><br><nowiki>''bold''</nowiki><br><br><nowiki>'''''bold & italic'''''</nowiki>
 +
|''italic''<br><br>'''bold'''<br><br>'''''bold & italic'''''
 
|-
 
|-
|Bold and italic text
+
|[https://en.wikipedia.org/wiki/Help:Link Link to another Wikipedia page]
|
+
|<nowiki>[[Name of page]]</nowiki><br><br><nowiki>[[Name of page|Text to display]]</nowiki>
<tt>
+
|Name of page<br><br>Name of page and text to display
 
+
<nowiki>'''''bold & italic'''''</nowiki> </tt>
+
|
+
'''''bold & italic'''''
+
 
|-
 
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
+
|[https://www.mediawiki.org/wiki/Help:Images Add an image]
 +
|<nowiki>[[File:filename.extension]]</nowiki>
 +
|[[File:Wiki.png]]
 
|-
 
|-
||[https://en.wikipedia.org/wiki/Help:Link Link to another Wikipedia page]
+
|Add a page to a [https://www.mediawiki.org/wiki/Help:Categories category]
|
+
|<nowiki>[[Category:Name]]</nowiki>
<tt>
+
|Will display at the bottom of the wiki page.
 
+
<nowiki>[[Name of page]]</nowiki> </tt><br />
+
<tt>
+
<nowiki>[[Name of page|Text to display]]</nowiki> </tt>
+
|
+
Name of page<br />
+
Name of page and Text to display
+
 
|-
 
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
+
|[https://www.mediawiki.org/wiki/Help:Redirects Redirects]
 +
|<nowiki>#REDIRECT[[pagename]]</nowiki>
 +
|Target page<br><br>''(Avoid using, this is a bad practice and creates a mess for someone else to figure out down the road.)''
 
|-
 
|-
|[[Wikipedia:Picture tutorial|Add an image]]
+
|[https://www.mediawiki.org/wiki/Help:Formatting#Level_2 Section headings]<br>''(Table of Contents will be automatically created when four or more headings are added to a page.)''
|
+
|<nowiki>==Level 2==</nowiki><br><br><nowiki>===Level 3===</nowiki><br><br><nowiki>====Level 4====</nowiki>
<tt>
+
|  
 
+
== Level 2 ==
<nowiki>[[</nowiki> File:Wiki.png|thumb|alt=[[Wikipedia:Alternative text for images|Alt&nbsp;text]]|Caption
+
 
+
<nowiki>]]</nowiki> </tt>
+
|
+
[[File:Wiki.png|thumb|alt=Alt text|Caption]]
+
|-
+
|colspan="3" style="border-top:1px solid #cee0f2;"|
+
|-
+
|Add a page to a [[Wikipedia:FAQ/Categories|category]]
+
|<tt>
+
 
+
<nowiki>[[Category:Category name]]</nowiki> </tt>
+
|Categories should be placed at the end of pages. The category name will display in a bar at the bottom when the page is previewed or saved.
+
|-
+
|colspan="3" style="border-top:1px solid #cee0f2;"|
+
|-
+
|Signature
+
<div style="padding: 0.7em .5em; font-size:0.9em;">''Sign your contributions when posting to a [[Wikipedia:Tutorial (Talk pages)|Talk Page]].''</div>
+
<div style="padding: 0em .5em; font-size:0.9em;">''Do not sign when contributing to an article.''</div>
+
|
+
<tt>
+
 
+
<nowiki>~~~~</nowiki> </tt>
+
|
+
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
+
 
+
|-<!--WORKS ONLY AT THE BEGINNING OF LINES-->
+
| colspan="3" style="background:#E6F2FF; padding: 0.2em; font-size: 0.9em; text-align:center;" | '''Works only at the beginning of lines'''
+
|-<!--COLUMN HEADINGS-->
+
| width="30%" style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"|Description
+
| style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"|You type
+
| width="30%" style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"|You get
+
|-
+
|[[Wikipedia:Redirect|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>
+
|
+
<tt>
+
 
+
<nowiki>#REDIRECT [[Target page]]</nowiki> </tt>
+
|
+
[[Target page]]
+
|-
+
|colspan="3" style="border-top:1px solid #cee0f2;"|
+
|-
+
|[[Wikipedia:Redirect|Redirect to a section of another page]]
+
<div style="padding: 0.7em .5em; font-size:0.9em;">''Redirects must be placed at the start of the first line.''</div>
+
|
+
<tt>
+
 
+
<nowiki>#REDIRECT [[Target page#anchorName]]</nowiki> </tt>
+
|
+
[[Target page#anchorName]]
+
|-
+
|colspan="3" style="border-top:1px solid #cee0f2;"|
+
|-
+
|[[Help:Section|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>
+
<div style="padding: 0em .5em; font-size:0.9em;">''Do not use =Level 1=; it is reserved for page titles.''</div>
+
|
+
<tt>
+
 
+
<nowiki>== Level 2 ==</nowiki> </tt><br />
+
<tt>
+
 
+
<nowiki>=== Level 3 ===</nowiki> </tt><br />
+
<tt>
+
 
+
<nowiki>==== Level 4 ====</nowiki> </tt><br />
+
<tt>
+
 
+
<nowiki>===== Level 5 =====</nowiki> </tt><br />
+
<tt>
+
 
+
<nowiki>====== Level 6 ======</nowiki> </tt>
+
|
+
==Level 2==
+
 
===Level 3===
 
===Level 3===
 
====Level 4====
 
====Level 4====
===== Level 5 =====
 
====== Level 6 ======
 
 
|-
 
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
+
|[https://www.mediawiki.org/wiki/Help:Lists#List_basics Bullet points]
|-
+
|<nowiki>*Item A</nowiki><br><nowiki>*Item B</nowiki><br><nowiki>**Item B2</nowiki><br><nowiki>*Item C</nowiki><br>
|[[Help:List|Bulleted list]]{{Anchor|Bulleted list}}
+
 
|
 
|
<tt>* One</tt><br />
+
*Item A
<tt>* Two</tt><br />
+
*Item B
<tt>** Two point one</tt><br />
+
**Item B2
<tt>* Three</tt>
+
*Item C
|
+
* One
+
* Two
+
** Two point one
+
* Three
+
|-
+
|colspan="3" style="border-top:1px solid #cee0f2;"|
+
 
|-
 
|-
|[[Help:List|Numbered list]]{{Anchor|Numbered list}}
+
|[https://www.mediawiki.org/wiki/Help:Lists#List_basics Numbered list]
 +
|<nowiki>#Item one</nowiki><br><nowiki>#Item two</nowiki><br><nowiki>##Item two point one</nowiki><br><nowiki>#Item three</nowiki><br>
 
|
 
|
<tt># One</tt><br />
+
#Item one
<tt># Two</tt><br />
+
#Item two
<tt>## Two point one</tt><br />
+
#Item two point one
<tt># Three</tt>
+
#Item three
|
+
# One
+
# Two
+
## Two point one
+
# Three
+
 
|-
 
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
+
|[https://www.mediawiki.org/wiki/Help:Formatting Indented text]
|-
+
|no intentation<br><nowiki>:first indentation</nowiki><br><nowiki>::second indentation</nowiki><br><nowiki>:::third indentation</nowiki>
|Indenting text{{Anchor|Indenting text}}
+
|no indentation (normal text)
<div style="padding: 0.7em .5em; font-size:0.9em;">''This is used when replying on a [[Wikipedia:Tutorial (Talk pages)|talk page]], to make it easier to follow conversations.''</div>
+
:first indentation
|
+
::second indentation
<tt>
+
:::three indentation
 
+
<nowiki>no indent (normal)</nowiki> </tt><br />
+
<tt>
+
 
+
<nowiki>:first indent</nowiki> </tt><br />
+
<tt>
+
 
+
<nowiki>::second indent</nowiki> </tt><br />
+
<tt>
+
 
+
<nowiki>:::third indent</nowiki> </tt>
+
|
+
no indent (normal)<br />
+
:first indent
+
::second indent
+
:::third indent
+
|-<!--OTHER-->
+
| colspan="3" style="background:#E6F2FF; padding: 0.2em; font-size: 0.9em; text-align:center;" | '''Adding references'''
+
 
|-
 
|-
| colspan="3" style="text-align:center;"|
 
[[Help:Citations quick reference|Cheatsheet for citing a website or publication]]<br />
 
[[Wikipedia:Referencing for beginners|Referencing for beginners]]
 
 
|}
 
|}
</div>
 
<noinclude>
 
==See also==
 
<!--Please keep this uncluttered. If you wish to add a link, discuss it on the talk page first.-->
 
* For a full list of editing commands, see [[Help:Wiki markup|Wiki markup]]
 
* To experiment with editing, use the [[sandbox]]
 
* For a guide to editing, see [[How to edit a page]]
 
* For a PDF, printable cheatsheet, see [[File:Cheatsheet.pdf]]
 
__NOTOC__ __NOEDITSECTION__
 
</noinclude>
 
  
[[Category:Information Technology]]
+
==Helpful reference pages==
Information Technology
+
* For a more detailed list of formatting commands, see '''[https://www.mediawiki.org/wiki/Help:Formatting Help:Formatting]'''.
 +
* General help information can be found at '''[https://www.mediawiki.org/wiki/Help:Contents Help:Contents]'''
 +
* To experiment with editing, use the '''[https://www.mediawiki.org/wiki/Project:Sandbox Sandbox]'''
 +
__NOTOC__
 +
[[Category:Production]]

Latest revision as of 16:48, 13 July 2018

Wikipedia syntax cheat sheet

Description You type You get
Italic text

Bold text

Bold and italic text
''italic''

''bold''

'''''bold & italic'''''
italic

bold

bold & italic
Link to another Wikipedia page [[Name of page]]

[[Name of page|Text to display]]
Name of page

Name of page and text to display
Add an image [[File:filename.extension]] Wiki.png
Add a page to a category [[Category:Name]] Will display at the bottom of the wiki page.
Redirects #REDIRECT[[pagename]] Target page

(Avoid using, this is a bad practice and creates a mess for someone else to figure out down the road.)
Section headings
(Table of Contents will be automatically created when four or more headings are added to a page.)
==Level 2==

===Level 3===

====Level 4====

Level 2

Level 3

Level 4

Bullet points *Item A
*Item B
**Item B2
*Item C
  • Item A
  • Item B
    • Item B2
  • Item C
Numbered list #Item one
#Item two
##Item two point one
#Item three
  1. Item one
  2. Item two
  3. Item two point one
  4. Item three
Indented text no intentation
:first indentation
::second indentation
:::third indentation
no indentation (normal text)
first indentation
second indentation
three indentation

Helpful reference pages