Module:Infobox Recipe: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(quest items will link to the quest instead of displaying xp or kp) |
(change behavior for hiding album xp: looks for parameter "hideAlbum" on the page and replaces album xp with "N/A" if it is true) |
||
Line 27: | Line 27: | ||
--If set to true, will check if any of the items passed as a rawmaterialparam are actually intermediate materials. Will then change the display order of the infobox. |
--If set to true, will check if any of the items passed as a rawmaterialparam are actually intermediate materials. Will then change the display order of the infobox. |
||
local showFullRecipe = yn(args.showFull or 'no', false) |
local showFullRecipe = yn(args.showFull or 'no', false) |
||
--If set to true, will check hide the album xp section as the item does not give album xp. |
|||
local hideAlbum = yn(args.hideAlbum or 'no', false) |
|||
--Get each of the rawmatX parameters from params and store their values in a new table |
--Get each of the rawmatX parameters from params and store their values in a new table |
||
local argsMaterials = p._extractRawMaterials(args) |
local argsMaterials = p._extractRawMaterials(args) |
||
Line 204: | Line 207: | ||
:done() |
:done() |
||
:done() |
:done() |
||
: |
:tag('tr') |
||
:tag(' |
:tag('th') |
||
: |
:attr{ colspan = '2' } |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:attr{ colspan = '11' } |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:done() |
:done() |
||
: |
:tag('td') |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:done() |
|||
:tag('tr') |
:tag('tr') |
||
:tag('th') |
:tag('th') |
||
Line 246: | Line 247: | ||
:wikitext('Level') |
:wikitext('Level') |
||
:done() |
:done() |
||
: |
:tag('th') |
||
: |
:attr{ colspan = '5' } |
||
⚫ | |||
:attr{ colspan = '5' } |
|||
⚫ | |||
⚫ | |||
:tag('th') |
|||
: |
:attr{ colspan = '5' } |
||
⚫ | |||
:attr{ colspan = '5' } |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:attr{ colspan = '10' } |
|||
:wikitext('Quest Recipe') |
|||
⚫ | |||
:END() |
|||
:done() |
:done() |
||
:tag('tr') |
:tag('tr') |
||
Line 272: | Line 266: | ||
:wikitext(hc(args.level) and (args.level) or editButton("'''?''' (edit)").. '[[Category:Needs level recipe]]') |
:wikitext(hc(args.level) and (args.level) or editButton("'''?''' (edit)").. '[[Category:Needs level recipe]]') |
||
:done() |
:done() |
||
: |
:tag('td') |
||
: |
:attr{ colspan = '5' } |
||
:css{ ['text-align'] = 'center' } |
|||
⚫ | |||
:css{ ['text-align'] = 'center' } |
|||
⚫ | |||
⚫ | |||
:tag('td') |
|||
: |
:attr{ colspan = '5' } |
||
:css{ ['text-align'] = 'center' } |
|||
:IF(hideAlbum) |
|||
:css{ ['text-align'] = 'center' } |
|||
⚫ | |||
⚫ | |||
:wikitext(album_xp or 'Unknown') |
:wikitext(album_xp or 'Unknown') |
||
: |
:END() |
||
: |
:done() |
||
:tag('td') |
|||
:attr{ colspan = '10' } |
|||
:css{ ['text-align'] = 'center' } |
|||
:wikitext(args.quest) |
|||
:done() |
|||
:END() |
|||
:done() |
:done() |
||