Module:Infobox Recipe: Difference between revisions

m
Use tooltip module directly
(checks for a parameter "passive" in the template, and if it is true it displays Passive next to the experience with a tooltip)
m (Use tooltip module directly)
Line 8:
local album_xp_data = mw.loadData('Module:Experience/data').album
local lang = mw.language.getContentLanguage()
local tooltip = require('Module:Tooltip')
 
local function formatNum(n)
Line 214 ⟶ 215:
:attr{ colspan = '2' }
:IF(passive)
:wikitext('[[File:Passive small icon.png|20x20px|link=Passive Activity]] [[Passive Activity|Passive]] [[Experience]] ')
:node(tooltip._span{ 'passive' })
:wikitextnode(mwtooltip.getCurrentFrame():preprocess(' {{Tooltip|passive}}{_div{Tooltip text|name = 'passive|', content = 'Passive activities give reduced experience when a players level is high enough to perform a new passive activity for that profession. The number shown here is the full experience.}}') })
:ELSE()
:wikitext('[[Experience]]')
707

edits