Template:Fixing weapon: Difference between revisions

From PZwiki
m (Automated {{Languages}} removal.)
(fixed nested tables and rows displaying if not called & merged doc)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation/sandbox|doc=
[[Category:Templates]]
This template is designed present the materials that can be used to repair a [[weapon]].
</noinclude><includeonly>{| class="wikitable theme-red" style="border: 1px solid #{{Infobox nc|Weapon}};"
 
! height=30px style="text-align: center; background-color: #{{Infobox nc|Weapon}}; color: #{{Infobox nc|Weapon|text}}" | Repair {{{item|{{PAGENAME}}}}}
The information it displays is:
|-
*repair material
| {{#ifexpr: {{{woodglue|{{{Woodglue|0}}}}}} > 0 |  
*quantity of repair material
{{!}}
*percentage repaired
{{{!}} style="line-height: 14px;"
*chance of success
{{!}} colspan=2 style="padding-bottom: 10px;" {{!}} '''[[Wood Glue]]'''
*skill level required
{{!}}-
 
{{!}} style="padding-right: 20px; padding-bottom: 10px;" {{!}} [[File:Woodglue.png{{!}}32px]] {{!}}{{!}} style="padding-right: 20px; padding-bottom: 10px;" {{!}} <small>{{Fixing condition|RepairsAmount={{{woodgluerepairs|{{{WoodglueRepairs|0}}}}}}|RepairsChance={{{woodgluechance|{{{WoodglueChance|0}}}}}}}}</small>
==Usage==
{{!}}-
<pre>{{Fixing weapon
{{!}} {{!}}{{!}} <small>'''Needs:''' <br> [[Wood Glue|Wood Glue ({{{woodglue|{{{Woodglue|0}}}}}} units)]] <br> [[Carpentry|Carpentry Level {{{woodwork|{{{Woodwork|0}}}}}}]]</small>
| 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 = -->
}}</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
}}
}}
|-
|{{#ifexpr: {{{ducttape|{{{DuctTape|0}}}}}} > 0 |
{{!}}
{{{!}} style="line-height: 14px;"
{{!}} colspan=2 style="padding-bottom: 10px;" {{!}} '''[[Duct Tape]]'''
{{!}}-
{{!}} style="padding-right: 20px; padding-bottom: 10px;" {{!}} [[File:DuctTape.png{{!}}32px]] {{!}}{{!}} style="padding-right: 20px; padding-bottom: 10px;" {{!}} <small>{{Fixing condition|RepairsAmount={{{ducttaperepairs|{{{DuctTapeRepairs|0}}}}}}|RepairsChance={{{ducttapechance|{{{DuctTapeChance|0}}}}}}}}</small>
{{!}}-
{{!}} {{!}}{{!}} <small>'''Needs:''' <br> [[Duct Tape|Duct Tape ({{{ducttape|{{{DuctTape|0}}}}}} units)]]</small>
{{!}}}
}}
}}
|-
{{ll|Category:Templates}}
| {{#ifexpr: {{{glue|{{{Glue|0}}}}}} > 0 |  
</noinclude><includeonly><table class="wikitable theme-red">
{{!}}
<tr>
{{{!}} style="line-height: 14px;"
<th height=30px style="text-align: center;> Repair {{{item|{{PAGENAME}}}}}</th>
{{!}} colspan=2 style="padding-bottom: 10px;" {{!}} '''[[Glue]]'''
</tr>
{{!}}-
{{#ifexpr: {{{woodglue|{{{Woodglue|0}}}}}} > 0  
{{!}} style="padding-right: 20px; padding-bottom: 10px;" {{!}} [[File:Glue.png{{!}}32px]] {{!}}{{!}} style="padding-right: 20px; padding-bottom: 10px;" {{!}} <small>{{Fixing condition|RepairsAmount={{{gluerepairs|{{{GlueRepairs|0}}}}}}|RepairsChance={{{gluechance|{{{GlueChance|0}}}}}}}}</small>
|<tr>
{{!}}-
<td>
{{!}} {{!}}{{!}} <small>'''Needs:''' <br> [[Glue|Glue ({{{glue|{{{Glue|0}}}}}} units)]]</small>  
<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>
| {{#ifexpr: {{{scotchtape|{{{Scotchtape|0}}}}}} > 0 |  
</tr>
{{!}}
{{#ifexpr: {{{ducttape|{{{DuctTape|0}}}}}} > 0  
{{{!}} style="line-height: 14px;"
|<tr>
{{!}} colspan=2 style="padding-bottom:10px;" {{!}} '''[[Adhesive Tape]]'''
<td>
{{!}}-
<div style="line-height:14px;">
{{!}} style="padding-right: 20px; padding-bottom: 10px;" {{!}} [[File:Scotchtape.png{{!}}32px]] {{!}}{{!}} style="padding-right: 20px; padding-bottom: 10px;" {{!}} <small>{{Fixing condition|RepairsAmount={{{scotchtaperepairs|{{{ScotchtapeRepairs|0}}}}}}|RepairsChance={{{scotchtapechance|{{{ScotchtapeChance|0}}}}}}}}</small>
<div style="padding-bottom:10px;">'''[[Duct Tape]]'''</div>
{{!}}-
<div style="display:flex;">
{{!}} {{!}}{{!}} <small>'''Needs:''' <br> [[Adhesive Tape|Adhesive Tape ({{{scotchtape|{{{Scotchtape|0}}}}}} units)]]</small>  
<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>
| {{#ifexpr: {{{nails|{{{Nails|0}}}}}} > 0 |  
</tr>
{{!}}
{{#ifexpr: {{{glue|{{{Glue|0}}}}}} > 0  
{{{!}} style="line-height: 14px;"
|<tr>
{{!}} colspan=2 style="padding-bottom: 10px;" {{!}} '''[[Nails]]'''
<td>
{{!}}-
<div style="line-height: 14px;">
{{!}} style="padding-right: 20px; padding-bottom: 10px;" {{!}} [[File:Nails.png{{!}}32px]] {{!}}{{!}} style="padding-right: 20px; padding-bottom: 10px;" {{!}} <small>{{Fixing condition|RepairsAmount={{{nailsrepairs|{{{NailsRepairs|0}}}}}}|RepairsChance={{{nailschance|{{{NailsChance|0}}}}}}}}</small>
<div style="padding-bottom: 10px;">'''[[Glue]]'''</div>
{{!}}-
<div style="display:flex;">
{{!}} {{!}}{{!}} <small>'''Needs:''' <br> [[Nails|Nails ({{{nails|{{{Nails|0}}}}}} units)]]</small>  
<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>
|}</includeonly>
</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>

Revision as of 16:33, 6 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.