420
edits
HyperNervie (talk | contribs) (oops) |
HyperNervie (talk | contribs) (Allow adding classes to images) |
||
| Line 26: | Line 26: | ||
local function _textWithTempoUp(entry, args) | local function _textWithTempoUp(entry, args) | ||
if entry.target == "" then return "" end | if entry.target == "" then return "" end | ||
local t = entry.text | local t = entry.text | ||
if (entry.console == "GBA" or entry.console == "Arcade") | if (entry.console == "GBA" or entry.console == "Arcade") | ||
and entry.stage == "EX" | and entry.stage == "EX" | ||
then | then | ||
tempoUpSize = tempoUpSize or "72px" | local tempoUpSize = args.tempoUpSize or "72px" | ||
t = mw.ustring.format("%s [[File:TempoUpExtra%s.png|%s|link=]]", | local class = "" | ||
t, entry.number, tempoUpSize) | if args.class then class = "|class=" .. args.class end | ||
t = mw.ustring.format("%s [[File:TempoUpExtra%s.png|%s%s|link=]]", | |||
t, entry.number, tempoUpSize, class) | |||
end | end | ||
return t | return t | ||
| Line 114: | Line 115: | ||
local function _icon(entry, args) | local function _icon(entry, args) | ||
local iconSize = args.iconSize or entry.defaultIconSize | local iconSize = args.iconSize or entry.defaultIconSize | ||
return mw.ustring.format("[[File:%s|%s|link=%s]]", | local link = entry.selfLink and "" or entry.title | ||
entry:iconName(args), iconSize, | local class = "" | ||
if args.class then class = "|class=" .. args.class end | |||
return mw.ustring.format("[[File:%s|%s%s|link=%s]]", | |||
entry:iconName(args), iconSize, class, link) | |||
end | end | ||
edits