Template:Fixing weapon: Difference between revisions

From PZwiki
(Created page with "<noinclude>{{Underconstruction}}</noinclude><includeonly>{| class="wikitable" style="text-align:center;" |- ! Item Repaired ! 55% Repaired, 100% Success ! 20% Repaired, 95% S...")
 
m (Automated Formatting)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{Underconstruction}}</noinclude><includeonly>{| class="wikitable" style="text-align:center;"
<noinclude>
|-
{{Documentation/sandbox|doc=
! Item Repaired
This template is designed present the materials that can be used to repair a [[weapon]].
! 55% Repaired, 100% Success
 
! 20% Repaired, 95% Success
The information it displays is:
! 10% Repaired, 95% Success
*repair material
! 10% Repaired, 95% Success
*quantity of repair material
! 5% Repaired, 95% Success
*percentage repaired
|-
*chance of success
|[[File:{{{image}}}|32px]] <br> '''{{{item|{{PAGENAME}}}}}'''
*skill level required
| {{#ifexpr: {{{woodglue|{{{Woodglue|0}}}}}} > 0 | [[File:Woodglue.png{{!}}32px]] <br> [[Wood Glue]] <br> <small>({{{woodglue|{{{Woodglue|0}}}}}} units)</small> {{#ifexpr: {{{woodwork|{{{Woodwork|0}}}}}} > 0 | <br> <small>(Carpentry Level {{{woodwork|{{{Woodwork|0}}}}}})</small> }} }}
 
| {{#ifexpr: {{{ducttape|{{{DuctTape|0}}}}}} > 0 | [[File:DuctTape.png|32px]] <br> [[Duct Tape]] <br> <small>({{{ducttape|{{{DuctTape|0}}}}}} units)</small> }}
==Usage==
| {{#ifexpr: {{{glue|{{{Glue|0}}}}}} > 0 | [[File:Glue.png|32px]] <br> [[Glue]] <br> <small>({{{glue|{{{Glue|0}}}}}} units)</small> }}
<pre>{{Fixing weapon
| {{#ifexpr: {{{scotchtape|{{{Scotchtape|0}}}}}} > 0 | [[File:Scotchtape.png|32px]] <br> [[Adhesive Tape]] <br> <small>({{{scotchtape|{{{Scotchtape|0}}}}}} units)</small> }}
| item =
| {{#ifexpr: {{{nails|{{{Nails|0}}}}}} > 0 | [[File:Nails.png|32px]] <br> [[Nails]] <br> <small>x {{{nails|{{{Nails|0}}}}}}</small> }}
| woodglue = <!-- or | Woodglue = -->
|-
| woodgluerepairs = <!-- or | WoodglueRepairs = -->
|}</includeonly><noinclude>{{Fixing weapon|image=BaseballBatNails.png|item=Spiked Baseball Bat|woodglue=2|woodwork=2|ducttape=2|glue=2|scotchtape=4|nails=1}}[[Category:Templates]]</noinclude>
| woodgluechance = <!-- or | WoodglueChance = -->
| woodwork = <!-- or | Woodwork = -->
| ducttape = <!-- or | DuctTape = -->
| ducttaperepairs = <!-- or | DuctTapeRepairs = -->
| ducttapechance = <!-- or | DuctTapeChance = -->
| glue = <!-- or | Glue = -->
| gluerepairs = <!-- or | GlueRepairs = -->
| gluechance = <!-- or | GlueChance = -->
| scotchtape = <!-- or | Scotchtape = -->
| scotchtaperepairs = <!-- or | ScotchtapeRepairs = -->
| scotchtapechance = <!-- or | ScotchtapeChance = -->
| nails = <!-- or | Nails = -->
| nailsrepairs = <!-- or | NailsRepairs = -->
| nailschance = <!-- or | NailsChance = -->
}}</pre>
 
==Examples==
===[[Spiked Baseball Bat]]===
<pre>{{Fixing weapon
|item=Spiked Baseball Bat
|woodglue=2
|woodgluerepairs=20
|woodgluechance=35
|woodwork=2
|ducttape=2
|ducttaperepairs=10
|ducttapechance=95
|glue=2
|gluerepairs=10
|gluechance=95
|scotchtape=4
|scotchtaperepairs=10
|scotchtapechance=95
|nails=1
|nailsrepairs=10
|nailschance=95
}}</pre>
 
;Produces:
{{Fixing weapon
|item=Spiked Baseball Bat
|woodglue=2
|woodgluerepairs=20
|woodgluechance=35
|woodwork=2
|ducttape=2
|ducttaperepairs=10
|ducttapechance=95
|glue=2
|gluerepairs=10
|gluechance=95
|scotchtape=4
|scotchtaperepairs=10
|scotchtapechance=95
|nails=1
|nailsrepairs=10
|nailschance=95
}}
}}
{{ll|Category:Templates}}
</noinclude><includeonly><table class="wikitable theme-red">
<tr>
<th height=30px style="text-align: center;> Repair {{{item|{{PAGENAME}}}}}</th>
</tr>
{{#ifexpr: {{{woodglue|{{{Woodglue|0}}}}}} > 0
|<tr>
<td>
<div style="line-height:14px;">
<div style="padding-bottom:10px;">'''[[Wood Glue]]'''</div>
<div style="display:flex;">
<div style="flex-direction:column; padding-right:10px; padding-bottom:10px;">[[File:Woodglue.png{{!}}32px]]</div>
<div style="flex-direction:column;">
<div style="padding-right:10px; padding-bottom:10px;"> <small>{{Fixing condition|RepairsAmount={{{woodgluerepairs|{{{WoodglueRepairs|0}}}}}}|RepairsChance={{{woodgluechance|{{{WoodglueChance|0}}}}}}}}</small></div>
<div style="padding-right:10px; padding-bottom:10px;"><small>'''Needs:''' <br> [[Wood Glue|Wood Glue ({{{woodglue|{{{Woodglue|0}}}}}} units)]] <br> [[Carpentry|Carpentry Level {{{woodwork|{{{Woodwork|0}}}}}}]]</small></div>
</div>
</div>
</div>
}}
</td>
</tr>
{{#ifexpr: {{{ducttape|{{{DuctTape|0}}}}}} > 0
|<tr>
<td>
<div style="line-height:14px;">
<div style="padding-bottom:10px;">'''[[Duct Tape]]'''</div>
<div style="display:flex;">
<div style="flex-direction:column; padding-right:10px; padding-bottom:10px;">[[File:DuctTape.png{{!}}32px]]</div>
<div style="flex-direction:column;">
<div style="padding-right:10px; padding-bottom:10px;"><small>{{Fixing condition|RepairsAmount={{{ducttaperepairs|{{{DuctTapeRepairs|0}}}}}}|RepairsChance={{{ducttapechance|{{{DuctTapeChance|0}}}}}}}}</small></div>
<div style="padding-right:10px; padding-bottom:10px;"><small>'''Needs:''' <br> [[Duct Tape|Duct Tape ({{{ducttape|{{{DuctTape|0}}}}}} units)]]</small></div>
</div>
</div>
</div>
}}
</td>
</tr>
{{#ifexpr: {{{glue|{{{Glue|0}}}}}} > 0
|<tr>
<td>
<div style="line-height: 14px;">
<div style="padding-bottom: 10px;">'''[[Glue]]'''</div>
<div style="display:flex;">
<div style="flex-direction:column; padding-right:10px; padding-bottom:10px;">[[File:Glue.png{{!}}32px]]</div>
<div style="flex-direction:column;">
<div style="padding-right:10px; padding-bottom:10px;"><small>{{Fixing condition|RepairsAmount={{{gluerepairs|{{{GlueRepairs|0}}}}}}|RepairsChance={{{gluechance|{{{GlueChance|0}}}}}}}}</small></div>
<div style="padding-right:10px; padding-bottom:10px;"><small>'''Needs:''' <br> [[Glue|Glue ({{{glue|{{{Glue|0}}}}}} units)]]</small></div>
</div>
</div>
</div>
}}
</td>
</tr>
{{#ifexpr: {{{scotchtape|{{{Scotchtape|0}}}}}} > 0
|<tr>
<td>
<div style="line-height: 14px;">
<div style="padding-bottom: 10px;">'''[[Adhesive Tape]]'''</div>
<div style="display:flex;">
<div style="flex-direction:column; padding-right:10px; padding-bottom:10px;"> [[File:Scotchtape.png{{!}}32px]]</div>
<div style="flex-direction:column;">
<div style="padding-right:10px; padding-bottom:10px;"> <small>{{Fixing condition|RepairsAmount={{{scotchtaperepairs|{{{ScotchtapeRepairs|0}}}}}}|RepairsChance={{{scotchtapechance|{{{ScotchtapeChance|0}}}}}}}}</small></div>
<div style="padding-right:10px; padding-bottom:10px;"><small>'''Needs:''' <br> [[Adhesive Tape|Adhesive Tape ({{{scotchtape|{{{Scotchtape|0}}}}}} units)]]</small></div>
</div>
</div>
</div>
}}
</td>
</tr>
{{#ifexpr: {{{nails|{{{Nails|0}}}}}} > 0
|<tr>
<td>
<div style="line-height: 14px;">
<div style="padding-bottom: 10px;">'''[[Nails]]'''</div>
<div style="display:flex;">
<div style="flex-direction:column; padding-right:10px; padding-bottom:10px;"> [[File:Nails.png{{!}}32px]]</div>
<div style="flex-direction:column;">
<div style="padding-right:10px; padding-bottom:10px;"><small>{{Fixing condition|RepairsAmount={{{nailsrepairs|{{{NailsRepairs|0}}}}}}|RepairsChance={{{nailschance|{{{NailsChance|0}}}}}}}}</small></div>
<div><small>'''Needs:''' <br> [[Nails|Nails ({{{nails|{{{Nails|0}}}}}} units)]]</small></div>
</div>
</div>
</div>
}}
</td>
</tr>
</table></includeonly>

Latest revision as of 14:06, 14 April 2024

Notebook.pngTemplate Documentation

This template is designed present the materials that can be used to repair a weapon.

The information it displays is:

  • repair material
  • quantity of repair material
  • percentage repaired
  • chance of success
  • skill level required

Usage

{{Fixing weapon
| item			=
| woodglue		= <!-- or | Woodglue = -->
| woodgluerepairs	= <!-- or | WoodglueRepairs = -->
| woodgluechance	= <!-- or | WoodglueChance = -->
| woodwork		= <!-- or | Woodwork = -->
| ducttape		= <!-- or | DuctTape = -->
| ducttaperepairs	= <!-- or | DuctTapeRepairs = -->
| ducttapechance	= <!-- or | DuctTapeChance = -->
| glue			= <!-- or | Glue = -->
| gluerepairs		= <!-- or | GlueRepairs = -->
| gluechance		= <!-- or | GlueChance = -->
| scotchtape		= <!-- or | Scotchtape = -->
| scotchtaperepairs	= <!-- or | ScotchtapeRepairs = -->
| scotchtapechance	= <!-- or | ScotchtapeChance = -->
| nails			= <!-- or | Nails = -->
| nailsrepairs		= <!-- or | NailsRepairs = -->
| nailschance		= <!-- or | NailsChance = -->
}}

Examples

Spiked Baseball Bat

{{Fixing weapon
|item=Spiked Baseball Bat
|woodglue=2
|woodgluerepairs=20
|woodgluechance=35
|woodwork=2
|ducttape=2
|ducttaperepairs=10
|ducttapechance=95
|glue=2
|gluerepairs=10
|gluechance=95
|scotchtape=4
|scotchtaperepairs=10
|scotchtapechance=95
|nails=1
|nailsrepairs=10
|nailschance=95
}}
Produces
Repair Spiked Baseball Bat
Woodglue.png
Potentially repairs: 20%
Chance of success: 35%
DuctTape.png
Potentially repairs: 10%
Chance of success: 95%
Glue.png
Potentially repairs: 10%
Chance of success: 95%
Scotchtape.png
Potentially repairs: 10%
Chance of success: 95%
Nails.png
Potentially repairs: 10%
Chance of success: 95%
Editors can experiment in this template's sandbox.