Module:Chat options: Difference between revisions
no edit summary
(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:
local c_options_container = mw.html.create('span')
:addClass('chat-options')
:wikitext('(<i title="Chat options">[[File:Talk small icon.png|15px|alt=Talk to|link=]]</i> ')
:wikitext(table.concat(c_options_arr, '•')) -- Concat chat option numbers with hovers
:wikitext(')')
|