Help:Contents: Difference between revisions

From PZwiki
No edit summary
mNo edit summary
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Creating a Page==
{| width=80% style="text-align:center;" cellspacing=10
===Using links===
|- style="vertical-align:top;"
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>
| colspan="2" | <!--
 
####################
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>
### 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.
-->{{Languages}}{{Tutorial navigation}}
 
|- style="vertical-align:top;"
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>
| width=50% |<!--
 
####################
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>
### LEFT COLUMN  ###
 
####################
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.
-->
 
{| width=100% style="text-align:right"
 
|- style="vertical_align:top;"
=== From the search box ===
| <span style="float: left;">[[File:ScholarSpiffo.png|250px|Float]]</span><span style="font-size:150%">'''Welcome to the<br>Zomboid help articles'''</span>
 
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
{| width=100% style="height:103px; background-color: #C3E4ED; margin-top:6px;" cellspacing=0
*** and deeper levels.
|-  
* Line breaks <br />don't break levels.
| colspan="2" style="text-align: center; font-size: 150%; color:#000; background: #9AC0CD;"| <div class="header" style="align: center;"><small>'''Advanced resources'''<br></small> </div>
*** But jumping levels creates empty space.
|- style="vertical-align:top; text-align:left;"
Any other start ends the list.
| style="width:50%; padding: 5px;"|  
 
:[https://www.mediawiki.org/wiki/Help:Templates Writing templates]
 
:[https://www.mediawiki.org/wiki/Help:Magic_words Magic words]
* combine bullet list
| style="width:50%; padding: 5px;"|  
** with definition
:[https://www.mediawiki.org/wiki/Help:Namespaces Namespaces]
::- definition
:[https://www.mediawiki.org/wiki/Help:Special_pages Special pages]
** creates empty space
|}
 
| width=50% | <!--
* combine bullet list
####################
** with definition
### RIGHT COLUMN ###
*:- definition
####################
** without empty spaces
-->
*bullet list
{| width=100% style="background-color: #C3E4ED; margin-top:6px;" cellspacing=0
:- definition
|-  
:* sublist that doesn't create empty
| colspan="2" style="text-align: center; font-size: 150%; color:#000; background: #9AC0CD;"| <div class="header" style="align: center;"><small>'''PZwiki editing'''<br></small> </div>
:* spaces after definition
|- style="vertical-align:top; text-align:left;"
 
| style="width:50%; padding: 5px;"|  
</pre>
:[[Help:Editing for beginners|Editing for beginners]]
|
:[[Help:Editing pages|Editing pages]]
 
:[[Help:Creating a new page|Creating a new page]]
* Start each line
:[[Help:Formatting|Formatting]]
* with an (*).
| style="width:50%; padding: 5px;"|
** More asterisks give deeper
:[[Help:Links|Links]]
*** and deeper levels.
:[[Help:Images|Images]]
* Line breaks <br />don't break levels.
:[[Help:Tables|Tables]]
*** But jumping levels creates empty space.
:[[PZwiki:Style guide|Style guide]]
Any other start ends the list.
|}
* combine bullet list
{| width=100% style="background-color: #C3E4ED; margin-top:18px;" cellspacing=0
** with definition
|-
::- definition
| colspan="2" style="text-align: center; font-size: 150%; color:#000; background: #9AC0CD;"| <div class="header" style="align: center;"><small>'''Basic resources'''<br></small> </div>
** creates empty space
|- style="vertical-align:top; text-align:left;"
* combine bullet list
| style="width:50%; padding: 5px;"|
** with definition
:[https://www.mediawiki.org/wiki/Help:Editing_pages Editing pages]
*:- definition
:[https://www.mediawiki.org/wiki/Help:Formatting Formatting]
** without empty spaces
:[https://www.mediawiki.org/wiki/Help::Links Links]
*bullet list
:[https://www.mediawiki.org/wiki/Help:Images Images]
:- definition
:[https://www.mediawiki.org/wiki/Help:Tables Tables]
:* sublist that doesn't create empty
:[https://www.mediawiki.org/wiki/Help:Starting_a_new_page Starting a new page]
:* spaces after definition
| style="width:50%; padding: 5px;"|
 
:[https://www.mediawiki.org/wiki/Help:Subpages Subpages]
|-
:[https://www.mediawiki.org/wiki/Help:Moving_a_page Moving (renaming) a page]
| Definition list
:[https://www.mediawiki.org/wiki/Help:Categories Categories]
| <pre>
:[https://www.mediawiki.org/wiki/Help:Talk_pages Talk pages]
 
:[https://www.mediawiki.org/wiki/Help:Cite References]
;item 1
:[[wikipedia:Wikipedia:Manual of style|Manual of style]]
: 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 &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 14:42, 13 January 2019