Difference between revisions of "Template:Weapon Prerequisite Table"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Boblers
(changing default message to italics instead of bold)
>Boblers
(labeling the rightmost column)
 
Line 5: Line 5:
 
   {{{!}}class="wikitable lightblue" style="margin:auto; width:100%"
 
   {{{!}}class="wikitable lightblue" style="margin:auto; width:100%"
 
   ! style="width: 50%" {{!}} Prerequisite weapons
 
   ! style="width: 50%" {{!}} Prerequisite weapons
   ! style="width: 50%" {{!}}
+
   ! style="width: 50%" {{!}} Unlocked weapon
 
   {{!}}-
 
   {{!}}-
 
   {{!}} style="padding:1em;" {{!}} {{#invoke:CargoQuery|main|q?tables=Weapons|q?fields=WeaponName|q?where= Id={{{AcquiredWeaponId1|}}}|template=Weapon progression entry|delimiter=<br/>|q?orderBy=CraftNodeId|q?groupBy=_pageName|q?default=<center>-</center>}}
 
   {{!}} style="padding:1em;" {{!}} {{#invoke:CargoQuery|main|q?tables=Weapons|q?fields=WeaponName|q?where= Id={{{AcquiredWeaponId1|}}}|template=Weapon progression entry|delimiter=<br/>|q?orderBy=CraftNodeId|q?groupBy=_pageName|q?default=<center>-</center>}}
Line 15: Line 15:
 
   {{{!}}class="wikitable lightblue" style="margin:auto; width:100%"
 
   {{{!}}class="wikitable lightblue" style="margin:auto; width:100%"
 
   ! style="width: 50%" {{!}} Prerequisite weapons
 
   ! style="width: 50%" {{!}} Prerequisite weapons
   ! style="width: 50%" {{!}}
+
   ! style="width: 50%" {{!}} Unlocked weapon
 
   {{!}}-
 
   {{!}}-
 
   {{!}} style="padding:1em;" {{!}} {{#invoke:CargoQuery|main|q?tables=Weapons|q?fields=WeaponName|q?where= Id={{{AcquiredWeaponId1|}}}|template=Weapon progression entry|delimiter=<br/>|q?orderBy=CraftNodeId|q?groupBy=_pageName|q?default=<center>-</center>}}
 
   {{!}} style="padding:1em;" {{!}} {{#invoke:CargoQuery|main|q?tables=Weapons|q?fields=WeaponName|q?where= Id={{{AcquiredWeaponId1|}}}|template=Weapon progression entry|delimiter=<br/>|q?orderBy=CraftNodeId|q?groupBy=_pageName|q?default=<center>-</center>}}

Latest revision as of 01:32, 13 April 2020

50px Documentation

This template creates a table of prerequisite weapons needed to craft a given weapon. It is intended to be called from within Template:Weapon.

This will only display direct prerequisites. For example, an Agito weapon will display that it needs a Chimeratech weapon, but not that the Chimeratech weapon in turn needs a Manticore weapon.

Examples

  • Weapon with 2 prerequisites:
{{Weapon Prerequisite Table|WeaponName=Tempest|Rarity=5|AcquiredWeaponId1=30150301|AcquiredWeaponId2=30150303}}

Icon Rarity Row 5.png

Prerequisite weapons Unlocked weapon
Lua error: Error: Table Weapons not found.. Lua error: Error: Table Weapons not found..
[[|Tempest]]
HP: -
Str: -
Skill: None
Abilities: None
Lua error: Error: Table Weapons not found..


  • Weapon with 1 prerequisite:
{{Weapon Prerequisite Table|WeaponName=Chimeratech Commander|Rarity=5|AcquiredWeaponId1=30150109|AcquiredWeaponId2=}}

Icon Rarity Row 5.png

Prerequisite weapons Unlocked weapon
Lua error: Error: Table Weapons not found.. Lua error: Error: Table Weapons not found..
[[|Chimeratech Commander]]
HP: -
Str: -
Skill: None
Abilities: None


  • Weapon with no prerequisites:
{{Weapon Prerequisite Table|WeaponName=Durandal|Rarity=5|AcquiredWeaponId1=|AcquiredWeaponId2=}}

This weapon has no prerequisites to craft.