Module:Infobox Recipe: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(use lang:formatNum on displayed XP values, since they do get quite large)
(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)
Line 204: Line 204:
:tag('th')
:tag('th')
:attr{ colspan = '2' }
:attr{ colspan = '2' }
:wikitext('Album XP')
:wikitext('[[Experience]]')
:done()
:done()
:tag('td')
:tag('td')
:attr{ colspan = '11' }
:attr{ colspan = '11' }
:css{ ['text-align'] = 'center' }
:css{ ['text-align'] = 'center' }
:wikitext(hc(args.exp) and (formatNum(tonumber(args.exp))) or editButton("'''?''' (edit)").. '[[Category:Needs experience recipe]]')
:wikitext(album_xp or 'Unknown')
:IF(showFullRecipe)

:wikitext(' (')
:wikitext(hc(args.displayXP) and (formatNum(tonumber(args.displayXP))) or ("'''?'''"))
:wikitext(' total)')
:END()
:done()
:done()
:done()
:done()
Line 239: Line 243:
:tag('th')
:tag('th')
:attr{ colspan = '5' }
:attr{ colspan = '5' }
:wikitext('KP')
:wikitext('[[Knowledge|KP]]')
:done()
:done()
:tag('th')
:tag('th')
:attr{ colspan = '5' }
:attr{ colspan = '5' }
:wikitext('XP')
:wikitext('[[Album|Album XP]]')
:done()
:done()
:done()
:done()
Line 264: Line 268:
:attr{ colspan = '5' }
:attr{ colspan = '5' }
:css{ ['text-align'] = 'center' }
:css{ ['text-align'] = 'center' }
:wikitext(album_xp or 'Unknown')
: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()
:done()
:done()