Module:Chat options: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Created page with "-- <pre> local p = {} local hasc = require('Module:Paramtest').has_content local tooltips = require('Module:Tooltip') function p.main(frame) local args = frame:getParent().args local items = {} local i = 1 while hasc(args[i]) do local item = mw.text.trim(args[i]) local key local tooltip if item:lower() == 'any' or item == '~' then key = '~' tooltip = '[Any option]' else -- Match first case-insensitive, alphanumeric character, "#", or "?"...")
 
No edit summary
Line 70: Line 70:
local c_options_container = mw.html.create('span')
local c_options_container = mw.html.create('span')
:addClass('chat-options')
:addClass('chat-options')
:wikitext('(<i title="Chat options">[[File:Talk small icon.png|alt=Talk to|link=]]</i> ')
:wikitext('(<i title="Chat options">[[File:Talk small icon.png|15px|alt=Talk to|link=]]</i> ')
:wikitext(table.concat(c_options_arr, '&bull;')) -- Concat chat option numbers with hovers
:wikitext(table.concat(c_options_arr, '&bull;')) -- Concat chat option numbers with hovers
:wikitext(')')
:wikitext(')')