Difference between revisions of "Template:Structure"

From Salem Wiki
Jump to: navigation, search
(new template for structures.)
 
 
(41 intermediate revisions by 11 users not shown)
Line 1: Line 1:
 +
{{ApplyLegacy}}
 
<!-- Template START -->
 
<!-- Template START -->
 
{| style="float:left; margin-right:25px"
 
{| style="float:left; margin-right:25px"
 
|
 
|
 
<!-- Infobox START -->
 
<!-- Infobox START -->
{| style="min-width:300px; padding:0.1em; border:black 2px solid; border-radius:0.4em; background:#71583b; font-family:Calibri"
+
{| style="min-width:320px; padding:0.1em; border:black 2px solid; border-radius:0.4em; background:#71583b; font-family:Calibri;"
 
! style="color:white; font-size:1.4em"|{{i|{{PAGENAME}}}}
 
! style="color:white; font-size:1.4em"|{{i|{{PAGENAME}}}}
 +
|-
 +
| style="color:white; font-size:1.2em; text-align:center"|{{CheckNamespace}}
 
|-
 
|-
 
|
 
|
{| style="width:100%; border:black 2px solid; background:#efebe5"
+
{| style="width:100%; border:black 2px solid; background:#4c4c4c; padding-left:0.2em;"
| style="width:100px; vertical-align:top" |'''Skill(s) required:'''
+
| style="width:100px;" |'''Skill(s) required:'''
| {{#ask: [[Category:Skills]] [[Unlocks::{{PAGENAME}}]] | ?Skills | format = list  | default=None }}
+
| colspan=2 | {{#ask: [[Category:Skills]] [[Unlocks::{{PAGENAME}}]] | ?Skills | format = ul | link=none | template=i | default=None}}
 +
|-
 +
| '''Size:'''
 +
| {{#switch: {{{Size|}}} | =''unknown'' | [[Size::{{{Size}}}]] }}
 
|-
 
|-
| style="vertical-align:top" |'''Object(s) required:'''
+
| '''Object(s) required:'''
 
| {{#switch: {{{Objects required|}}} | =None | {{T4|{{{Objects required}}} }} }}
 
| {{#switch: {{{Objects required|}}} | =None | {{T4|{{{Objects required}}} }} }}
 
|-
 
|-
| style="vertical-align:top" |'''Needs lighting?:'''
+
| '''Needs lighting?:'''
| {{#switch: {{{Needs lighting?|}}} | =No | {{T4|{{{Needs lighting?}}} }} }}
+
| {{#switch: {{{Needs lighting?|}}} | =No | {{{Needs lighting?}}} }}
 
|}
 
|}
 
|-
 
|-
Line 21: Line 27:
 
|-
 
|-
 
|
 
|
{| style="width:100%; border:black 2px solid; background:#efebe5"
+
{| style="width:100%; border:black 2px solid; background:#4c4c4c; padding-left:0.2em;"
 
| style="width:100px" |'''Liftable?:'''
 
| style="width:100px" |'''Liftable?:'''
| {{#switch: {{{Liftable?|}}} | =No | {{T0|{{{Liftable?}}} }} }}
+
| {{#switch: {{{Liftable?|}}} | =''No?'' | {{{Liftable?}}} }}
|-
 
|'''Hit points:'''
 
| {{#switch: {{{Hit points|}}} | =''unknown'' | [[Has health::{{{Hit points}}}]]
 
}}
 
 
|-
 
|-
|'''Soak value:'''
+
|'''Repaired with:'''
| {{#switch: {{{Soak value|}}} | =''unknown'' | [[Has soak::{{{Soak value}}}]] }}
+
| {{#switch: {{{Repaired with|}}} | =''unknown'' | none='''Can't be Repaired''' | [[Repaired With::{{{Repaired with}}}]] }}
 
|}
 
|}
 
|-
 
|-
! style="color:white; font-size:1.4em"|'''Required by:'''
+
! style="color:white; font-size:1.4em;" |'''Required by:'''
 
|-
 
|-
 
|
 
|
{| style="width:100%; border:black 2px solid; background:#efebe5"
+
{| style="width:100%; border:black 2px solid; background:#4c4c4c; padding-left:0.2em;"
 
| style="vertical-align:top; width:100px" | '''Required by:'''
 
| style="vertical-align:top; width:100px" | '''Required by:'''
| {{#ask: [[Category:Objects]] [[Requires::{{PAGENAME}}]] | ?Objects | format = ul | template=''{{i}}'' | default=None }}
+
| {{#ask: [[Category:Objects]] [[Requires::{{PAGENAME}}]] | ?Objects | format = ul | default=None }}
 +
| {{#ask: [[Category:Objects]] [[Where Found::{{PAGENAME}}]]  | ?Objects | format = ul | default= }}
 
|}
 
|}
 
|}
 
|}
 
<!-- Infobox END -->
 
<!-- Infobox END -->
 
|}
 
|}
<!-- Image START -->
 
{| style="padding:0.2em; float:right"
 
|
 
[[Image:{{PAGENAME}}.png|thumb|300px|{{PAGENAME}}]]
 
|}
 
<!-- Image END -->
 
 
<!-- Template END -->
 
<!-- Template END -->
 
+
{{#ifeq: {{PAGENAME}}
[[Category:Structures]]
+
| Contributing
 
+
|
<noinclude>
+
| {{#ifeq: {{FULLPAGENAME}}
 +
  | Template:Structure
 +
  |
 +
  | [[Category:Structures]]
 +
  }}
 +
}}<noinclude>
 
{|
 
{|
 
| style="max-width:640px" |
 
| style="max-width:640px" |
Line 62: Line 64:
 
==How to use this template:==
 
==How to use this template:==
 
===Breakdown of parameters:===
 
===Breakdown of parameters:===
 +
;Size
 +
:List the number of tiles X x Y taken by the structure
 +
:'''''For example:''''' Size=3x3
 
;Objects required
 
;Objects required
 
:List any objects required such as materials and tools. Each object must be entered with an amount and each separate item should be separated with a comma.
 
:List any objects required such as materials and tools. Each object must be entered with an amount and each separate item should be separated with a comma.
Line 77: Line 82:
 
:Enter the soak value of the structure. Leave blank if unknown and use the structures talk page to work with the community to figure out the soak value.
 
:Enter the soak value of the structure. Leave blank if unknown and use the structures talk page to work with the community to figure out the soak value.
 
:'''''For example:''''' Soak value=50
 
:'''''For example:''''' Soak value=50
 +
;Repaired with
 +
:Enter the object that is used to repair the structure. Leave blank if unknown
 +
:'''''For example:''''' Repaired with=Woodblock
 
===Blank code to copy+paste:===
 
===Blank code to copy+paste:===
 
|-
 
|-
 
|
 
|
 
<pre>{{Structure
 
<pre>{{Structure
 +
| Size=
 
| Objects required=
 
| Objects required=
 
| Needs lighting?=
 
| Needs lighting?=
Line 86: Line 95:
 
| Hit points=
 
| Hit points=
 
| Soak value=
 
| Soak value=
 +
| Repaired with=
 
}}</pre>
 
}}</pre>
 
|}</noinclude>
 
|}</noinclude>

Latest revision as of 03:58, 5 July 2024

Unknown Item icon.png Structure
Skill(s) required: None
Size: unknown
Object(s) required: None
Needs lighting?: No
Move/Destroy:
Liftable?: No?
Repaired with: unknown
Required by:
Required by: None

When to use this template:

To add a new structure to the wiki (a structure is anything found in the build menu and submenus).


How to use this template:

Breakdown of parameters:

Size
List the number of tiles X x Y taken by the structure
For example: Size=3x3
Objects required
List any objects required such as materials and tools. Each object must be entered with an amount and each separate item should be separated with a comma.
For example: Objects required=Board;10, Woodblock;20, Hay;15
Needs lighting?
Enter 'Yes' if the structure requires lighting by Tinder Drill, Flint & Steel or Torch. Otherwise enter 'No' or leave blank (defaults to 'No').
For example: Needs lighting?=Yes
Liftable?
If the structure can be lifted at any time enter 'Yes'. If the structure can only be lifted when empty then enter 'Only when empty'. If the structure can never be lifted enter 'No' or leave blank (defaults to 'No').
For example: Liftable?=Only when empty
Hit points
Enter the amount of hit points the structure has. Leave blank if unknown and use the structures talk page to work with the community to figure out the hit point value.
For example: Hit points=100
Soak value
Enter the soak value of the structure. Leave blank if unknown and use the structures talk page to work with the community to figure out the soak value.
For example: Soak value=50
Repaired with
Enter the object that is used to repair the structure. Leave blank if unknown
For example: Repaired with=Woodblock

Blank code to copy+paste:

{{Structure
| Size=
| Objects required=
| Needs lighting?=
| Liftable?=
| Hit points=
| Soak value=
| Repaired with=
}}