Module:Sandbox/Vergir: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m Mgpt moved page Module:Vergir to Module:Sandbox/Vergir: Deadlock:User pages |
Throwaway test: how mw.ext.tabber.render handles HTML in a tab label (with help from vergir-bot LLM) Tag: Replaced |
||
| Line 1: | Line 1: | ||
-- | -- Throwaway experiment. Checks how mw.ext.tabber.render treats a tab label that | ||
-- contains HTML, which is what an untranslated string looks like once | |||
-- Module:Dictionary appends Template:NeedsTranslationTooltip to it. | |||
-- | |||
-- On a /ru page: 'Notes' has a Russian value, so its label is plain text. | |||
-- 'Music' is English-only, so its label arrives with the tooltip markup attached. | |||
local p = {} | local p = {} | ||
local dictionary = require("Module:Dictionary") | |||
function p.test(frame) | |||
local tabs = { | |||
{ label = dictionary.translate('Notes'), content = 'panel one' }, | |||
{ label = dictionary.translate('Music'), content = 'panel two' }, | |||
} | |||
return mw.ext.tabber.render(tabs) | |||
function p. | |||
end | end | ||
return p | return p | ||
Revision as of 21:04, 1 August 2026
Documentation for this module may be created at Module:Sandbox/Vergir/doc
-- Throwaway experiment. Checks how mw.ext.tabber.render treats a tab label that
-- contains HTML, which is what an untranslated string looks like once
-- Module:Dictionary appends Template:NeedsTranslationTooltip to it.
--
-- On a /ru page: 'Notes' has a Russian value, so its label is plain text.
-- 'Music' is English-only, so its label arrives with the tooltip markup attached.
local p = {}
local dictionary = require("Module:Dictionary")
function p.test(frame)
local tabs = {
{ label = dictionary.translate('Notes'), content = 'panel one' },
{ label = dictionary.translate('Music'), content = 'panel two' },
}
return mw.ext.tabber.render(tabs)
end
return p