Difference between revisions of "Template:WeaponsTable"

From Epic Paths
Jump to navigation Jump to search
Line 1: Line 1:
<noinclude>
<noinclude>
All lower-case
All lower-case
Either:


* 1: simple / martial / exotic
* 1: simple / martial / exotic
* 2: light / one-handed / two-handed
* 2: light / one-handed / two-handed
* 3: melee / ranged
* 3: melee / ranged / ranged / ammunition / misc
 
Or:
 
* 1: melee / ranged / ranged / ammunition / misc


<hr>
<hr>
Line 10: Line 16:
'''Template:'''  
'''Template:'''  


* <nowiki>{{</nowiki>Equipment_Weapons|simple|light|melee<nowiki>}}</nowiki>
<nowiki>{{</nowiki>Equipment_Weapons|simple|light|melee<nowiki>}}</nowiki>
 
<nowiki>{{</nowiki>Equipment_Weapons|ranged<nowiki>}}</nowiki>
</noinclude><includeonly><!--
</noinclude><includeonly><!--


-->{{#if:{{{3|}}}|<!--
-->=== {{ucfirst:{{{2}}}}} {{ucfirst:{{{3}}}}} ===
-->=== {{ucfirst:{{{2}}}}} {{ucfirst:{{{3}}}}} ===
   {{#cargo_query:tables=Equipment_Items=Items,Equipment_Weapons=Weapons
   {{#cargo_query:tables=Equipment_Items=Items,Equipment_Weapons=Weapons
Line 20: Line 29:
   |fields=CONCAT( '[[', Weapons._pageName, '|', Name, ']]' ) = Name,Cost,Damage,Critical,RangeInc = Range,Weight,DamageType=Type,Special
   |fields=CONCAT( '[[', Weapons._pageName, '|', Name, ']]' ) = Name,Cost,Damage,Critical,RangeInc = Range,Weight,DamageType=Type,Special
   |format=table
   |format=table
   }}</includeonly>
   }}<!--
-->|<!--
-->=== {{ucfirst:{{{1}}}}} ===
  {{#cargo_query:tables=Equipment_Items=Items,Equipment_Weapons=Weapons
  |join on=Items._pageName= Weapons._pageName
  |where=ItemType="{{{1}}}"
  |order by=Name
  |fields=CONCAT( '[[', Weapons._pageName, '|', Name, ']]' ) = Name,Cost,Damage,Critical,RangeInc = Range,Weight,DamageType=Type,Special
  |format=table
  }}<!--
--></includeonly>

Revision as of 19:56, 7 August 2021

All lower-case

Either:

  • 1: simple / martial / exotic
  • 2: light / one-handed / two-handed
  • 3: melee / ranged / ranged / ammunition / misc

Or:

  • 1: melee / ranged / ranged / ammunition / misc

Template:

{{Equipment_Weapons|simple|light|melee}}

{{Equipment_Weapons|ranged}}