5,478
edits
(Created page with "local p = {} local cargo = mw.ext.cargo function p.list(frame) local query = { limit = '1000', orderBy = 'Characters.name_en ASC', } local fields = 'name_en,image,_pageName' local characters = cargo.query('Characters', fields, query) local root = mw.html.create('div'):cssText('display:flex; flex-flow:row wrap;') for _, ch in ipairs(characters) do local template = frame:expandTemplate{ title='Character Icon', args={ icon=ch.image, name_en=ch.n...") |
No edit summary Tag: Reverted |
||
Line 12: | Line 12: | ||
local root = mw.html.create('div'):cssText('display:flex; flex-flow:row wrap;') | local root = mw.html.create('div'):cssText('display:flex; flex-flow:row wrap;') | ||
for _, ch in ipairs(characters) do | for _, ch in ipairs(characters) do | ||
local anchor = mw.html.create('a'):attr('href', '/'+ch._pageName) | |||
local template = frame:expandTemplate{ | local template = frame:expandTemplate{ | ||
title='Character Icon', | title='Character Icon', |