Help:Creating a new page: Difference between revisions

From PZwiki
m (Minor cleanups)
(Update page)
Line 1: Line 1:
{{Languages}}
{{Languages}}
{| width="80%" align="center"
{| width="80%" align="center"
| {{Tutorial navigation}}  
| {{Tutorial navigation}}
|}
|}
Creating a new page is as easy as clicking create… literally.
Creating a new page is as easy as clicking create… literally.
Line 9: Line 9:


===Using links===
===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, <span style="color: #ba0000">like this</span>.
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>.


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.
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.
Line 19: Line 19:
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?
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.
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===
===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.  
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|border|500px|left]] <br clear=all>
[[File:Vector search results.png|border|500px|left]]<br clear=all>


===Using the URL===
===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;
You can also use a URL for creating a new page. The URL to an article of the wiki usually looks like this:
*<code><nowiki>https://pzwiki.net/wiki/</nowiki>'''Article'''</code>


* <code><nowiki>https://pzwiki.net/wiki/</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.


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.
 
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.


==Page format==
==Page format==
Line 40: Line 39:
[[:Category:Boilerplates|Boilerplates]] are premade page templates we have set up for you to make creating a new page quick and easy. These boilerplates should be used as a starting place when creating new pages. You can think of them as being forms where you ultimately just fill in the blanks.
[[:Category:Boilerplates|Boilerplates]] are premade page templates we have set up for you to make creating a new page quick and easy. These boilerplates should be used as a starting place when creating new pages. You can think of them as being forms where you ultimately just fill in the blanks.


Each boilerplate contains a ''language'' bar, ''header'' bar and ''infobox/image''.
Each boilerplate contains a ''Language'' bar, ''Header'' bar and ''Infobox''/''Image''.


* ''[[Template:Languages|language]]'' bar — Adds a list of languages that the page can be found in;
*''[[Template:Languages|Language]]'' bar — adds a list of languages that the page can be found in.
** Placed at the top of every page that is in more than one language;
**Placed at the top of every page that is in more than one language.
** Example:  
**Example: <code><nowiki>{{Languages}}</nowiki></code>
<pre>{{Languages|Main Page}}</pre>  
::Will produce, at the [[Main Page]]:
{{Languages|Main Page}}
*''[[Template:Header|Header]]'' bar — adds '''category navigation''', '''version updated''' and a '''background''' to the page.
**Should be placed at the top of the page, under the language bar, all other content should be added below this:
**'''category navigation''' — displays the categorical path within the navigational network,
**'''version updated''' — displays the version the article was last updated on, while also adding it to the version category, used to easily identify outdated articles,
**'''background''' — presents the article within a type defined background color.
**Example: <code><nowiki>{{Header|The Game World|Items|Consumables|Food|Perishable Food|type=Food|version=Version 41|incver=78.16}}</nowiki></code>
::Will produce:
::Will produce:
{{Languages|Main Page}}
{{Header|The Game World|Items|Consumables|Food|Perishable Food|type=Food|version=Version 41|incver=78.16|hidecat=true}}
 
A whole page's worth of content in here.</div>
* ''[[Template:Header|header]]'' bar — Adds ''category navigation'', ''version updated'' and a ''background'' to the page.
** Should be placed at the top of the page, under the language bar, all other content should be added below this;
** '''category navigation''' — Displays the categorical path within the navigational network;
** '''version updated''' — Displays the version the article was last updated on, while also adding it to the version category, used to easily identify outdated articles;
** '''background''' — Presents the article within a type defined background colour.
** Example:
<pre>{{Header|The Game World|Items|Consumables|Food|Perishable Food|type=Food|version=Version 39|incver=58}}</pre>
::Will produce:<br><br>
{{Header|The Game World|Items|Consumables|Food|Perishable Food|type=Food|version=Version 39|incver=58|hidecat=true}}
A whole page's worth of content in here.</div><br>
 
{{Infobox normal|image=Image.png |weight=?}}
{{Infobox normal|image=Image.png |weight=?}}
* ''[[:Category:Infobox|infobox]]'' — Is a fixed-format table added to the top right-hand corner of articles to consistently present a summary of some unifying aspect that the articles share;
*''[[:Category:Infobox|Infobox]]'' — is a fixed-format table added to the top right-hand corner of articles to consistently present a summary of some unifying aspect that the articles share;
** Example: <code><nowiki>{{Infobox normal|image=Image.png |weight=?}}</nowiki></code>
**Example: <code><nowiki>{{Infobox normal|image=Image.png|weight=?}}</nowiki></code>
::Will produce: (displayed on the far right)<br><br><br><br><br><br>
::Will produce: (displayed on the far right){{Clear}}
 
[[File:Image.png|thumb|right|Text that would go below the image.]]
* ''image'' — Is very similar to the infobox, except it does not display information and will only contain an image and a caption;
*''Image'' — is very similar to the infobox, except it does not display information and will only contain an image and a caption;
** Used on pages that don't have an infobox, or just simply need an image, such as in [[:Category:Guides|Guides]].
**Used on pages that don't have an infobox, or just simply need an image, such as in [[:Category:Guides|Guides]].
** Example:  
**Example: <code><nowiki>[[File:Image.png|thumb|right|Text that would go below the image.]]</nowiki></code>
{| style="float:right; border:1px solid FFFFFF;margin:.46em 0 0 .2em"
::Will produce: (displayed on the far right){{Clear}}
|- style="font-size:100%"
| valign="top" |[[Image:Image.png]]<!--
  --><br> ''Text that would go below the image.''
|}
<pre>
{| style="float:right; border:1px solid FFFFFF;margin:.46em 0 0 .2em"
|- style="font-size:100%"
| valign="top" |[[Image:Image.png]]<!--
  --><br> ''Text that would go below the image.''
|}
</pre>
:: Will produce: (displayed on the far right)<br><br><br><br>


===Other formats===
===Other formats===
Boilerplates are currently the standard formats used within the wiki. However not all page types have their dedicated boilerplate, or you (the editor) may be unsure which boilerplates to use.
Boilerplates are currently the standard formats used within the wiki. However, not all page types have their dedicated boilerplate, or you (the editor) may be unsure which boilerplates to use.


Rather than leaving it empty, we ask that you add these if unsure what to add.
Rather than leaving it empty, we ask that you add these if unsure what to add.
* ''[[Template:VersionNotice|Version Notice]]'' — Displays the version the article was last updated on, while also adding it to the version category;
*''[[Template:VersionNotice|Version notice]]'' — displays the version the article was last updated on, while also adding it to the version category.
** This is the bare minimum of what ''should'' be added to any page created, as it allows us to identify which pages might be outdated.
**This is the bare minimum of what ''should'' be added to any page created, as it allows us to identify which pages might be outdated.
** Should be added at the top of the page, under the ''language bar''.
**Should be added at the top of the page, under the ''Language'' bar.
** Example: <code><nowiki>{{</nowiki>VersionNotice|version=Version 39|incver=58}}</code>
**Example: <code><nowiki>{{</nowiki>VersionNotice|version=Version 41|incver=78.16}}</code>
:: Will produce:  
::Will produce:
::: ''Note: This page was updated with [[Version history|Version 39.58]] of Project Zomboid in mind. If the page turns out to be outdated please add an outdated [[Template:Notice|Notice]] banner.''
:::{{VersionNotice|version=Version 41|incver=78.16|hidecat=true}}
* ''[[:Category:Main|Category]]'' — Adds the article to the designated category (seen at the bottom of the page);
*''[[:Category:Main|Category]]'' — adds the article to the designated category (seen at the bottom of the page).
** Pick any one or more categories that you believe fit the page.  
**Pick one or more categories that you believe fit the page.
** Example: <code><nowiki>[[</nowiki>Category:Tools]]</code> will add the page to the [[:Category:Tools|Tools]] category.
**Example: <code><nowiki>[[</nowiki>Category:Tools]]</code> will add the page to the [[:Category:Tools|Tools]] category.
* ''[[Template:Notice|Notice]]'' box — Adds a notice box indicating what is either wrong with the page, or what the page is about.  
*''[[Template:Notice|Notice]]'' box — adds a notice box indicating what is either wrong with the page, or what the page is about.
** Should be added at the top of the page, under the ''language bar'' and ''boilerplate''.
**Should be added at the top of the page, under the ''Language'' bar and ''Header'' bar.
** Example: <code><nowiki>{{</nowiki>Notice|Short}}</code>
**Example: <code><nowiki>{{</nowiki>Stub}}</code>
:: Will produce:
::Will produce:
{{NoticeBox|1|#0af|file=Notepad.png|width=32px|height=32px|desc=This article may '''need more content'''. Editors are encouraged to add new material to the page while expanding upon current topics.}}
{{Stub|hidecat=true}}
* Other templates:
<!--{{NoticeBox|1|#0af|file=Notepad.png|width=32px|height=32px|desc=This article may '''need more content'''. Editors are encouraged to add new material to the page while expanding upon current topics.}}-->
** ''[[Template:Crafting header|Crafting header]]'' — Allows adding recipes to the page.
*Other templates:
** ''[[Template:About|About]]'' — Used for disambiguation, directing the reader to another page they may have been looking for instead.
**''[[Template:Crafting header|Crafting header]]'' — allows adding recipes to the page.
**''[[Template:About|About]]'' — used for disambiguation, directing the reader to another page they may have been looking for instead.


==Edit formatting==
==Edit formatting==
Line 109: Line 93:
*[[Help:Images]]
*[[Help:Images]]
*[[Help:Tables]]
*[[Help:Tables]]


[[Category:Help]]
[[Category:Help]]

Revision as of 14:49, 6 August 2023

Creating a new page is as easy as clicking create… literally.

Create page

There are several ways to create a new 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.

Vector search results.png


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/Article

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.

Page format

There are a variety of formats we use within the wiki to ensure there is consistency between each page type.

Boilerplates

Boilerplates are premade page templates we have set up for you to make creating a new page quick and easy. These boilerplates should be used as a starting place when creating new pages. You can think of them as being forms where you ultimately just fill in the blanks.

Each boilerplate contains a Language bar, Header bar and Infobox/Image.

  • Language bar — adds a list of languages that the page can be found in.
    • Placed at the top of every page that is in more than one language.
    • Example: {{Languages}}
Will produce, at the Project Zomboid Wiki:
  • Header bar — adds category navigation, version updated and a background to the page.
    • Should be placed at the top of the page, under the language bar, all other content should be added below this:
    • category navigation — displays the categorical path within the navigational network,
    • version updated — displays the version the article was last updated on, while also adding it to the version category, used to easily identify outdated articles,
    • background — presents the article within a type defined background color.
    • Example: {{Header|The Game World|Items|Consumables|Food|Perishable Food|type=Food|version=Version 41|incver=78.16}}
Will produce:
The Game WorldItemsConsumablesFoodPerishable FoodCreating a new page

A whole page's worth of content in here.

Creating a new page
{{{display_name}}}
General
Category Item
Encumbrance
Heavy Load
?
Technical details
Base ID Item IDs
  • Infobox — is a fixed-format table added to the top right-hand corner of articles to consistently present a summary of some unifying aspect that the articles share;
    • Example: {{Infobox normal|image=Image.png|weight=?}}
Will produce: (displayed on the far right)
Text that would go below the image.
  • Image — is very similar to the infobox, except it does not display information and will only contain an image and a caption;
    • Used on pages that don't have an infobox, or just simply need an image, such as in Guides.
    • Example: [[File:Image.png|thumb|right|Text that would go below the image.]]
Will produce: (displayed on the far right)

Other formats

Boilerplates are currently the standard formats used within the wiki. However, not all page types have their dedicated boilerplate, or you (the editor) may be unsure which boilerplates to use.

Rather than leaving it empty, we ask that you add these if unsure what to add.

  • Version notice — displays the version the article was last updated on, while also adding it to the version category.
    • This is the bare minimum of what should be added to any page created, as it allows us to identify which pages might be outdated.
    • Should be added at the top of the page, under the Language bar.
    • Example: {{VersionNotice|version=Version 41|incver=78.16}}
Will produce:
Template:VersionNotice
  • Category — adds the article to the designated category (seen at the bottom of the page).
    • Pick one or more categories that you believe fit the page.
    • Example: [[Category:Tools]] will add the page to the Tools category.
  • Notice box — adds a notice box indicating what is either wrong with the page, or what the page is about.
    • Should be added at the top of the page, under the Language bar and Header bar.
    • Example: {{Stub}}
Will produce:
Notebook.png
This page may need more content.
Editors are encouraged to add new material to the page while expanding upon current topics.
  • Other templates:
    • Crafting header — allows adding recipes to the page.
    • About — used for disambiguation, directing the reader to another page they may have been looking for instead.

Edit formatting