Difference between revisions of "Template:Weapon Stats Table/Melee/Row/doc"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
Create the row for the [[Template:Weapon Quality Table/Melee]] for the [[Template:Weapon Quality Table]].
+
== Summary ==
 +
This template is part of the following system generating tables for all weapons:
 +
 
 +
* [[Template:Weapon Quality Table]] - Usually the template that should be called on normal pages. Creates the headers.
 +
** [[Template:Weapon Quality Table/Ranged]] - Creates the table for ranged combat.
 +
*** [[Template:Weapon Quality Table/Ranged/Row]] - Creates the rows for the ranged combat table.
 +
** [[Template:Weapon Quality Table/Melee]] - Creates the table for melee attacks.
 +
*** [[Template:Weapon Quality Table/Melee/Row]] - Creates the rows for the melee attacks table.
 +
**** [[Template:True Melee DPS Calculator]] - Does a lot of the calculations and defines essential variables for the ''/Melee/Row'' template.
 +
 
 +
This template relies on a lot of variables defined in [[Template:Weapon Quality Table/Melee]]. If you want to use this template separately, you'll have to define them as well.
 +
 
 +
== Usage ==
 +
You can call this template simply with:
 +
<pre>{{Weapon Quality Table/Melee/Row}}</pre>
 +
 
 +
Optionally you can give a material as the first parameter:
 +
<pre>{{Weapon Quality Table/Melee/Row|Steel}}</pre>
 +
 
 +
== Examples ==
 +
=== Longsword ===
 +
----
 +
A weapon '''with quality''' and '''with materials''':
 +
<pre>{{Weapon Quality Table/Melee|Longsword}}</pre>
 
{{Weapon Quality Table/Melee|Longsword}}
 
{{Weapon Quality Table/Melee|Longsword}}
 +
 +
=== Persona monosword ===
 +
----
 +
A weapon '''with quality''' but '''without materials''':
 +
<pre>{{Weapon Quality Table/Melee|Persona monosword}}</pre>
 +
{{Weapon Quality Table/Melee|Persona monosword}}
 +
 +
=== Club ===
 +
----
 +
A weapon '''without quality''' but '''with materials''':
 +
<pre>{{Weapon Quality Table/Melee|Club}}</pre>
 
{{Weapon Quality Table/Melee|Club}}
 
{{Weapon Quality Table/Melee|Club}}
 +
 +
=== Thrumbo horn ===
 +
----
 +
A weapon '''without quality''' and '''without materials''':
 +
<pre>{{Weapon Quality Table/Melee|Thrumbo horn}}</pre>
 
{{Weapon Quality Table/Melee|Thrumbo horn}}
 
{{Weapon Quality Table/Melee|Thrumbo horn}}
 +
 
<includeonly>[[Category:Customized table templates]]</includeonly>
 
<includeonly>[[Category:Customized table templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 11:22, 19 April 2023

Summary

This template is part of the following system generating tables for all weapons:

This template relies on a lot of variables defined in Template:Weapon Quality Table/Melee. If you want to use this template separately, you'll have to define them as well.

Usage

You can call this template simply with:

{{Weapon Quality Table/Melee/Row}}

Optionally you can give a material as the first parameter:

{{Weapon Quality Table/Melee/Row|Steel}}

Examples

Longsword


A weapon with quality and with materials:

{{Weapon Quality Table/Melee|Longsword}}

Template:Weapon Quality Table/Melee

Persona monosword


A weapon with quality but without materials:

{{Weapon Quality Table/Melee|Persona monosword}}

Template:Weapon Quality Table/Melee

Club


A weapon without quality but with materials:

{{Weapon Quality Table/Melee|Club}}

Template:Weapon Quality Table/Melee

Thrumbo horn


A weapon without quality and without materials:

{{Weapon Quality Table/Melee|Thrumbo horn}}

Template:Weapon Quality Table/Melee