Module:Infobox Recipe: Difference between revisions
quest items will link to the quest instead of displaying xp or kp
(swap positions of XP and Album XP, replace "XP" with "Experience" where there is space, make "Experience", "KP", and "Album" be links to their own pages) |
(quest items will link to the quest instead of displaying xp or kp) |
||
Line 53:
end
end
-- if the recipe is part of a quest
args.quest = args.quest or false
--Set SMW properties early, so latter parts can potentially use it.
Line 201 ⟶ 204:
:done()
:done()
:
:tag('
:
:wikitext('[[Experience]]')
:done()▼
:attr{ colspan = '11' }
:css{ ['text-align'] = 'center' }▼
:wikitext(hc(args.exp) and (formatNum(tonumber(args.exp))) or editButton("'''?''' (edit)").. '[[Category:Needs experience recipe]]')▼
:IF(showFullRecipe)▼
:wikitext(' (')▼
:wikitext(hc(args.displayXP) and (formatNum(tonumber(args.displayXP))) or ("'''?'''"))▼
:wikitext(' total)')▼
:done()▼
:done()
▲ :attr{ colspan = '11' }
▲ :css{ ['text-align'] = 'center' }
▲ :wikitext(hc(args.exp) and (formatNum(tonumber(args.exp))) or editButton("'''?''' (edit)").. '[[Category:Needs experience recipe]]')
▲ :IF(showFullRecipe)
▲ :wikitext(' (')
▲ :wikitext(hc(args.displayXP) and (formatNum(tonumber(args.displayXP))) or ("'''?'''"))
▲ :wikitext(' total)')
▲ :END()
▲ :done()
:tag('tr')
:tag('th')
Line 241 ⟶ 246:
:wikitext('Level')
:done()
:
:
:attr{ colspan = '5' }
:wikitext('[[Knowledge|KP]]')
▲ :done()
:
:
:attr{ colspan = '5' }
:wikitext('[[Album|Album XP]]')
▲ :done()
:done()▼
:tag('th')
:attr{ colspan = '10' }
▲ :done()
:END()
:done()
:tag('tr')
Line 260 ⟶ 272:
:wikitext(hc(args.level) and (args.level) or editButton("'''?''' (edit)").. '[[Category:Needs level recipe]]')
:done()
:
:
:
:css{ ['text-align'] = 'center' }
:wikitext(hc(args.kp) and ('%s%%'):format(args.kp) or editButton("'''?''' (edit)").. '[[Category:Needs knowledge recipe]]')
▲ :done()
:
:
:
:css{ ['text-align'] = 'center' }
▲ :wikitext(album_xp or 'Unknown')
:wikitext(album_xp or 'Unknown')
▲ :done()
:done()
:ELSE()
:tag('td')
:attr{ colspan = '10' }
:css{ ['text-align'] = 'center' }
:wikitext(args.quest)
:done()
:END()
:done()
|