Portal Wiki:Cheatsheet: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(to avoid external links)
 
mNo edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
{{NS HELP navbar}}
<noinclude></noinclude>
 
<div align="center">
== Basic formatting ==
<!--COMMENT MARKUP. Displays:Edit mode only.-->
<!--COMMENT MARKUP. Displays:Edit mode only.-->
{|align="center" style="width:100%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
{|align="center" class="wikitable" style="width:100%"
|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;">MediaWiki Cheatsheet</h2>
|-<!--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-->
|-<!--COLUMN HEADINGS-->
| width="30%" style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"|Description
| class="header" width="25%" style="text-align:center;"|'''Description'''
| style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"|You type
| class="header" style="text-align:center;"|'''You type'''
| width="30%" style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"|You get
| class="header" width="25%" style="text-align:center;"|'''You get'''
|-<!--1ST ROW 1ST COLUMN-->
|-<!--1ST ROW 1ST COLUMN-->
|Italic text{{Anchor|Italic text}}
|Italic text
|<!--2ND COLUMN-->
|<!--2ND COLUMN-->
<tt><nowiki>''italic''</nowiki></tt>
<tt><nowiki>''italic''</nowiki></tt>
Line 19: Line 15:
''italic''
''italic''
|-<!--HORIZONTAL LINE-->
|-<!--HORIZONTAL LINE-->
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-<!--2ND ROW 1ST COLUMN-->
|-<!--2ND ROW 1ST COLUMN-->
|Bold text{{Anchor|Bold text}}
|Bold text
|
|
<tt><nowiki>'''bold'''</nowiki></tt>
<tt><nowiki>'''bold'''</nowiki></tt>
Line 27: Line 23:
'''bold'''
'''bold'''
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-
|-
|Bold and italic text{{Anchor|bold and italic}}
|Bold and italic
|
|
<tt><nowiki>'''''bold & italic'''''</nowiki></tt>
<tt><nowiki>'''''bold & italic'''''</nowiki></tt>
Line 35: Line 31:
'''''bold & italic'''''
'''''bold & italic'''''
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-
|Internal link<br />
<div style="padding: 0em .5em; font-size:0.9em;">''(within the wiki)''</div>
|
<tt><nowiki>[[GLaDOS]]</nowiki></tt><br />
<tt><nowiki>[[Genetic Lifeform and Disk Operating System]]</nowiki></tt><br />
<tt><nowiki>[[Atlas]] and [[P-Body]]</nowiki></tt><br />
<tt><nowiki>[[Gel]]s</nowiki></tt>
|
[[GLaDOS]]<br />
[[Genetic Lifeform and Disk Operating System]]<br />
[[Atlas]] and [[P-Body]]<br />
[[Gel]]s
|-
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-
|-
||[[Wikipedia:Linking|Link to another Wikipedia page]]{{Anchor|Internal link}}
|Categorization
|
|
<tt><nowiki>[[Name of page]]</nowiki></tt><br />
{{code|<nowiki>[[</nowiki>Category:Mechanics]]}}<br />
<tt><nowiki>[[Name of page|Text to display]]</nowiki></tt>
{{code|<nowiki>[[</nowiki>Category:Mechanics/fr]]}} (on French pages)
|
|
[[Name of page]]<br />
''Places the page in [[:Category:Mechanics]]''<br />
[[Name of page|Text to display]]
''Places the page in [[:Category:Mechanics/fr]]''
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-
|-
|[[Wikipedia:Picture tutorial|Add an image]]{{Anchor|Thumbnail image}}
|External link<br />
<div style="padding: 0em .5em; font-size:0.9em;">''(to other websites)''</div>
|
|
<tt><nowiki>[[</nowiki>File:Wiki_logo.png|thumb|alt=[[Wikipedia:Alternative text for images|Alt&nbsp;text]]|Caption<nowiki>]]</nowiki></tt>
<tt><nowiki>[http://www.example.org Text to display]</nowiki></tt><br />
<tt><nowiki>[http://www.example.org]</nowiki></tt><br />
<tt><nowiki>http://www.example.org</nowiki></tt>
|
|
[[File:Wiki_logo.png|thumb|alt=Alt text|Caption]]
[http://www.example.org Text to display]<br />
[http://www.example.org]<br />
http://www.example.org
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-
|-
|Add a page to a [[Wikipedia:FAQ/Categories|category]]{{Anchor|Add a page to a category}}
|Link to Wikipedia
|<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.
<tt><nowiki>[[Wikipedia:Portal 2|Portal on Wikipedia]]</nowiki></tt><br>
<tt><nowiki>[[w:Portal 2|Portal 2 on Wikipedia]]</nowiki></tt>
|
[[Wikipedia:Portal 2|Portal 2 on Wikipedia]]<br>
[[w:Portal 2|Portal 2 on Wikipedia]]
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-
|-
|Signature{{Anchor|Signature}}
|Citation Needed
<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>
<nowiki>{{Citation needed}}</nowiki>
|
|
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
{{Citation needed}}
 
|-
|-<!--WORKS ONLY AT THE BEGINNING OF LINES-->
|colspan="3" style="border-top:1px solid #FFE4C4;"|
| 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]]{{Anchor|Redirect to another page}}
|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>
<tt><nowiki>#REDIRECT [[Target page]]</nowiki></tt>
|
|
[[Image:Redirect arrow without text.svg|30px|link=]] [[Target page]]
[[Image:Redirect arrow without text.png]][[Target page]]
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-
|-
|[[Wikipedia:Redirect|Redirect to a section of another page]]
|Redirect to a non-english 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>
<tt><nowiki>#REDIRECT [[Target page/x]] {{R lang|x}}</nowiki></tt> where <code>x</code> is the language's code (de, fr, es, ru...)
|
|
[[Image:Redirect arrow without text.svg|30px|link=]] [[Target page#anchorName]]
[[Image:Redirect arrow without text.png]][[Target page/x]]
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-
|-
|[[Help:Section|Section headings]]{{Anchor|Section headings}}<br />
|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;">''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 1 ==</nowiki></tt><br />
<tt><nowiki>=== Level 3 ===</nowiki></tt><br />
<tt><nowiki>=== Level 2 ===</nowiki></tt><br />
<tt><nowiki>==== Level 4 ====</nowiki></tt><br />
<tt><nowiki>==== Level 3 ====</nowiki></tt><br />
<tt><nowiki>===== Level 5 =====</nowiki></tt><br />
<tt><nowiki>===== Level 4 =====</nowiki></tt><br />
<tt><nowiki>====== Level 6 ======</nowiki></tt>
<tt><nowiki>====== Level 5 ======</nowiki></tt>
|
|
==Level 2==
== Level 1 ==
===Level 3===
=== Level 2 ===
====Level 4====
==== Level 3 ====
===== Level 5 =====
===== Level 4 =====
====== Level 6 ======
====== Level 5 ======
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-
|-
|[[Help:List|Bulleted list]]{{Anchor|Bulleted list}}
|Bulleted list
|
|
<tt>* One</tt><br />
<tt>* One</tt><br />
Line 124: Line 134:
* Three
* Three
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-
|-
|[[Help:List|Numbered list]]{{Anchor|Numbered list}}
|Numbered list<br />
<div style="padding: 0em .5em; font-size:0.9em;">''Empty lines between list items restarts numbering at 1.''</div>
|
|
<tt># One</tt><br />
<tt># One</tt><br />
<tt># Two</tt><br />
<tt># Two</tt><br />
<tt>## Two point one</tt><br />
<tt>## Two point one</tt><br />
<tt># Three</tt>
<tt># Three</tt><br />
|
|
# One
# One
Line 138: Line 149:
# Three
# Three
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-
|-
|Indenting text{{Anchor|Indenting text}}
|Indenting 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>
|
|
<tt><nowiki>no indent (normal)</nowiki></tt><br />
<tt><nowiki>no indent (normal)</nowiki></tt><br/>
<tt><nowiki>:first indent</nowiki></tt><br />
<tt><nowiki>:first indent</nowiki></tt><br/>
<tt><nowiki>::second indent</nowiki></tt><br />
<tt><nowiki>::second indent</nowiki></tt><br/>
<tt><nowiki>:::third indent</nowiki></tt>
<tt><nowiki>:::third indent</nowiki></tt>
|
|
no indent (normal)<br />
no indent (normal)<br/>
:first indent
:first indent
::second indent
::second indent
:::third 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;"|
|colspan="3" style="border-top:1px solid #FFE4C4;"|
[[Help:Citations quick reference|Cheatsheet for citing a website or publication]]<br />
|-
[[Wikipedia:Referencing for beginners|Referencing for beginners]]
|Image
|
<tt><nowiki>[[Image:Wiki logo.png‎‎|100px]]</nowiki></tt>
|
[[Image:Wiki logo.png‎|100px]]
|-
|colspan="3" style="border-top:1px solid #FFE4C4;"|
|-
|Thumbnail image
|
<tt><nowiki>[[</nowiki>Image:Wiki logo.png‎|thumb|Caption text<nowiki>]]</nowiki></tt>
|
[[File:Wiki logo.png‎‎|thumb|100px|Caption text]]
|-
 
|-<!--TALKPAGES-->
| colspan="3" style="text-align:center;background-color:#C9DCFF" | '''For Talk Pages'''
|-
|Sign your posts on talk pages
|
<tt><nowiki>~~~~</nowiki></tt>
|
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
|-
 
|-<!--PORTAL WIKI-->
| colspan="3" style="text-align:center;background-color:#C9DCFF" | '''Portal Wiki Exclusive syntax'''
|-
| Using [http://www.mediawiki.org/wiki/Extension:MediawikiPlayer MediawikiPlayer] <div style="padding: 0.7em .5em; font-size:0.9em;">This extension adds a number of commands for embedding media into an article. The following examples include embedding YouTube content via this extension, however we prefer people to use the [[:Template:Youtube]] template for that.</div>
|
<tt><nowiki><mp3player>File:01-Science is Fun.mp3</mp3player></nowiki></tt><br/>
<tt><nowiki><mp3player>http://www.youtube.com/watch?v=QGo8b_frsac</mp3player></nowiki></tt><br/>
<tt><nowiki><mediaplayer>http://www.youtube.com/watch?v=zsxAlL9WAbk</mediaplayer></nowiki></tt>
|
<mp3player>File:01-Science is Fun.mp3</mp3player><br/>
<mp3player>http://www.youtube.com/watch?v=QGo8b_frsac</mp3player><br/>
<mediaplayer>http://www.youtube.com/watch?v=zsxAlL9WAbk</mediaplayer>
|-
| Using [[:Template:Youtube]]
|
<tt><nowiki>{{youtube|vikaCt9eJ80}}</nowiki></tt><br/>
<tt><nowiki>{{youtube|vikaCt9eJ80|hd=on}}</nowiki></tt><br/>
<tt><nowiki>{{youtube|QGo8b_frsac|audio=on}}</nowiki></tt>
|
{{youtube|vikaCt9eJ80}}<br/>
{{youtube|vikaCt9eJ80|hd=on}}<br/>
{{youtube|QGo8b_frsac|audio=on}}
|}
|}
</div>
 
<noinclude>
== Creating a page ==
There are three ways to create a new page on the Portal Wiki:
 
Firstly, you can simply type the name of the new page you wish to create into the Search box on the left navigation menu. If the page does not currently exist, the page displayed will advise you that
: ''You may create the page "<font color="FF000">[page you searched for]</font>", but consider checking the search results below to see whether it is already covered.''
Click the red text of "<font color="FF000">[page you searched for]</font>" to begin creating the new page.
 
Secondly, you can navigate to the [[Wikipedia:Uniform Resource Locator|URL]] of the new page directly. For example, typing out <tt><nowiki>https://theportalwiki.com/wiki/New_page</nowiki></tt> into your browser's URL address bar and hitting the enter button will take you to a '''New page''' document. On that page you can click the '''CREATE''' tab to bring up the editing box.
 
Alternatively, any page that contains a red link such as {{!xt|example page}} indicates that the page does not exist. Clicking on the link will take you to a page where the first version of the page can be written and saved.
 
== Creating a subpage ==
Subpages can be thought of as ''children'' of articles in the document tree. As such they should be used when you wish to create an article that is intrinsically linked to the parent article. Articles that have been translated into different languages use subpages to store the separate content. For example, the [[Main Page]] has a [[Main Page/pl]] which has the translated content in Polish.
 
To create a subpage, the same procedure should be used as above using the forward slash ('''/''') to indicate the separation between the original page, and the subpage. Example:- '''<code><nowiki>Original page name/Subpage name</nowiki></code>'''.
 
== Saving pages ==
Once edited, before actually saving your changes, make good use of the ''''Show preview'''' button to preview the changes. Avoid saving too often or saving just to see what it looks like. Each page save will generate an entry in [[Special:Recentchanges|recent changes]]. Repeated trivial and unnecessary saves tend to clutter up that list and inconvenience users who make use of that list to watch for vandals or misinformed edits. Once you are happy with your changes, enter a brief summary of what changes you have made in the ''''Summary:'''' text box and click the ''''Save page'''' button.
 
The ''''This is a minor edit'''' tick box should be used if small changes (for example, grammar corrections) have been made. The ''''Watch this page'''' tick box is useful to keep an eye on changes to that article. These will show up in your ''''My Watchlist'''' (found at the top right of the wiki when you are logged in) if any changes have been made.
 
== See also ==
* From [[w:mw:Help:Contents|MediaWiki Help]]:
** [[w:mw:Help:Formatting|Formatting]]
** [[w:mw:Help:Links|Links]]
** [[w:mw:Help:Images|Images]]
** [[w:mw:Help:Tables|Tables]]
* [[w:Wikipedia:Cheatsheet|Wikipedia Cheatsheet]]
 
__NOTOC__ __NOEDITSECTION__
 
[[Category:Help|Editing]]

Latest revision as of 06:55, 28 September 2021

Basic formatting

Description You type You get
Italic text

''italic''

italic

Bold text

'''bold'''

bold

Bold and italic

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

bold & italic

Internal link
(within the wiki)

[[GLaDOS]]
[[Genetic Lifeform and Disk Operating System]]
[[Atlas]] and [[P-Body]]
[[Gel]]s

GLaDOS
Genetic Lifeform and Disk Operating System
Atlas and P-Body
Gels

Categorization

[[Category:Mechanics]]
[[Category:Mechanics/fr]] (on French pages)

Places the page in Category:Mechanics
Places the page in Category:Mechanics/fr

External link
(to other websites)

[http://www.example.org Text to display]
[http://www.example.org]
http://www.example.org

Text to display
[1]
http://www.example.org

Link to Wikipedia

[[Wikipedia:Portal 2|Portal on Wikipedia]]
[[w:Portal 2|Portal 2 on Wikipedia]]

Portal 2 on Wikipedia
Portal 2 on Wikipedia

Citation Needed

{{Citation needed}}

[citation needed]

Redirect to another page

#REDIRECT [[Target page]]

Redirect arrow without text.pngTarget page

Redirect to a non-english page

#REDIRECT [[Target page/x]] {{R lang|x}} where x is the language's code (de, fr, es, ru...)

Redirect arrow without text.pngTarget page/x

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

== Level 1 ==
=== Level 2 ===
==== Level 3 ====
===== Level 4 =====
====== Level 5 ======

Level 1

Level 2

Level 3

Level 4
Level 5
Bulleted list

* One
* Two
** Two point one
* Three

  • One
  • Two
    • Two point one
  • Three
Numbered list
Empty lines between list items restarts numbering at 1.

# One
# Two
## Two point one
# Three

  1. One
  2. Two
    1. Two point one
  3. Three
Indenting text

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

no indent (normal)

first indent
second indent
third indent
Image

[[Image:Wiki logo.png‎‎|100px]]

Wiki logo.png

Thumbnail image

[[Image:Wiki logo.png‎|thumb|Caption text]]

Caption text
For Talk Pages
Sign your posts on talk pages

~~~~

Username (talk) 23:37, 22 December 2024 (UTC)

Portal Wiki Exclusive syntax
Using MediawikiPlayer
This extension adds a number of commands for embedding media into an article. The following examples include embedding YouTube content via this extension, however we prefer people to use the Template:Youtube template for that.

<mp3player>File:01-Science is Fun.mp3</mp3player>
<mp3player>http://www.youtube.com/watch?v=QGo8b_frsac</mp3player>
<mediaplayer>http://www.youtube.com/watch?v=zsxAlL9WAbk</mediaplayer>

<mp3player>File:01-Science is Fun.mp3</mp3player>
<mp3player>http://www.youtube.com/watch?v=QGo8b_frsac</mp3player>
<mediaplayer>http://www.youtube.com/watch?v=zsxAlL9WAbk</mediaplayer>

Using Template:Youtube

{{youtube|vikaCt9eJ80}}
{{youtube|vikaCt9eJ80|hd=on}}
{{youtube|QGo8b_frsac|audio=on}}



Creating a page

There are three ways to create a new page on the Portal Wiki:

Firstly, you can simply type the name of the new page you wish to create into the Search box on the left navigation menu. If the page does not currently exist, the page displayed will advise you that

You may create the page "[page you searched for]", but consider checking the search results below to see whether it is already covered.

Click the red text of "[page you searched for]" to begin creating the new page.

Secondly, you can navigate to the URL of the new page directly. For example, typing out https://theportalwiki.com/wiki/New_page into your browser's URL address bar and hitting the enter button will take you to a New page document. On that page you can click the CREATE tab to bring up the editing box.

Alternatively, any page that contains a red link such as example page indicates that the page does not exist. Clicking on the link will take you to a page where the first version of the page can be written and saved.

Creating a subpage

Subpages can be thought of as children of articles in the document tree. As such they should be used when you wish to create an article that is intrinsically linked to the parent article. Articles that have been translated into different languages use subpages to store the separate content. For example, the Main Page has a Main Page/pl which has the translated content in Polish.

To create a subpage, the same procedure should be used as above using the forward slash (/) to indicate the separation between the original page, and the subpage. Example:- Original page name/Subpage name.

Saving pages

Once edited, before actually saving your changes, make good use of the 'Show preview' button to preview the changes. Avoid saving too often or saving just to see what it looks like. Each page save will generate an entry in recent changes. Repeated trivial and unnecessary saves tend to clutter up that list and inconvenience users who make use of that list to watch for vandals or misinformed edits. Once you are happy with your changes, enter a brief summary of what changes you have made in the 'Summary:' text box and click the 'Save page' button.

The 'This is a minor edit' tick box should be used if small changes (for example, grammar corrections) have been made. The 'Watch this page' tick box is useful to keep an eye on changes to that article. These will show up in your 'My Watchlist' (found at the top right of the wiki when you are logged in) if any changes have been made.

See also