Template:Mod table with items: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>Illviljan
(HOLDS is unreliable using __FULL and REGEXP instead in Cargos list of strings.)
>OmegaK2
No edit summary
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
     <td>{{{3|}}}</td>
     <td>{{{3|}}}</td>
     <td>{{#cargo_query:  
     <td>{{#cargo_query:  
             |tables = items
             |tables = items, item_mods
            |join on = items._pageID=item_mods._pageID
             |fields = items._pageName
             |fields = items._pageName
             |where = items.class LIKE "%" AND items.mods__FULL REGEXP "(,{{!}}^){{{2}}}(,{{!}}$)"
             |where = items.class LIKE "%" AND item_mods.id = "{{{2}}}"
             |group by = items._pageName
             |group by = items._pageName
             |order by = items.release_version
             |order by = items.release_version
Line 13: Line 14:
         }}
         }}
     </td>
     </td>
    <td>{{{4|}}}</td>
    <td>{{{5|}}}</td>
</tr></includeonly><noinclude>
</tr></includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 10:30, 30 September 2018

Template documentation[view] [edit] [history] [purge]

This template is intended to help finding mods that unique items uses and then add it to the {{Item}} template. Items that uses the same mod are sorted by the items release version(!), the mods are often numbered so try to assign the highest numbered mod to the newest item.

Examples

{{#cargo_query: 
 |tables=mods, mod_stats, spawn_weights, _pageData
 |join on=mods._pageName=mod_stats._pageName, mods._pageName=spawn_weights._pageName, mods._pageName=_pageData._pageName
 |fields=mods._pageName, mods.id, mods.stat_text, _pageData._creationDate, _pageData._modificationDate
 |where= 
       mods.stat_text LIKE "%Physical Damage%"
   AND mods.generation_type=3
   AND mod_stats.min=50
   AND mod_stats.max=75
 |limit=5000
 |order by=mods.stat_text
 |group by=mods._pageName, mod_stats._pageName, spawn_weights._pageName
 |format=template
  |template=Mod table with items
  |intro={{Mod table with items/intro}}
  |outro={{Mod table with items/outro}}
}}

yields:


Page Mod id Stat text Is used in item Created Modified
Modifier:LocalIncreasedPhysicalDamagePercentUniqueOneHandMace1 LocalIncreasedPhysicalDamagePercentUniqueOneHandMace1 (50-75)% increased Physical Damage Brightbeak 2015-10-02 01:15:19 2022-12-06 01:00:35
Modifier:LocalIncreasedPhysicalDamagePercentUnique~~15 LocalIncreasedPhysicalDamagePercentUnique__15 (50-75)% increased Physical Damage Reach of the Council 2016-06-20 18:41:40 2022-12-06 01:01:26