Différences entre les versions de « Module:Villagers »

Aller à la navigation Aller à la recherche
aucun résumé de modification
Balise : Révocation manuelle
Balise : Révocation manuelle
Ligne 1 : Ligne 1 :
local p = {}
local p = {}
local b = mw.loadData('Module:BuildingIndex')
local b = mw.loadData('Module:Buildings')
local a = require('Module:Arguments')
local a = require('Module:Arguments')
local com = require('Module:Common')
local com = require('Module:Common')
Ligne 30 : Ligne 30 :
for k, v in pairs(jobs) do
for k, v in pairs(jobs) do
local jobName = mw.html.create('li')
local jobName = mw.html.create('li')
jobName:wikitext('[[' .. com.fUpper(k) .. ']]' .. ((b[k].employees.job and ' - ' .. b[k].employees.job) or ''))
jobName:wikitext('[[' .. com.fUpper(k) .. ']]' .. ((b[k].job and ' - ' .. b[k].job) or ''))
-- amay4672: evidently com.fUpper(k) here is what creates the hyperlinked building name
-- amay4672: evidently com.fUpper(k) here is what creates the hyperlinked building name
jobList:node(jobName)
jobList:node(jobName)
825

modifications

Menu de navigation