モジュール:サンドボックス/Takym/SampleCode
![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
local p = {}
-- {{#invoke:サンドボックス/Takym/SampleCode|load|name=サンプルコード名}}
function p.load(frame)
local name = frame.args.name
local data = mw.loadData('モジュール:サンドボックス/Takym/SampleCode/data/' .. name)
local root = mw.html.create()
root:wikitext(frame:expandTemplate{ title = "利用者:Takym/テンプレート/SampleCode", args = data })
return tostring(root)
end
return p