From PZwiki
Jump to: navigation, search
[view] [edit] [history] [purge] Template documentation
Template used at the top of a page for navigation.


<div class="header" style="margin: 5px; align: right; background: #{{hc|{{{type|}}}}}; padding: 13px; text-align: left; font-size: 100%; color:#000000; border: 1px solid #{{hc|{{{type|}}}|border}}"><!-- Code for Background Colour -->
{{#if: {{{hidever|}}}||<div style="float: right;background: #{{hc|{{{type|}}}}};border: 1px solid #{{hc|{{{type|}}}|border}}; margin: -30pt -10.5pt"> '''Page Updated @ {{{version|Unknown Version}}}{{#if: {{{version|}}}|{{#if:{{{incver|}}}|.{{{incver|}}}|}}|}}''' </div>}}<!-- Code for Version Tag at top -->
<div style="float: left;background: #{{hc|{{{type|}}}}};border: 1px solid #{{hc|{{{type|}}}|border}}; margin: -30pt -10.5pt">   '''Navigation''' - [[:Category:Main|Main Index]] -> {{#if:{{{1|}}}|[[:Category:{{{1}}}{{!}}{{{1}}}]] ->|}} {{#if:{{{2|}}}|[[:Category:{{{2}}}{{!}}{{{2}}}]] ->|}} {{#if:{{{3|}}}|[[:Category:{{{3}}}{{!}}{{{3}}}]] ->|}} {{#if:{{{4|}}}|[[:Category:{{{4}}}{{!}}{{{4}}}]] ->|}} {{#if:{{{5|}}}|[[:Category:{{{5}}}{{!}}{{{5}}}]] ->|}} {{#if:{{{6|}}}|[[:Category:{{{6}}}{{!}}{{{6}}}]] ->|}} [[{{PAGENAME}}]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->

{{#if: {{{hidecat|}}}| |
{{#if: {{{hidever|}}}||[[Category:{{{version|Unknown Version}}}]]}}


This template must be placed at the top of a page, under the Language template if it is present.

{{header|First-level category|Second-level category|Third-level category|etc.|type=Food|version=Version 34|incver=28}}
  • Navigational Categories - The name of categories leading up to the item/page in question, starting from the main index (automatically included.) See Category:Main for a list of categories that branch off of the main index. A category that is included in the template will add a [[category:name]] to the page automatically. Up to 6 categories between the index and current page can be used.
  • type (optional) - The page's content type. Used to colorize a page's background. Currently accepts Food or Drink for green and Neutral for grey. Omitting/Using anything else results in a blue color.
  • version - The major Project Zomboid version this page's content is up to date to. When updating a page use Version (#). The contents of this parameter will also be categorized on the page.
  • incver - The incremental (minor) PZ version this page's content is up to date to. Used to avoid creating many categories for a single release version.
  • hidecat (optional) - If present in the template (no matter the contents) the template will not automatically create categories.
  • hidever (optional) - If present in the template (no matter the contents) the page version box will be hidden. Version category is also removed. version and incver may be omitted if hidever is used.


{{header|The Game World|Items|Consumables|Food|Perishable Food|type=Food|version=Version 34|incver=28}}

Will produce:

A whole page's worth of content in here.


{{header|The Game World|Items|Weapons|hidever=true}}

Will produce:

Another page of content in here.


Q: Why is there a </div> missing in the template?
A: This is intentional. It means no matter what is added to the page in the future it will be included in the template's background. It automatically stops when it reaches the footer anyways. If in the future this messes up pages it will change.

Q: Why do I need to use version and incver when adding the page's version?

A: The reason for this is to avoid having several different categories for a single release version. For example, without both we would end up with a category:Version 36, category:Version 36.1, 36.2, 36.3... You see where this is going.
Documentation transcluded from Template:Header/doc.
Editors can experiment in this template's sandbox (create)