Template:Stub section: Difference between revisions

frontierpediav5>WikiSysop
Created page with "local mt = getmetatable(_G) or {} function mt.__index (t, k) if k ~= 'arg' then error('Tried to read nil global ' .. tostring(k), 2) end return nil end function mt.__newi..."
 
frontierpediav5>WikiSysop
modified version of the import since the import looked like shit
Line 1: Line 1:
local mt = getmetatable(_G) or {}
<div style="padding: 0.5em; margin: 1em 0.5em 0; border: 1px solid #AAA; border-width: 1px 0">
function mt.__index (t, k)
{{Ambox
if k ~= 'arg' then
| name  = Expand section
error('Tried to read nil global ' .. tostring(k), 2)
| type  = content
end
| small = {{{small|left}}}
return nil
| image = [[File:Wiki letter w cropped.svg|{{#ifeq:{{{small|}}}|no|44px|20px}}|alt=&#91;icon&#93;]]
end
| issue = This section needs expansion{{#if:{{{with|{{{for|{{{1|}}}}}}}}}
function mt.__newindex(t, k, v)
| &#32;with: {{{with|{{{for|{{{1}}}}}}}}}}}{{#ifeq:{{{punctuation|{{{period|}}}}}}|no||.}} You can help by [{{fullurl:{{FULLPAGENAME}}|action=edit&section={{{section|}}}}} adding to it].
if k ~= 'arg' then
| talk  = {{{talk|{{{discuss|{{{talksection|}}}}}}}}}
error('Tried to write global ' .. tostring(k), 2)
| all  = All articles to be expanded
end
| cat  = Articles to be expanded
rawset(t, k, v)
| date  = {{{date|}}}
end
}}
setmetatable(_G, mt)
</div>