Template:Navbox construction: Difference between revisions

From PZwiki
m (title links to construction category)
(Update to new Navbox style)
Line 2: Line 2:
{{Documentation/sandbox|doc=
{{Documentation/sandbox|doc=
This template should be transcluded at the bottom of all construction pages.
This template should be transcluded at the bottom of all construction pages.
==Parameters==
The parameters are based on the type of article. The usable parameters are;<br>
*<code>carpentry</code>
*<code>metalworking</code><br>
The parameters are not case sensitive, but lowercase is recommended. Leaving parameters blank will result in both sub boxes remaining closed.


==Usage==
==Usage==
{{tll|Navbox construction|carpentry}}
{{Navbox construction|carpentry}}
{{tll|Navbox construction}}
{{tll|Navbox construction}}
{{Navbox construction}}
{{Navbox construction}}
Line 26: Line 35:
}}
}}
{{ll|Category:Navbox}}
{{ll|Category:Navbox}}
</noinclude><includeonly>{{Navbox
</noinclude><includeonly><includeonly>
{{Navbox
| title = {{ll|:Category:Construction|{{tt|name=Navbox construction|default=Construction|arg1=construction}}}}
| title = {{ll|:Category:Construction|{{tt|name=Navbox construction|default=Construction|arg1=construction}}}}
| content = {{Navbox/row
| collapsed = false
  | group = {{ll|Carpentry}}
| content =  
  | list = {{ll|Bar Corner}} • {{ll|Bar Element}} • {{ll|Barricade|{{tt|name=Navbox construction|default=Barricade (wood)|arg1=}}}} • {{ll|Bed}} • {{ll|Bookcase}} • {{ll|Composter}} • {{ll|Door}} • {{ll|Double Wooden Door}} • {{ll|Double Shelves}} • {{ll|Lamp on Pillar}} • {{ll|Large Table}} • {{ll|Log Wall}} • {{ll|Rain Collector Barrel}} • {{ll|Shelves}} • {{ll|Small Bookcase}} • {{ll|Small Table}} • {{ll|Stairs Piece}} • {{ll|Table with Drawer}} • {{ll|Wooden Floor}} • {{ll|Wooden Chair}} • {{ll|Wooden Crate}} • {{ll|Wooden Cross}} • {{ll|Wooden Doorframe}} • {{ll|Wooden Picket}} • {{ll|Wooden Sign}} • {{ll|Wooden Wall}} • {{ll|Wooden Window}}
  {{Navbox
}}{{Navbox/row
| title = {{ll|:Category:Carpentry|{{tt|name=Carpentry|default=Carpentry|arg1=carpentry}}}}
   | group = {{ll|Metalworking}}
  | collapsed = {{#ifeq:{{lc:{{{1|}}}}}|carpentry|false|true}}
   | list = {{ll|Barricade|{{tt|name=Navbox construction|default=Barricade (metal)|arg1=}}}} {{ll|Big Double Pole Gate}} • {{ll|Big Locker}} • {{ll|Big Pole Fence}} • {{ll|Big Pole Fence Gate}} • {{ll|Big Wired Fence}} {{ll|Double Fence Gate}} • {{ll|Fence}} • {{ll|Fence Gate}} • {{ll|Metal Counter}} {{ll|Metal Counter Corner}} • {{ll|Metal Crate}} • {{ll|Metal Roof}} • {{ll|Metal Shelves}} • {{ll|Metal Wall}} • {{ll|Metal Wall Frame}} • {{ll|Metal Window}} • {{ll|Pole Fence}} • {{ll|Small Locker}} • {{ll|Wired Fence}}
  | content =
}}{{Navbox/row
    {{Navbox/row
  | group = {{tt|name=Navbox construction|default=Miscellaneous|arg1=misc}}
    | group = {{ll|:Category:Construction|{{tt|name=Navbox construction|default=Walls and entrances|arg1=walls and entrances}}}}
  | list = {{ll|Barbed Fence}} • {{ll|Campfire}} • {{ll|Gravel Bag Wall}} • {{ll|Sandbag Wall}} • {{ll|Tent Kit}} • {{ll|Wooden Fence}} • {{ll|Wooden stake}}
    | list = {{ll|Log Wall}} • {{ll|Wooden Wall Frame}} • {{ll|Wooden Wall}} • {{ll|Wooden Doorframe}} • {{ll|Wooden Window}} • {{ll|Wooden Floor}} • {{ll|Door}} • {{ll|Wood Stairs}}
    }}
    {{Navbox/row
    | group = {{ll|:Category:Fences|{{tt|name=Navbox construction|default=Fences|arg1=fences}}}}
    | list = {{ll|Wooden Fence}} • {{ll|Double Wooden Door}} • {{ll|Barbed Fence}} • {{ll|Gravel Bag Wall}} • {{ll|Sandbag Wall}}
    }}
    {{Navbox/row
    | group = {{ll|:Category:Carpentry|{{tt|name=Navbox construction|default=Furniture|arg1=furniture}}}}
    | list = {{ll|Rain Collector Barrel}} • {{ll|Wooden Crate}} • {{ll|Bed}} • {{ll|Bar Corner}} • {{ll|Bar Element}} • {{ll|Small Bookcase}} • {{ll|Bookcase}} • {{ll|Shelves}} • {{ll|Double Shelves}} • {{ll|Wooden Chair}} • {{ll|Small Table}} • {{ll|Large Table}} • {{ll|Table with Drawer}} • {{ll|Lamp on Pillar}}
    }}
    {{Navbox/row
    | group = Other
    | list = {{ll|Cairn}} • {{ll|Wooden Picket}} • {{ll|Wooden Sign}} • {{ll|Wooden Stake}} • {{ll|Campfire}} • {{ll|Tent Kit}} • {{ll|Barricade}} • {{ll|Window}} • {{ll|Broken Glass}} • {{ll|Wooden Cross}}
    }}
  | id = navbox_carpentry
  }}
  {{Navbox
   | title = {{ll|:Category:Metalworking|{{tt|name=Metalworking|default=Metalworking|arg1=metalworking}}}}
   | collapsed = {{#ifeq:{{lc:{{{1|}}}}}|metalworking|false|true}}
  | content =
    {{Navbox/row
    | group = {{ll|:Category:Construction|{{tt|name=Navbox construction|default=Walls and entrances|arg1=walls and entrances}}}}
    | list = {{ll|Metal Wall}} • {{ll|Metal Wall Frame}} • {{ll|Metal Roof}} • {{ll|Metal Window}}
    }}
    {{Navbox/row
    | group = {{ll|:Category:Fences|{{tt|name=Navbox construction|default=Fences|arg1=fences}}}}
    | list = {{ll|Big Double Pole Gate}} • {{ll|Big Pole Fence}} • {{ll|Big Pole Fence Gate}} • {{ll|Big Wired Fence}} • {{ll|Pole Fence}} • {{ll|Wired Fence}} • {{ll|Big Double Wired Gate}} • {{ll|Pole Fence Gate}} • {{ll|Metal Fence}}
    }}
    {{Navbox/row
    | group = {{ll|:Category:Metalwork|{{tt|name=Navbox construction|default=Furniture|arg1=furniture}}}}
    | list =  
{{ll|Big Locker}} • {{ll|Metal Counter}} • {{ll|Metal Counter Corner}} • {{ll|Metal Crate}} • {{ll|Metal Shelves}} • {{ll|Composter}} • {{ll|Small Locker}}
    }}
  | id = navbox_metalworking
  }}
| id = items
}}
}}
| id = construction
</includeonly></includeonly>
}}</includeonly>

Revision as of 06:25, 10 March 2024

Notebook.pngTemplate Documentation

This template should be transcluded at the bottom of all construction pages.

Parameters

The parameters are based on the type of article. The usable parameters are;

  • carpentry
  • metalworking

The parameters are not case sensitive, but lowercase is recommended. Leaving parameters blank will result in both sub boxes remaining closed.

Usage

{{Navbox construction|carpentry}}


{{Navbox construction}}


How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
<!-- title -->
| construction = Construction
<!-- group -->
| carpentry = Carpentry <!-- for future use, not currently used -->
| metalworking = Metalworking <!-- for future use, not currently used -->
| misc = Miscellaneous
<!-- list -->
| barricade_wood = Barricade (wood)
| barricate_metal = Barricade (metal)
| #default = [[Category:Incorrect template usage]]
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.

</includeonly>