Help:Contents: Difference between revisions
No edit summary |
No edit summary |
||
Line 164: | Line 164: | ||
:* sublist that doesn't create empty | :* sublist that doesn't create empty | ||
:* spaces after definition | :* spaces after definition | ||
|- | |||
| Definition list | |||
| <pre> | |||
;item 1 | |||
: definition 1 | |||
;item 2 | |||
: definition 2-1 | |||
: definition 2-2 | |||
</pre> | |||
| | |||
;item 1 | |||
: definition 1 | |||
;item 2 | |||
: definition 2-1 | |||
: definition 2-2 | |||
|- | |||
| Indent text | |||
| <pre> | |||
: Single indent | |||
:: Double indent | |||
::::: Multiple indent | |||
</pre> | |||
| | |||
: Single indent | |||
:: Double indent | |||
::::: Multiple indent | |||
|- | |||
| Mixture of different types of list | |||
| | |||
<pre> | |||
# one | |||
# two | |||
#* two point one | |||
#* two point two | |||
# three | |||
#; three item one | |||
#: three def one | |||
# four | |||
#: four def one | |||
#: this looks like a continuation | |||
#: and is often used | |||
#: instead <br />of <nowiki><br /></nowiki> | |||
# five | |||
## five sub 1 | |||
### five sub 1 sub 1 | |||
## five sub 2 | |||
</pre> | |||
| | |||
# one | |||
# two | |||
#* two point one | |||
#* two point two | |||
# three | |||
#; three item one | |||
#: three def one | |||
# four | |||
#: four def one | |||
#: this looks like a continuation | |||
#: and is often used | |||
#: instead <br />of <nowiki><br /></nowiki> | |||
# five | |||
## five sub 1 | |||
### five sub 1 sub 1 | |||
## five sub 2{{anchor|pre}} | |||
|- | |||
| Preformatted text | |||
| <pre> | |||
Start each line with a space. | |||
Text is '''preformatted''' and | |||
''markups'' '''''can''''' be done. | |||
</pre> | |||
| | |||
Start each line with a space. | |||
Text is '''preformatted''' and | |||
''markups'' '''''can''''' be done. | |||
|- | |||
| Preformatted text blocks | |||
| <pre> | |||
<nowiki><nowiki>Start with a space in the first column, | |||
(before the <nowiki>). | |||
Then your block format will be | |||
maintained. | |||
This is good for copying in code blocks: | |||
def function(): | |||
"""documentation string""" | |||
if True: | |||
print True | |||
else: | |||
print False</nowiki></nowiki> | |||
</pre> | |||
| | |||
<nowiki>Start with a space in the first column, | |||
(before the <nowiki>). | |||
Then your block format will be | |||
maintained. | |||
This is good for copying in code blocks: | |||
def function(): | |||
"""documentation string""" | |||
if True: | |||
print True | |||
else: | |||
print False</nowiki> | |||
|} | |||
=== Paragraphs === | |||
MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <code><br /></code>. | |||
=== HTML tags === | |||
Some [[wikipedia:HTML|HTML]] tags are allowed in MediaWiki, for example <code><code></code>, <code><div></code>, <code><nowiki><span></nowiki></code> and <code><nowiki><font></nowiki></code>. These apply anywhere you insert them. | |||
{| class="wikitable" | |||
! Description | |||
! width=40% | You type | |||
! width=40% | You get | |||
|- | |||
| Inserted <br />(Displays as underline in most browsers) | |||
| <pre> | |||
<ins>Inserted</ins> | |||
or | |||
<u>Underline</u> | |||
</pre> | |||
| | |||
<ins>Inserted</ins> | |||
or | |||
<u>Underline</u> | |||
|- | |||
| Deleted <br />(Displays as strikethrough in most browsers) | |||
| <pre> | |||
<s>Struck out</s> | |||
or | |||
<del>Deleted</del> | |||
</pre> | |||
| | |||
<s>Struck out</s> | |||
or | |||
<del>Deleted</del> | |||
|- | |||
| Fixed width text | |||
| <pre> | |||
<code>Source code</code> | |||
or | |||
<code>Fixed width text</code> | |||
</pre> | |||
| | |||
<code>Source code</code> | |||
or | |||
<code>Fixed width text</code> | |||
|- | |||
| Blockquotes | |||
| <pre> | |||
Text before | |||
<blockquote>Blockquote</blockquote> | |||
Text after | |||
</pre> | |||
| | |||
Text before | |||
<blockquote>Blockquote</blockquote> | |||
Text after | |||
|- | |||
| Comment | |||
| <pre> | |||
<!-- This is a comment --> | |||
Comments are visible only | |||
in the edit zone. | |||
</pre> | |||
| | |||
<!-- This is a comment --> | |||
Comments are visible only | |||
in the edit zone. | |||
|- | |||
| Completely preformatted text | |||
| <pre> | |||
<pre> | |||
Text is '''preformatted''' and | |||
''markups'' '''''cannot''''' be done</pre> | |||
</pre> | |||
| | |||
<pre> | |||
Text is '''preformatted''' and | |||
''markups'' '''''cannot''''' be done | |||
</pre> | |||
|- | |||
| '''Customized''' preformatted text | |||
| <pre> | |||
<pre style="color: red"> | |||
Text is '''preformatted''' | |||
with a style and | |||
''markups'' '''''cannot''''' be done | |||
</pre> | |||
</pre> | |||
| | |||
<pre style="color: red"> | |||
Text is '''preformatted''' | |||
with a style and | |||
''markups'' '''''cannot''''' be done | |||
</pre> | |||
|} | |||
==== Nowiki for HTML ==== | |||
<<nowiki />nowiki /> can prohibit (HTML) tags: | |||
* <nowiki><<</nowiki>nowiki />pre> → <<nowiki/>pre> | |||
But ''not'' & symbol escapes: | |||
* &<<nowiki />nowiki />amp; → & | |||
To print & symbol escapes as text, use "<code>&amp;</code>" to replace the "&" character (eg. type "<code>&amp;nbsp;</code>", which results in "<code>&nbsp;</code>"). |
Revision as of 13:22, 20 September 2017
Creating a Page
Using links
If you or any other contributor create a link to an article that does not exist yet, the link will be colored red, like this.
Clicking a red link will take you to the edit page for the new article. Simply type your text, click save and the new page will be created.
Once the page has been created, the link will automatically change from red to blue (or purple for pages you've already visited) indicating that the article now exists.
Usually this is the best way to create a new page, because it means that right from the start, the page will be linked from at least one other place on the wiki (and typically you will want to mesh it into other related pages later).
If you are creating a new page without creating any link to it, you may need to ask yourself: Does this page really fit in with the topics already covered in the wiki?
Also, how are you expecting visitors to find this page? Normally there is no reason to create a page without first creating a red link to it.
From the search box
If you search for a page that doesn't exist (using the search box in the top right of the page) then you will be provided with a link to create the new page.
Using the URL
You can also use a URL for creating a new page. The URL to an article of the wiki usually looks like this:
https://pzwiki.net/wiki/Game_ModesARTICLE
If you replace ARTICLE
with the name of the page you want to create, you will be taken to a blank page, indicating that no article of that name exists yet.
Clicking the "Create" Tab at the top right of the page (next to the search function) will then take you to the edit page for that article, where you can create the new page by typing your text, and clicking submit.
Formatting
You can format your text by using wiki markup. This consists of normal characters like asterisks, apostrophes or equal signs which have a special function in the wiki, sometimes depending on their position. For example, to format a word in italic, you include it in two pairs of apostrophes like ''this''
.
Text formatting markup
Description | You type | You get |
---|---|---|
Character (inline) formatting – applies anywhere | ||
Italic text | ''italic'' |
italic |
Bold text | '''bold''' |
bold |
Bold and italic | '''''bold & italic''''' |
bold & italic |
Escape wiki markup | <nowiki>no ''markup''</nowiki> |
no ''markup'' |
Section formatting – only at the beginning of the line | ||
Section Headings of different levels | === Level 2 === ==== Level 3 ==== ====== Level 4 ====== ======= Level 5 ======= ========= Level 6 ========= |
Level 2Level 3Level 4Level 5Level 6 |
Horizontal rule | Text before ---- Text after |
Text before Text after |
Bullet list |
* Start each line * with an asterisk (*). ** More asterisks give deeper *** and deeper levels. * Line breaks <br />don't break levels. *** But jumping levels creates empty space. Any other start ends the list. * combine bullet list ** with definition ::- definition ** creates empty space * combine bullet list ** with definition *:- definition ** without empty spaces *bullet list :- definition :* sublist that doesn't create empty :* spaces after definition |
Any other start ends the list.
|
Definition list | ;item 1 : definition 1 ;item 2 : definition 2-1 : definition 2-2 |
|
Indent text | : Single indent :: Double indent ::::: Multiple indent |
|
Mixture of different types of list |
# one # two #* two point one #* two point two # three #; three item one #: three def one # four #: four def one #: this looks like a continuation #: and is often used #: instead <br />of <nowiki><br /></nowiki> # five ## five sub 1 ### five sub 1 sub 1 ## five sub 2 |
|
Preformatted text | Start each line with a space. Text is '''preformatted''' and ''markups'' '''''can''''' be done. |
Start each line with a space. Text is preformatted and markups can be done. |
Preformatted text blocks | <nowiki>Start with a space in the first column, (before the <nowiki>). Then your block format will be maintained. This is good for copying in code blocks: def function(): """documentation string""" if True: print True else: print False</nowiki> |
Start with a space in the first column, (before the <nowiki>). Then your block format will be maintained. This is good for copying in code blocks: def function(): """documentation string""" if True: print True else: print False |
Paragraphs
MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <br />
.
HTML tags
Some HTML tags are allowed in MediaWiki, for example <code>
, <div>
, <span>
and <font>
. These apply anywhere you insert them.
Description | You type | You get |
---|---|---|
Inserted (Displays as underline in most browsers) |
<ins>Inserted</ins> or <u>Underline</u> |
Inserted or Underline |
Deleted (Displays as strikethrough in most browsers) |
<s>Struck out</s> or <del>Deleted</del> |
or
|
Fixed width text | <code>Source code</code> or <code>Fixed width text</code> |
or
|
Blockquotes | Text before <blockquote>Blockquote</blockquote> Text after |
Text before
Text after |
Comment | <!-- This is a comment --> Comments are visible only in the edit zone. |
Comments are visible only in the edit zone. |
Completely preformatted text | <pre> Text is '''preformatted''' and ''markups'' '''''cannot''''' be done</pre> |
Text is '''preformatted''' and ''markups'' '''''cannot''''' be done |
Customized preformatted text | <pre style="color: red"> Text is '''preformatted''' with a style and ''markups'' '''''cannot''''' be done </pre> |
Text is '''preformatted''' with a style and ''markups'' '''''cannot''''' be done |
Nowiki for HTML
<nowiki /> can prohibit (HTML) tags:
- <<nowiki />pre> → <pre>
But not & symbol escapes:
- &<nowiki />amp; → &
To print & symbol escapes as text, use "&
" to replace the "&" character (eg. type "&nbsp;
", which results in "
").