Jump to content
Toggle menu
  • 20 articles
  • 87 files
  • 13 users
  • 460 edits
Incursion Red River Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:IRRAmmunition: Difference between revisions

Template page
added cargo support
change cargo data types to int where possible, adding ParserFunction support
Line 8: Line 8:
   </image>
   </image>
   <group>
   <group>
     <header source="terminal_effectiveness">Terminal Effectiveness</header>
     <header>Terminal Effectiveness</header>
     <data source="damage">
     <data source="damage">
       <label>Damage</label>
       <label>Damage</label>
Line 17: Line 17:
     <data source="chance_to_wound">
     <data source="chance_to_wound">
       <label>Chance to Wound</label>
       <label>Chance to Wound</label>
      <format>{{{chance_to_wound}}}%</format>
     </data>
     </data>
     <data source="piercing">
     <data source="piercing">
Line 23: Line 24:
   </group>
   </group>
   <group>
   <group>
     <header source="logistics">Logistics</header>
     <header>Logistics</header>
     <data source="stack_size">
     <data source="stack_size">
       <label>Stack Size</label>
       <label>Stack Size</label>
Line 29: Line 30:
     <data source="cost">
     <data source="cost">
       <label>Cost</label>
       <label>Cost</label>
      <format>Single: {{{cost}}} ${{#if:{{{cost|}}}|<br />Stack: {{#expr: {{{cost}}} * {{{stack_size}}} round 2 }} $}}</format>
     </data>
     </data>
        <data source="weight">
    <data source="weight">
       <label>Weight</label>
       <label>Weight</label>
      <format>Single: {{{weight}}} kg{{#if:{{{stack_size|}}}|<br />Stack: {{#expr: {{{weight}}} * {{{stack_size}}} round 2 }} kg}}</format>
     </data>
     </data>
        <data source="reputation_requirement">
    <data source="reputation_requirement">
       <label>Reputation Requirement</label>
       <label>Reputation Requirement</label>
     </data>
     </data>
Line 55: Line 58:
|damage=Integer
|damage=Integer
|penetration=Integer
|penetration=Integer
|chance_to_wound=String
|chance_to_wound=Integer
|piercing=Integer
|piercing=Integer
|stack_size=Integer
|stack_size=Integer
|cost=String
|cost=Integer
|weight=String
|weight=Integer
|reputation_requirement=String
|reputation_requirement=String
}}
}}
Line 65: Line 68:
Example usage:
Example usage:
{{IRRAmmunition
{{IRRAmmunition
   | title=Example
   | title=ExampleAmmo
   | image=test.png
   | image=test.png
   | caption-image=Example
   | caption-image=Example
  | terminal_effectiveness=Example
   | damage=69
   | damage=Example
   | penetration=420
   | penetration=Example
   | chance_to_wound=2
   | chance_to_wound=Example
   | piercing=3
   | piercing=Example
   | stack_size=60
  | logistics=Example
   | cost=15
   | stack_size=Example
   | weight=0.1
   | cost=Example
   | weight=0.1 kg
   | reputation_requirement=IGC Tier 2
   | reputation_requirement=IGC Tier 2
   }}
   }}
<pre>
{{IRRAmmunition
  | title=Example
  | image=Example.jpg
  | caption-image=Example
  | terminal_effectiveness=Example
  | damage=67
  | penetration=23
  | chance_to_wound=12%
  | piercing=2
  | logistics=Example
  | stack_size=20
  | cost=$123
  | weight=0.1 kg
  | reputation_requirement=IGC Tier 2
  }}
</pre>
<templatedata>
<templatedata>
{
{
"params": {
    "params": {
"terminal_effectiveness": {
        "terminal_effectiveness": {
"suggested": true
            "suggested": true
},
        },
"damage": {
        "damage": {
"suggested": true
            "suggested": true
},
        },
"penetration": {
        "penetration": {
"suggested": true
            "suggested": true
},
        },
"chance_to_wound": {
        "chance_to_wound": {
"suggested": true
            "suggested": true
},
        },
"logistics": {
        "logistics": {
"suggested": true
            "suggested": true
},
        },
"stack_size": {
        "stack_size": {
"suggested": true
            "suggested": true
},
        },
"cost": {
        "cost": {
"suggested": true
            "suggested": true
},
        },
"title": {
        "title": {
"suggested": true
            "suggested": true
},
        },
"image": {
        "image": {
"suggested": true
            "suggested": true
},
        },
"caption-image": {
        "caption-image": {
"suggested": true
            "suggested": true
},
        },
"piercing": {
        "piercing": {
"suggested": true
            "suggested": true
},
        },
"weight": {
        "weight": {
"suggested": true
            "suggested": true
},
        },
"reputation_requirement": {
        "reputation_requirement": {
"suggested": true
            "suggested": true
}
        }
},
    },
"sets": [],
    "sets": [],
"paramOrder": [
    "paramOrder": [
"title",
        "title",
"image",
        "image",
"caption-image",
        "caption-image",
"terminal_effectiveness",
        "terminal_effectiveness",
"damage",
        "damage",
"penetration",
        "penetration",
"chance_to_wound",
        "chance_to_wound",
"piercing",
        "piercing",
"logistics",
        "logistics",
"stack_size",
        "stack_size",
"cost",
        "cost",
"weight",
        "weight",
"reputation_requirement"
        "reputation_requirement"
],
    ],
"format": "block"
    "format": "block"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 17:08, 23 October 2026


This template defines the table "TableAmmunition". View table.

Example usage:


No description.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
titletitle

no description

Unknownsuggested
imageimage

no description

Unknownsuggested
caption-imagecaption-image

no description

Unknownsuggested
terminal_effectivenessterminal_effectiveness

no description

Unknownsuggested
damagedamage

no description

Unknownsuggested
penetrationpenetration

no description

Unknownsuggested
chance_to_woundchance_to_wound

no description

Unknownsuggested
piercingpiercing

no description

Unknownsuggested
logisticslogistics

no description

Unknownsuggested
stack_sizestack_size

no description

Unknownsuggested
costcost

no description

Unknownsuggested
weightweight

no description

Unknownsuggested
reputation_requirementreputation_requirement

no description

Unknownsuggested