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()
:tagIF('tr'not args.quest)
:tag('thtr')
:attr{ colspan = tag('2th' })
:attr{ colspan = '112' }
:wikitext('[[Experience]]')
:done()
:ENDtag('td')
: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)')
:doneEND()
:done()
:done()
:tagEND('td')
: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()
:done()
:tag('tr')
:tag('th')
Line 241 ⟶ 246:
:wikitext('Level')
:done()
:tagIF('th'not args.quest)
:attr{ colspan = tag('5th' })
:attr{ colspan = '5' }
:wikitext('[[Knowledge|KP]]')
:done()
:tagdone('th')
:attr{ colspan = tag('5th' })
:attr{ colspan = '5' }
:wikitext('[[Album|Album XP]]')
:done()
:done()
:doneELSE()
:tag('th')
:attr{ colspan = '10' }
:wikitext(album_xp'Quest or 'UnknownRecipe')
:done()
:END()
:done()
:tag('tr')
Line 260 ⟶ 272:
:wikitext(hc(args.level) and (args.level) or editButton("'''?''' (edit)").. '[[Category:Needs level recipe]]')
:done()
:tagIF('td'not args.quest)
:attr{ colspan = tag('5td' })
:cssattr{ ['text-align']colspan = 'center5' }
:css{ ['text-align'] = 'center' }
:wikitext(hc(args.kp) and ('%s%%'):format(args.kp) or editButton("'''?''' (edit)").. '[[Category:Needs knowledge recipe]]')
:done()
:tagdone('td')
:attr{ colspan = tag('5td' })
:cssattr{ ['text-align']colspan = 'center5' }
: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()
 
19,852

edits