4,683
edits
(Cleaned up script and support EffectIcon) |
m (Remove double spacing when there's no expansion icon) |
||
Line 17: | Line 17: | ||
const wikiIcon = (item, icon, extras) => { | const wikiIcon = (item, icon, extras) => { | ||
if (!returnEquipmentTemplate) | if (!returnEquipmentTemplate) | ||
return `* ${item.namespace.includes('TotH') ? '{{TotH}}' : item.namespace.includes('AoD') ? '{{AoD}}' : item.namespace.includes('ItA') ? '{{ItA}}' : ''} {{${icon}|${item.name}${extras}}}`; | return `*${item.namespace.includes('TotH') ? ' {{TotH}}' : item.namespace.includes('AoD') ? ' {{AoD}}' : item.namespace.includes('ItA') ? ' {{ItA}}' : ''} {{${icon}|${item.name}${extras}}}`; | ||
return `|${item.name}`; | return `|${item.name}`; | ||
} | } |