Template:ComponentStatistics: Difference between revisions

Template page
mNo edit summary
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude>
<onlyinclude>{{#cargo_query:
{{#if:{{{1}}}|
tables=component
{{{!}} class="wikitable"
|fields=component.name, component.luaId, component.description, component.attachmentSize, component.powerUsagePerSecond, component.powerStorage, component.drainRate, component.chargeRate, component.bandwidth, component.affectedByEvents, component.transferRadius, component.triggerRadius, component.componentRange, component.radarShowRange, component.registerType1, component.registerTip1, component.registerUiApply1, component.registerType2, component.registerTip2, component.registerUiApply2, component.registerType3, component.registerTip3, component.registerUiApply3, component.registerType4, component.registerTip4, component.registerUiApply4, component.registerType5, component.registerTip5, component.registerUiApply5, component.ingredient1, component.amount1, component.ingredient2, component.amount2, component.ingredient3, component.amount3, component.ingredient4, component.amount4, component.producer1, component.time1, component.producer2, component.time2, component.producer3, component.time3, component.recipeType, component.numProduced, component.isRemovable, component.damage, component.chargeDurationSec, component.projectileDelaySec, component.splashRange, component.extractionTime, component.solarPowerGenerated,
{{!}}+Statistics for [[{{{name}}}]]
|where=name = '{{{1}}}'
{{!}}-
|format=template
! Lua ID: {{#if:{{{attachmentSize}}}| !! Size|}} {{#if:{{{powerUsagePerSecond}}}| !! Power Usage|}} {{#if:{{{powerStorage}}}| !! Power Storage|}} {{#if:{{{drainRate}}}| !! Drain Rate|}} {{#if:{{{chargeRate}}}| !! Charge Rate|}} {{#if:{{{bandwidth}}}| !! Bandwidth|}} {{#if:{{{triggerRadius}}}| !! Trigger Radius|}} {{#if:{{{transferRadius}}}| !! Transfer Radius|}} {{#if:{{{componentRange}}}| !! Range|}} {{#if:{{{radarShowRange}}}| !! Visual Radius|}} {{#if:{{{damage}}}| !! Damage|}} {{#if:{{{chargeDurationSec}}}| !! Charge Duration|}} {{#if:{{{projectileDelaySec}}}| !! Projectile Travel Time|}} {{#if:{{{splashRange}}}| !! Splash Radius|}} {{#if:{{{affectedByEvents}}}| !! Affected By Events|}}
|template=ComponentStatistics_Layout
{{!}}-
|named args=yes
{{!}}{{{luaId}}} {{#if:{{{attachmentSize}}}|{{!}}{{!}} {{{attachmentSize}}}|}} {{#if:{{{powerUsagePerSecond}}}|{{!}}{{!}} {{{powerUsagePerSecond}}}|}} {{#if:{{{powerStorage}}}|{{!}}{{!}} {{{powerStorage}}}|}} {{#if:{{{drainRate}}}|{{!}}{{!}} {{{drainRate}}}|}} {{#if:{{{chargeRate}}}|{{!}}{{!}} {{{chargeRate}}}|}} {{#if:{{{bandwidth}}}|{{!}}{{!}} {{{bandwidth}}}|}} {{#if:{{{triggerRadius}}}|{{!}}{{!}} {{{triggerRadius}}}|}} {{#if:{{{transferRadius}}}|{{!}}{{!}} {{{transferRadius}}}|}} {{#if:{{{componentRange}}}|{{!}}{{!}} {{{componentRange}}}|}} {{#if:{{{radarShowRange}}}|{{!}}{{!}} {{{radarShowRange}}}|}} {{#if:{{{damage}}}|{{!}}{{!}} {{{damage}}}|}} {{#if:{{{chargeDurationSec}}}|{{!}}{{!}} {{{chargeDurationSec}}}|}} {{#if:{{{projectileDelaySec}}}|{{!}}{{!}} {{{projectileDelaySec}}}|}} {{#if:{{{splashRange}}}|{{!}}{{!}} {{{splashRange}}}|}} {{#if:{{{affectedByEvents}}}|{{!}}{{!}} {{{affectedByEvents}}}|}}
|default=
{{!}}}
}}</onlyinclude>
| }}
 
</onlyinclude>
-----
From [[Template:ComponentStatistics/doc]]:


[[Template:ComponentStatistics/doc]]
{{documentation}}
{{documentation}}

Latest revision as of 19:48, 2 October 2023



From Template:ComponentStatistics/doc:

Documentation

{{ComponentStatistics|NAME}}

Example for Turret:

Medium sized turret with good damage and range

Lua ID c_turret
Size Medium
Power -50
Trigger Radius 7 tiles
Damage 60
Charge Duration 1.2 seconds
Projectile Delay 0.2 seconds

See also: Template:ComponentStatistics_Layout

The above Template documentation is transcluded from Template:ComponentStatistics/doc. (edit | history)