Module:Infobox Recipe: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(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: | Line 8: | ||
local album_xp_data = mw.loadData('Module:Experience/data').album |
local album_xp_data = mw.loadData('Module:Experience/data').album |
||
local lang = mw.language.getContentLanguage() |
local lang = mw.language.getContentLanguage() |
||
local tooltip = require('Module:Tooltip') |
|||
local function formatNum(n) |
local function formatNum(n) |
||
Line 214: | Line 215: | ||
:attr{ colspan = '2' } |
:attr{ colspan = '2' } |
||
:IF(passive) |
:IF(passive) |
||
:wikitext('[[File:Passive small icon.png|20x20px|link=Passive Activity]] [[Passive Activity|Passive]] [[Experience]]') |
:wikitext('[[File:Passive small icon.png|20x20px|link=Passive Activity]] [[Passive Activity|Passive]] [[Experience]] ') |
||
:node(tooltip._span{ 'passive' }) |
|||
: |
:node(tooltip._div{ 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() |
:ELSE() |
||
:wikitext('[[Experience]]') |
:wikitext('[[Experience]]') |