View source for Module:Used in recommended equipment
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
local contains = require('Module:Array').contains
local pagesWithCats = require('Module:PageListTools').pageswithcats
local paramTest = require('Module:Paramtest')
local ask = mw.smw.ask
local decode = mw.text.jsonDecode
local html = mw.html
local title = mw.title
local trim = mw.text.trim
function buildRow(positions, page, tableStyle)
local row = html.create('tr')
row:tag('td'):attr('data-sort-value', string.sub(positions, 1, 1)):wikitext(positions):done()
:tag('td'):wikitext('[[' .. page .. ']]' .. (paramTest.has_content(tableStyle) and ' <small>(' .. tableStyle .. ')</small>' or '')):done()
return row
end
function createHeader()
local tabl = html.create('table'):addClass('wikitable mw-collapsible mw-collapsed sortable align-center-1 align-left-2 autosort=1,a')
000
1:0
Return to Module:Used in recommended equipment.