Module:Documentation: Difference between revisions
add __EXPECTUNUSEDTEMPLATE__ to sandboxNotice
(Created page with "-- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub local format = mw.ustring.format ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in...") |
>WOSlinker (add __EXPECTUNUSEDTEMPLATE__ to sandboxNotice) |
||
Line 379: | Line 379: | ||
-- Get the text. We start with the opening blurb, which is something like | -- Get the text. We start with the opening blurb, which is something like | ||
-- "This is the template sandbox for [[Template:Foo]] (diff)." | -- "This is the template sandbox for [[Template:Foo]] (diff)." | ||
local text = '' | local text = '__EXPECTUNUSEDTEMPLATE__' | ||
local pagetype, sandboxCat | local pagetype, sandboxCat | ||
if subjectSpace == 10 then | if subjectSpace == 10 then |