Template:Navbox: Difference between revisions

From PZwiki
m (changed category to navbox)
(moved from /sandbox - doc WIP)
Line 1: Line 1:
<includeonly>
<noinclude>
{{#ifexpr:{{{1}}}=0|
{{Documentation/sandbox|doc =
{{!}}-
{{Underconstruction}}
{{!}} style="width:200px;font-weight:bold; background-color: {{{titlebg|#eee}}}; padding-left: 1em; padding-right: 1em;" {{!}} {{{title|title}}}
{{Navbox/sandbox
{{!}} {{{content|content}}}
| title = Example
{{{extra|
| content = {{Navbox/sandbox
{{!}}}
  | title = Sub-title
}}}|{{{!}} class="collapsible" style="background-color: #f9f9f9; border: 1px solid #aaa; font-size: 90%;margin-left: auto;margin-right: auto;padding: 2px; text-align: center; width: 80%;"
  | content = {{Navbox/row
! colspan="2" style="border: 1px solid #aaa; font-weight:bold; font-size: 110%;background-color: {{{mainbg|#ccf}}};color:#000; padding-left: 1em; padding-right: 1em;" {{!}} <span style="float:left;"><sup>{{Vde|{{{name|Navbox}}}}}</sup></span>{{{main}}}
    | group = group1
{{!}}-
    | list = list, list, list, list, list, list, list, list, list, list, list, list,
{{!}} style="width:200px;font-weight:bold; background-color: {{{titlebg|#eee}}}; padding-left: 1em; padding-right: 1em;" {{!}} {{{title|title}}}
    }}{{Navbox/row
{{!}} {{{content|content}}}
    | group = group1
{{{extra|
    | list = list, list, list, list, list, list, list, list, list, list, list, list, list, list, list, list, list,
{{!}}}
    }}{{Navbox/row
}}}}}</includeonly><noinclude>{{languages|Template:Navbox}}{{Deprecated template|Navbox/Core}}
    | group = group1
    | list = list, list, list, list, list, list, list, list, list, list, list, list, list, list, list, list, list,
  }}
  | id = sub
  | image = [[File:Image.png|80px]]
  }}
| image = [[File:Image.png|100px]]
| id = sample
}}


 
}}
<pre>{{Navbox|1
{{ll|Category:Navbox}}
|name=Navbox
</noinclude><includeonly><div class="navbox">
|mainbg=#ccf
  <div class="navbox-row navbox-title">{{#if:{{{title|}}}|{{{title}}}|Title}}</div>
|main=test navbox
  {{#if:{{{above|}}}|<div class="navbox-row mw-collapsible">{{{above}}}</div>}}
|titlebg=#00f
  <div class="navbox-section mw-collapsible" id="mw-customcollapsible-navbox-{{{id|[[Category:Incorrect template usage]]}}}">
|title=1
  <div>{{{content|}}}</div>
|content=This works fine for one row, but if you..
  {{#if:{{{image|}}}|<div class="navbox-image">{{{image}}}</div>}}
|extra={{Navbox|0|titlebg=#f00|title=2|content=..add another navbox template in with '0' for the first parameter..
  </div>
|extra={{Navbox|0|titlebg=#0f0|title=3|content=it allows you to add more.}}}}}}</pre><br><br>{{Navbox|1
  <div class="navbox-toggle mw-customtoggle-navbox-{{{id|[[Category:Incorrect template usage]]}}}">×</div>
|name=Navbox
  {{#if:{{{below|}}}|<div class="navbox-row mw-collapsible" id="mw-customcollapsible-navbox-{{{id|[[Category:Incorrect template usage]]}}}">{{{below}}}</div>}}
|mainbg=#ccf
</div></includeonly>
|main=test navbox
|titlebg=#00f
|title=test1
|content=This works fine for one row, but if you..
|extra={{Navbox|0|titlebg=#f00|title=test2|content=..add another navbox template in with '0' for the first parameter..
|extra={{Navbox|0|titlebg=#0f0|title=test3|content=it allows you to add more.}}}}}}<br><br><br><br>Navbox templates:<br>
*[[Template:Navbox/Baggage]]
*[[Template:Navbox/Clothing]]
*[[Template:Navbox/Consumables]]
*[[Template:Navbox/Tools]]
*[[Template:Navbox/Weapons]]
</noinclude>
<noinclude>
[[Category:Navbox]]
</noinclude>

Revision as of 16:52, 3 January 2024

Notebook.pngTemplate Documentation
Hammer.png
This template is currently under construction.
It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well.
If this page has not been updated in a while, please replace this notice with {{Improve}}. Last edit was 03/01/2024.

Template:Navbox/sandbox

Editors can experiment in this template's sandbox.