Module:Documentation: Difference between revisions

create header text before tlinks
(fix namespace)
(create header text before tlinks)
Line 1:
--[[
Add your experimental module code here.
--]]
-- This module implements {{documentation}}.
 
Line 6 ⟶ 9:
 
-- Get the config table.
local cfg = mw.loadData('Module:Documentation/config/sandbox')
local i18n = mw.loadData('Module:Documentation/i18n')
local p = {}
Line 337 ⟶ 340:
-- 'sandbox-notice-blurb' --> 'This is the $1 for $2.'
-- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).'
-- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Wikipedia:Template sandbox and test cases|template sandbox]] page'
-- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Wikipedia:Template sandbox and test cases|module sandbox]] page'
-- 'sandbox-notice-pagetype-other' --> 'sandbox page'
-- 'sandbox-notice-compare-link-display' --> 'diff'
Line 609 ⟶ 612:
sbox
:addClass(message('header-div-class'))
:tag('div')
:addClass(message('heading-div-class'))
:wikitext(data.heading)
local links = data.links
if links then
Line 617 ⟶ 623:
:wikitext(links)
end
sbox
:tag('div')
:addClass(message('heading-div-class'))
:wikitext(data.heading)
return tostring(sbox)
end
Anonymous user