Module:Recipe: Difference between revisions
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
local param = { | local param = { | ||
sCharArg = 'character', | sCharArg = 'character', | ||
sKitchArg = 'kitchenware', | |||
sTypeArg = 'type', | sTypeArg = 'type', | ||
sSortArg = 'sort', | sSortArg = 'sort', | ||
| Line 477: | Line 478: | ||
end | end | ||
--]] | --]] | ||
local function | local function renderKitchenWareSlot(args, header) | ||
if type(args[param.sKitchArg]) ~= 'string' then | |||
return | return | ||
end | end | ||
local | local sKitchName = args[param.sKitchArg] | ||
header:tag('span'):addClass('recipe_header_sub') | |||
:tag('span'):addClass('mobileHide'):wikitext(' with '):done() | |||
:tag('span'):addClass('hidden'):wikitext('[[File:' .. sKitchName .. ' Icon.png|24x24px|link=' .. sKitchName .. ']]'):done() | |||
:tag('span'):addClass('recipe_header_text'):wikitext('[[' .. sKitchName .. ']]'):done() | |||
end | end | ||