Help:Creating a new page: Difference between revisions

From PZwiki
(→‎Boilerplates: Add some info about the {{Header}} template)
m (Automated Formatting)
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Languages}}
{{Tutorial nav}}
&emsp;<sup>< [[Help:Contents|Contents]]</sup>
{{Improve|Requires new infobox}}
{{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 21: Line 20:


===From the search box===
===From the search box===
[[File:Vector search results.png|thumb]]
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: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:
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>


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.
Line 38: Line 36:
[[: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 ''Header'' bar and ''Infobox''/''Image''.


*''[[Template:Languages|Language]]'' bar — adds a list of languages that the page can be found in.
*'''[[Template:Header|Header]]''' bar — adds a header with '''category navigation''', as well as automatically [[mw:Help:Categories|categorizing]] the page.
**Placed at the top of every page that is in more than one language.
**Example: <code><nowiki>{{Languages}}</nowiki></code>
::Will produce, at the [[Main Page]]:
{{Languages|Main Page}}
*''[[Template:Header|Header]]'' bar — adds a header with '''category navigation''', '''version updated''' as well as automatically [[mw:Help:Categories|categorizing]] the page, and adds '''background''' to the whole page.
**Should be placed at the top of the page, under the language bar, all other content should be added below this:
**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, also adding it to the last category,
**'''category navigation''' — displays the categorical path within the navigational network, also adding it to the last category,
**'''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,
**Example: {{tll|Header|Project Zomboid|Items|Food}}
**'''background''' — presents the article within a type defined background color. If the page is short enough and without a navbox, {{Tlx|Clear}} template may be required to be placed at the bottom temporarily. 
*:Will produce:
**Example: <code><nowiki>{{Header|The Game World|Items|Consumables|Food|Perishable Food|type=Food|version=Version 41|incver=78.16}}</nowiki></code>
{{Header|Project Zomboid|Items|Food|hidecat=true}}
::Will produce:
{{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>
A whole page's worth of content in here.</div>
{{Infobox normal|image=Image.png |weight=?}}
*'''[[Template:Page version|Page version]]''' is an [[PZwiki:Mboxes|mbox]] used to keep track of the version the page was last revised. This informs both editors and readers alike.
*''[[: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;
**Displays the version the article was last updated on, while also adding it to the version category, used to easily identify outdated articles,
**Example: <code><nowiki>{{Infobox normal|image=Image.png|weight=?}}</nowiki></code>
**Text will change based on the version number, e.g., stable, beta, or outdated.
::Will produce: (displayed on the far right){{Clear}}
**Example: {{tll|Page version|41.78.16}}
[[File:Image.png|thumb|right|Text that would go below the image.]]
*:Will produce:
*''Image'' — is very similar to the infobox, except it does not display information and will only contain an image and a caption;
{{Page version|41.78.16|hidecat=true}}
<nowiki>{{Infobox normal|image=Image.png|weight=?}}</nowiki>
*'''[[: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: {{tll|Infobox normal|image=Image.png|weight=?}}
*:Will produce: (displayed on the right)
{{Clear}}
[[File:Image.png|thumb|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 [[: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: <code><nowiki>[[File:Image.png|thumb|right|Text that would go below the image.]]</nowiki></code>
**Example: <code><nowiki>[[File:Image.png|thumb|Text that would go below the image.]]</nowiki></code>
::Will produce: (displayed on the far right){{Clear}}
*:Will produce: (displayed on the right)
{{Clear}}


===Other formats===
===Other formats===
Line 68: Line 67:


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.
*[[PZwiki:Mboxes|Message box]] — adds a message box indicating what is either wrong with the page, or what the page is about.
**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 ''Header'' bar.
**Should be added at the top of the page, under the ''Language'' bar.
**Example: {{tll|Stub}}
**Example: <code><nowiki>{{</nowiki>VersionNotice|version=Version 41|incver=78.16}}</code>
*:Will produce:
::Will produce:
:::{{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).
**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.
*''[[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 ''Header'' bar.
**Example: <code><nowiki>{{</nowiki>Stub}}</code>
::Will produce:
{{Stub|hidecat=true}}
{{Stub|hidecat=true}}
<!--{{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.}}-->
*Other templates:
*Other templates:
**''[[Template:Crafting header|Crafting header]]'' — allows adding recipes to the page.
**[[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.
**[[Template:About|About]] — used for disambiguation, directing the reader to another page they may have been looking for instead.


[[Category:Help]]
{{ll|Category:Help}}

Revision as of 14:38, 14 April 2024

WhiskeyHalf.png
This page may be in need of improvement.
Requires new infobox
Editors are encouraged to add any missing information to the article, while verifying that the article's current content is correct.

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

Vector search results.png

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/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 Header bar and Infobox/Image.

  • Header bar — adds a header with category navigation, as well as automatically categorizing 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, also adding it to the last category,
    • Example: {{Header|Project Zomboid|Items|Food}}
    Will produce:
Project ZomboidItemsFoodCreating a new page

A whole page's worth of content in here.

  • Page version is an mbox used to keep track of the version the page was last revised. This informs both editors and readers alike.
    • Displays the version the article was last updated on, while also adding it to the version category, used to easily identify outdated articles,
    • Text will change based on the version number, e.g., stable, beta, or outdated.
    • Example: {{Page version|41.78.16}}
    Will produce:
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]

{{Infobox normal|image=Image.png|weight=?}}

  • 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;
    Will produce: (displayed on the 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|Text that would go below the image.]]
    Will produce: (displayed on the 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.

  • Message box — adds a message 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 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.