Difference between revisions of "Resources/wikicheatsheet"

From DigitalCraft_Wiki
Jump to navigation Jump to search
(Created page with "what was the syntax again?")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
what was the syntax again?
+
=what was the syntax again?=
 +
Working with wikis can be confusing because they have their own peculiar syntax. Additionally to confuse things more it is possible to use some HTML tags and additional CSS next to the wiki syntax. The good thing of that is that it allows for <div style="color: rgba(0, 0, 0, 0);font-size:36px;text-shadow: 3px 0 0 rgb(217,31,38), 6px 0 0 rgb(226,91,14), 9px 0 0 rgb(245,221,8), 12px 0 0 rgb(5,148,68), 15px 0 0 rgb(2,135,206), 18px 0 0 rgb(4,77,145), 21px 0 0 rgb(42,21,113);">creative expression</div>
 +
 
 +
 
 +
 
 +
The following stuff is borrowed from the [https://en.wikipedia.org/wiki/Help:Cheatsheet wikipedia cheatsheet] and adapted for our purposes.
 +
 
 +
[https://www.mediawiki.org/wiki/Help:Formatting This mediawiki cheatsheet] is more extensive and will answer specific questions
 +
 
 +
<!--COMMENT MARKUP. Displays:Edit mode only.-->
 +
{|align="center" style="width:100%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
 +
|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;">Wikipedia Cheatsheet</h2>
 +
|-<!--WORKS ANYWHERE IN THE TEXT-->
 +
| colspan=3 style="background:#E6F2FF; border-top:2px #a3b1bf solid" |
 +
<center>'''Works anywhere in the text''' &nbsp; &nbsp; &nbsp; &nbsp;
 +
|-<!--COLUMN HEADINGS--> style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"
 +
| style="border-bottom:2px #a3b1bf solid" width="30%" | Description
 +
| style="border-bottom:2px #a3b1bf solid" | You type
 +
| style="border-bottom:2px #a3b1bf solid" width="30%" | You get
 +
|-<!--1ST ROW 1ST COLUMN-->
 +
|Italics, bold, and both
 +
|<!--2ND COLUMN-->
 +
<tt><nowiki>''italics'', '''bold''', and '''''both'''''</nowiki></tt>
 +
|<!--3RD COLUMN-->
 +
''italics'', '''bold''', and '''''both'''''
 +
|-<!--HORIZONTAL LINE-->
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-<!--2ND ROW 1ST COLUMN-->
 +
|[[Wikipedia:Manual of Style/Linking|Link]] to another page
 +
|
 +
<tt><nowiki>[[people]]</nowiki></tt><br />
 +
<tt><nowiki>[[people]]s</nowiki></tt>
 +
|
 +
[[people]]<br />
 +
[[people]]s
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|
 +
"[[Wikipedia:Piped link|Pipe]]" a link to change the link's destination
 +
|
 +
<tt><nowiki>[[People | The People involved in Digital Craft]]</nowiki></tt>
 +
|
 +
[[People | The People involved in Digital Craft]]
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|
 +
Link to a section
 +
|
 +
<tt><nowiki>[[People#Students]]</nowiki></tt><br />
 +
<tt><nowiki>[[People#Students | Students of Digital Craft]]</nowiki></tt>
 +
|
 +
[[People#Students]]<br />
 +
[[People#Students | Students of Digital Craft]]
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|[[WP:RED|Red link]]
 +
<div style="padding: 0.7em .5em; font-size:0.9em;">Red links show references to pages that don't exist yet ( they don't have content). Click them to add content to that page.</div>
 +
|
 +
<tt><nowiki>[[something missing]]</nowiki></tt>
 +
|
 +
[[something missing]]
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|References and footnotes
 +
<div style="padding: 0.7em .5em; font-size:0.9em;">''sources in the article will appear where <nowiki><references /></nowiki> is put, typically under a level 2 section heading (see below) towards the bottom of the page.''</div>
 +
<div style="padding: 0.7em .5em; font-size:0.9em;"></div>
 +
|
 +
<tt><nowiki>Hello,<ref>[http://www.loc.gov/about/ Library of Congress]</ref> World.<ref>http://www.w3.org/</ref></nowiki></tt>
 +
<br /><br />
 +
<tt><nowiki>
 +
References:
 +
 
 +
<references /></nowiki>
 +
 
 +
 
 +
</tt>
 +
|
 +
Hello,<ref>[http://www.loc.gov/about/ Library of Congress]</ref> World.<ref>http://www.w3.org/</ref>
 +
 
 +
References:
 +
<references />
 +
 
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|Signature{{Anchor|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>
 +
|
 +
<tt><nowiki>~~~~</nowiki></tt><br /><br />
 +
|
 +
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|Plain website
 +
|
 +
<tt><nowiki>http://www.wikipedia.org</nowiki></tt>
 +
|
 +
http://www.wikipedia.org
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|Link a website
 +
|
 +
<tt><nowiki>[http://www.wikipedia.org]</nowiki></tt>
 +
|
 +
[http://www.wikipedia.org]
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|Link and name a website
 +
|
 +
<tt><nowiki>[http://www.wikipedia.org Wikipedia]</nowiki></tt>
 +
|
 +
[http://www.wikipedia.org Wikipedia]
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|[[WP:STRIKE|Strike]] your [[WP:TALK|talk page]] comment
 +
<div style="padding: 0.7em .5em; font-size:0.9em;">''to show your previous comment is outdated''</div>
 +
|
 +
<tt><nowiki><s>This topic isn't [[WP:N|notable]].</s></nowiki></tt>
 +
|
 +
<s>This topic isn't [[WP:N|notable]].</s>
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|Hide text somewhere for editors
 +
<div style="padding: 0.7em .5em; font-size:0.9em;">''[[WP:CON|consensus]] is how things are decided''</div>
 +
|
 +
<tt><nowiki><!--This had consensus, discuss at talk page--></nowiki></tt>
 +
|
 +
<!--This had consensus, discuss at talk page-->
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|[[Show an image]]
 +
<div style="padding: 0.7em .5em; font-size:0.9em;">''for uploading, use Upload File in the menu on the top left of the page
 +
''</div>
 +
|
 +
<tt><nowiki>[[</nowiki></tt>File:SteveUrkel.jpg<tt>|thumb|</tt>Caption<tt><nowiki>]]</nowiki></tt>
 +
|
 +
[[File:SteveUrkel.jpg|thumb|caption]]
 +
|-
 +
 
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|Add a page to a category
 +
|<tt><nowiki>[[Category:Category name]]</nowiki></tt><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 saved''</span>
 +
 
 +
|-<!--WORKS ONLY AT THE BEGINNING OF LINES-->
 +
| colspan="3" style="background:#E6F2FF; border-top:2px #a3b1bf solid" |
 +
<center>'''Works only at the beginning of lines''' &nbsp; &nbsp;
 +
|-<!--COLUMN HEADINGS--> style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"
 +
| style="border-bottom:2px #a3b1bf solid" width="30%" | Description
 +
| style="border-bottom:2px #a3b1bf solid" | You type
 +
| style="border-bottom:2px #a3b1bf solid" width="30%" | You get
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|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>
 +
|
 +
<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><br /><br />
 +
<span style="font-size:0.9em">''do not use''&nbsp; =Level 1=&nbsp; ''as it is for page titles''</span>
 +
|
 +
 
 +
==Level 2==
 +
===Level 3===
 +
====Level 4====
 +
=====Level 5=====
 +
======Level 6======
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|Bulleted list
 +
|
 +
<tt>* One</tt><br />
 +
<tt>* Two</tt><br />
 +
<tt>** Two point one</tt><br />
 +
<tt>* Three</tt>
 +
|
 +
* One
 +
* Two
 +
** Two point one
 +
* Three
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|Numbered list
 +
|
 +
<tt># One</tt><br />
 +
<tt># Two</tt><br />
 +
<tt>## Two point one</tt><br />
 +
<tt># Three</tt>
 +
|
 +
# One
 +
# Two
 +
## Two point one
 +
# Three
 +
|-
 +
|colspan="3" style="border-top:1px solid #cee0f2;"|
 +
|-
 +
|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>
 +
|
 +
<tt><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><br />
 +
<tt><nowiki>::::fourth indent</nowiki></tt><br />
 +
|
 +
no indent (normal)<br />
 +
:first indent
 +
::second indent
 +
:::third indent
 +
::::fourth indent
 +
 
 +
|}
 +
</div>

Latest revision as of 17:55, 9 November 2015

what was the syntax again?

Working with wikis can be confusing because they have their own peculiar syntax. Additionally to confuse things more it is possible to use some HTML tags and additional CSS next to the wiki syntax. The good thing of that is that it allows for

creative expression


The following stuff is borrowed from the wikipedia cheatsheet and adapted for our purposes.

This mediawiki cheatsheet is more extensive and will answer specific questions

Wikipedia 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

[[people]]
[[people]]s

people
peoples

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

[[People | The People involved in Digital Craft]]

The People involved in Digital Craft

Link to a section

[[People#Students]]
[[People#Students | Students of Digital Craft]]

People#Students
Students of Digital Craft

Red link
Red links show references to pages that don't exist yet ( they don't have content). Click them to add content to that page.

[[something missing]]

something missing

References and footnotes
sources in the article will appear where <references /> is put, typically under a level 2 section heading (see below) towards the bottom of the page.

Hello,<ref>[http://www.loc.gov/about/ Library of Congress]</ref> World.<ref>http://www.w3.org/</ref>

References: <references />


Hello,[1] World.[2]

References:

SignatureTemplate:Anchor
sign your contributions when posting to a talk page

~~~~

Username (talk) 20:22, 23 November 2024 (UTC)

Plain website

http://www.wikipedia.org

http://www.wikipedia.org

Link a website

[http://www.wikipedia.org]

[1]

Link and name a website

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

Wikipedia

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.

Hide text somewhere for editors
consensus is how things are decided

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

Show an image
for uploading, use Upload File in the menu on the top left of the page

[[File:SteveUrkel.jpg|thumb|Caption]]

caption
Add a page to a category [[Category:Category name]]

place near the bottom of a page
shows "Category name" in a bar at bottom when the page is previewed or saved
Works only at the beginning of lines    
Description You type You get
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.

no indent (normal)
:first indent
::second indent
:::third indent
::::fourth indent

no indent (normal)

first indent
second indent
third indent
fourth indent