Help:Contents: Difference between revisions

From PZwiki
No edit summary
(adjusted colouring)
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Creating a Page==
{| role="presentation" width=80% style="text-align:center;" cellspacing=10
===Using links===
| valign="top" colspan="2" | <!--
If you or any other contributor create a link to an article that does not exist yet, the link will be colored red, <span style="color: #ba0000">like this</span>.<br>
####################
 
### NAVIGATION  ###
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.<br>
####################
 
-->{{Languages}}{{Tutorial navigation}}
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.
|- valign="top"
 
| width=50% style="text-align:right" |<!--
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).<br>
####################
 
### LEFT COLUMN  ###
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? <br>
####################
 
-->
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.
<span style="float: left;">[[File:ScholarSpiffo.png|250px|link=]]</span><span style="font-size:150%">'''Welcome to the<br>Zomboid help articles'''</span>
 
 
=== 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.
[[File:Sg1.PNG|thumb|500px|left]] <br clear=all>
 
 
=== 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: &nbsp;
 
<code><nowiki>https://pzwiki.net/wiki/Game_Modes</nowiki>'''ARTICLE'''</code> &nbsp;
 
If you replace <code>'''ARTICLE'''</code> 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 <code><nowiki>''this''</nowiki></code>.
 
=== Text formatting markup ===
 
{| class="wikitable"
! width=10% |Description
! width=45% | You type
! width=45% | You get
|-
! colspan="3" style="background: #CFCFCF" | Character (inline) formatting – ''applies anywhere''
|-
| Italic text
| <pre>
''italic''
</pre>
|
''italic''
|-
| Bold text
| <pre>
'''bold'''
</pre>
|
'''bold'''
|-
| Bold and italic
| <pre>
'''''bold & italic'''''
</pre>
|
'''''bold & italic'''''
 
|-
| Escape wiki markup
| <pre>
&lt;nowiki&gt;no ''markup''&lt;/nowiki&gt;
</pre>
|
<nowiki>no ''markup''</nowiki>
|-
! colspan="3" style="background: #CFCFCF" | Section formatting – ''only at the beginning of the line''
|-
| Section Headings of different levels
| <pre>
 
=== Level 2 ===
 
==== Level 3 ====
 
====== Level 4 ======
 
======= Level 5 =======
 
========= Level 6 =========
 
</pre>
|
<!-- HTML to avoid creating new sections again -->
 
<h2>Level 2</h2>
 
<h3>Level 3</h3>
 
<h4>Level 4</h4>
 
<h5>Level 5</h5>
 
<h6>Level 6</h6>
 
|-
| Horizontal rule
| <pre>
Text before
----
----
Text after
Project Zomboid's complete guide to wiki editing
</pre>
|
Text before
----
Text after
|-
| Bullet list
|
<pre>


New to wiki editing?


* Start each line
<span style="font-size:125%">'''[[Help:Editing for beginners|Get Started]]'''</span>
* 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.


 
{| width=100% style="background-color: #F0EEDE; margin-top:6px; border: black solid 1px;" cellspacing=0
* combine bullet list
|-  
** with definition
| colspan="2" style="text-align: center; font-size: 150%; color:#FFF; background: #000;"| <div class="header" style="align: center;"><small>'''Advanced resources'''<br></small> </div>
::- definition
|- style="vertical-align:top; text-align:left;"
** creates empty space
| style="width:50%; height:65px; padding: 5px;"|  
 
:[https://www.mediawiki.org/wiki/Help:Templates Writing templates]
* combine bullet list
:[https://www.mediawiki.org/wiki/Help:Magic_words Magic words]
** with definition
| style="width:50%; padding: 5px;"|  
*:- definition
:[https://www.mediawiki.org/wiki/Help:Namespaces Namespaces]
** without empty spaces
:[https://www.mediawiki.org/wiki/Help:Special_pages Special pages]
*bullet list
|}
:- definition
| width=50% | <!--
:* sublist that doesn't create empty
####################
:* spaces after definition
### RIGHT COLUMN ###
 
####################
</pre>
-->
|
{| width=100% style="background-color: #F0EEDE; margin-top:6px; border: black solid 1px;" cellspacing=0
 
|-  
* Start each line
| colspan="2" style="text-align: center; font-size: 150%; color:#FFF; background: #000;"| <div class="header" style="align: center;"><small>'''PZwiki editing'''<br></small> </div>
* with an (*).
|- style="vertical-align:top; text-align:left;"
** More asterisks give deeper
| style="width:50%; padding: 5px;"|  
*** and deeper levels.
:[[Help:Editing for beginners|Editing for beginners]]
* Line breaks <br />don't break levels.
:[[Help:Editing pages|Editing pages]]
*** But jumping levels creates empty space.
:[[Help:Creating a new page|Creating a new page]]
Any other start ends the list.
:[[Help:Formatting|Formatting]]
* combine bullet list
| style="width:50%; padding: 5px;"|
** with definition
:[[Help:Links|Links]]
::- definition
:[[Help:Images|Images]]
** creates empty space
:[[Help:Tables|Tables]]
* combine bullet list
:[[PZwiki:Style guide|Style guide]]
** with definition
|}
*:- definition
{| width=100% style="background-color: #F0EEDE; margin-top:18px; border: black solid 1px;" cellspacing=0
** without empty spaces
|-
*bullet list
| colspan="2" style="text-align: center; font-size: 150%; color:#FFF; background: #000;"| <div class="header" style="align: center;"><small>'''Basic resources'''<br></small> </div>
:- definition
|- style="vertical-align:top; text-align:left;"
:* sublist that doesn't create empty
| style="width:50%; padding: 5px;"|
:* spaces after definition
:[https://www.mediawiki.org/wiki/Help:Editing_pages Editing pages]
 
:[https://www.mediawiki.org/wiki/Help:Formatting Formatting]
|-
:[https://www.mediawiki.org/wiki/Help::Links Links]
| Definition list
:[https://www.mediawiki.org/wiki/Help:Images Images]
| <pre>
:[https://www.mediawiki.org/wiki/Help:Tables Tables]
 
:[https://www.mediawiki.org/wiki/Help:Starting_a_new_page Starting a new page]
;item 1
| style="width:50%; padding: 5px;"|
: definition 1
:[https://www.mediawiki.org/wiki/Help:Subpages Subpages]
;item 2
:[https://www.mediawiki.org/wiki/Help:Moving_a_page Moving (renaming) a page]
: definition 2-1
:[https://www.mediawiki.org/wiki/Help:Categories Categories]
: definition 2-2
:[https://www.mediawiki.org/wiki/Help:Talk_pages Talk pages]
 
:[https://www.mediawiki.org/wiki/Help:Cite References]
</pre>
:[[wikipedia:Wikipedia:Manual of style|Manual of style]]
|
 
;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 &lt;nowiki><br />&lt;/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>
|}
|}
 
|- style="vertical-align:top;"
 
| colspan="2" | <!--
=== Paragraphs ===
####################
 
### FOOTER      ###
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>&lt;br /></code>.
####################
 
-->''PZWiki uses [https://www.mediawiki.org/wiki/MediaWiki MediaWiki] wiki software, further help using the software can be found on the [https://www.mediawiki.org/wiki/Help:Contents contents] page.''
=== HTML tags ===
 
Some [[wikipedia:HTML|HTML]] tags are allowed in MediaWiki, for example <code>&lt;code></code>, <code>&lt;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&lt;/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
&lt;/pre>
</pre>
 
|
<pre style="color: red">
Text is '''preformatted'''  
with a style and
''markups'' '''''cannot''''' be done
</pre>
|}
|}


==== Nowiki for HTML ====
[[Category:Help]]
 
<<nowiki />nowiki /> can prohibit (HTML) tags:
* <nowiki><<</nowiki>nowiki />pre> &nbsp;&rarr; <<nowiki/>pre>
But ''not'' &amp; symbol escapes:
* &<<nowiki />nowiki />amp; &nbsp;&rarr; &amp;
 
To print &amp; symbol escapes as text, use "<code>&amp;amp;</code>" to replace the "&" character (eg. type "<code>&amp;amp;nbsp;</code>", which results in "<code>&amp;nbsp;</code>").

Revision as of 16:37, 11 April 2019