Use mbox submodule
starcitizen>Alistair3149 (Sync with RS wiki) |
starcitizen>Alistair3149 (Use mbox submodule) |
||
| Рядок 2: | Рядок 2: | ||
local dependencyList = require( 'Module:DependencyList' ) | local dependencyList = require( 'Module:DependencyList' ) | ||
local yn = require( 'Module:Yesno' ) | local yn = require( 'Module:Yesno' ) | ||
local mbox = require( 'Module:Mbox' )._mbox | |||
local p = {} | local p = {} | ||
| Рядок 19: | Рядок 20: | ||
-- subpage header | -- subpage header | ||
if title.subpageText == 'doc' then | if title.subpageText == 'doc' then | ||
ret = mbox( | |||
'This is a documentation subpage for ' .. page .. '.', | |||
string.format( | |||
'It contains usage information, categories, and other content that is not part of the [[' .. page .. '|original %s page]].', | |||
onModule and 'module' or 'template' | |||
), | |||
{ icon = 'WikimediaUI-Notice.svg' } | |||
) | |||
if title.namespace == 10 then -- Template namespace | if title.namespace == 10 then -- Template namespace | ||