Anonymous

Template:Disambiguation/doc: Difference between revisions

From Melvor Idle
m
no edit summary
No edit summary
mNo edit summary
Line 13: Line 13:
let search = (item) => !item.isModded && item.name.toLowerCase().includes(searchTerm.toLowerCase());
let search = (item) => !item.isModded && item.name.toLowerCase().includes(searchTerm.toLowerCase());
let wikiIcon = (item, icon, extras, postText) => {
let wikiIcon = (item, icon, extras, postText) => {
numResults++;
if (!returnEquipmentTemplate) {
if (!returnEquipmentTemplate) {
numResults++;
extras = extras.replaceAll('${NAME}', `${item.name}`);
extras = extras.replaceAll('${NAME}', `${item.name}`);
let expIcon = `${item.namespace.includes('TotH') ? ' {{TotH}}' : item.namespace.includes('AoD') ? ' {{AoD}}' : item.namespace.includes('ItA') ? ' {{ItA}}' : ' {{Melvor}}'}`;
let expIcon = `${item.namespace.includes('TotH') ? ' {{TotH}}' : item.namespace.includes('AoD') ? ' {{AoD}}' : item.namespace.includes('ItA') ? ' {{ItA}}' : ' {{Melvor}}'}`;