Template:Fixing weapon: Difference between revisions
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= | ||
[[ | 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== | |||
{{ | <pre>{{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 = --> | |||
}}</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}} | ||
| {{#ifexpr: {{{ | </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> | ||
|}</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
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 |
---|
Potentially repairs: 20%
Chance of success: 35% |
Potentially repairs: 10%
Chance of success: 95% Needs:
Duct Tape (2 units) |
Potentially repairs: 10%
Chance of success: 95% Needs:
Glue (2 units) |
Potentially repairs: 10%
Chance of success: 95% Needs:
Adhesive Tape (4 units) |
Potentially repairs: 10%
Chance of success: 95% Needs:
Nails (1 units) |
Editors can experiment in this template's sandbox.