Template:Navbox construction: Difference between revisions

From PZwiki
(Update construction template with small fences)
m (Fix category)
(24 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>{{languages|Template:Navbox/Construction}}</noinclude>{{Navbox/Core
<noinclude>
|size = default
{{Documentation/sandbox|doc=
|title = Construction
This template should be transcluded at the bottom of all construction pages.
|group1 = [[:Category:Camping|<span style="color:#fff">Camping</span>]]
 
|list1 = [[Tent]] &bull; [[Campfire]]
==Parameters==
|group2 = [[Carpentry|<span style="color:#fff">Carpentry</span>]]
The parameters are based on the type of article. The usable parameters are;<br>
|list2 = [[Bar Corner]] &bull; [[Bar Element]] &bull; [[Barricade|Barricade (Wood)]] &bull; [[Bed]] &bull; [[Bookcase]] &bull; [[Crate]] &bull; [[Door]] &bull; [[Double Shelves]] &bull; [[Lamp on Pillar]] &bull; [[Large Table]] &bull; [[Log Wall]] &bull; [[Rain Collector Barrel]] &bull; [[Shelves]] &bull; [[Small Bookcase]] &bull; [[Small Table]] &bull; [[Stairs Piece]] &bull; [[Table with Drawer]] &bull; [[Wooden Chair]] &bull; [[Wooden Cross]] &bull; [[Wooden door frame|Wooden Door Frame]] &bull; [[Wood Floor|Wooden Floor]] &bull; [[Wooden Picket]] &bull; [[Wooden Sign]] &bull; [[Wooden Wall]] &bull; [[Wooden window frame|Wooden Window Frame]]
*<code>carpentry</code>
|group3 = Small Fences
*<code>metalworking</code><br>
|list3 = [[Barbed Fence]] &bull; [[Gravel Bag Wall]] &bull; [[Sandbag Wall]] &bull; [[Wooden Fence]] &bull; [[Wooden stake]]
The parameters are not case sensitive, but lowercase is recommended. Leaving parameters blank will result in both sub boxes remaining closed.
|group4 = [[Metalworking|<span style="color:#fff">Metalworking</span>]]
 
|list4 = [[Barricade|Barricade (Metal)]] &bull; [[Big Double Pole Gate]] &bull; [[Big Locker]] &bull; [[Big Pole Fence]] &bull; [[Big Pole Fence Gate]] &bull; [[Big Wired Fence]] &bull; [[Double Fence Gate]] &bull; [[Fence]] &bull; [[Fence Gate]] &bull; [[Metal Counter]] &bull; [[Metal Counter Corner]] &bull; [[Metal Crate]] &bull; [[Metal Roof]] &bull; [[Metal Shelves]] &bull; [[Metal Wall]] &bull; [[Metal Wall Frame]] &bull; [[Pole Fence]] &bull; [[Small Locker]] &bull; [[Wired Fence]]
==Usage==
}}<noinclude>[[Category:Templates]]</noinclude>
{{tll|Navbox construction|carpentry}}
{{Navbox construction|carpentry}}
 
{{tll|Navbox construction}}
{{Navbox construction}}
 
{{Translation guide|<syntaxhighlight lang="html">
{{#switch: {{{1|}}}
<!-- title -->
| construction = Construction
| carpentry = Carpentry
| metalworking = Metalworking
<!-- group -->
| walls_and_entrances = Walls and entrances
| fences = Fences
| furniture = Furniture
| other = Other
<!-- list -->
| #default = [[Category:Incorrect template usage]]
}}
</syntaxhighlight>}}
 
==See also==
{{Navbox see also}}
}}
{{ll|Category:Navbox}}
</noinclude><includeonly>{{Navbox
| title = {{ll|:Category:Construction|{{tt|name=Navbox construction|default=Construction|arg1=construction}}}}
| collapsed = false
| content =  
  {{Navbox
| title = {{ll|:Category:Carpentry|{{tt|name=Navbox construction|default=Carpentry|arg1=carpentry}}}}
  | collapsed = {{#ifeq:{{lc:{{{1|}}}}}|carpentry|false|true}}
  | content =
    {{Navbox/row
    | group = {{ll|:Category:Construction|{{tt|name=Navbox construction|default=Walls and entrances|arg1=walls_and_entrances}}}}
    | 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|Composter}} • {{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:Metalwork|{{tt|name=Navbox construction|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|Small Locker}}
    }}
  | id = navbox_metalworking
  }}
| id = navbox_construction
}}</includeonly>

Revision as of 03:26, 18 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
| carpentry = Carpentry
| metalworking = Metalworking
<!-- group -->
| walls_and_entrances = Walls and entrances
| fences = Fences
| furniture = Furniture
| other = Other
<!-- list -->
| #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.