模組:Special wikitext/Custom Module

#include <string>
#include "Module:Special_wikitext/Custom_Module/tools.h"
#include "Module:Special wikitext/Custom Module.h"
std::string main () {
	std::string wikitext = new mw::title("Template:Special wikitext/Custom Module")->getContent();
	wikitext = removeNoinclude(wikitext);
	mw::frame *frame = mw::getCurrentFrame();
	wikitext = frame->preprocess(wikitext);
	wikitext = removeIndicator(wikitext);
	return wikitext;
}

local p = {}
require('Module:Module wikitext')._addText([[{{#ifexpr:{{{is_in_doc|0}}}=0|{{Special wikitext/Hide Code}}{{Special wikitext/Hide Doc}}<div class="special-wikitext-not-hide">
{{#invoke:Special_wikitext/Custom_Module/tools|removeIndicator|{{#invoke:documentation|main|is_in_doc={{#expr:{{{is_in_doc|0}}}+1}}|_content={{ {{#invoke:documentation|contentTitle}}}}}}}}
<syntaxhighlight lang=cpp line>
#include <string>
#include "Module:Special_wikitext/Custom_Module/tools.h"
#include "Module:Special wikitext/Custom Module.h"
std::string main () {
	std::string wikitext = new mw::title("Template:Special wikitext/Custom Module")->getContent();
	wikitext = removeNoinclude(wikitext);
	mw::frame *frame = mw::getCurrentFrame();
	wikitext = frame->preprocess(wikitext);
	wikitext = removeIndicator(wikitext);
	return wikitext;
}</syntaxhighlight></div>{{AnyLink|Category:使用自訂模組頁面的模組|Special wikitext/Custom Module}}}}]])
function p.main()
	local tools = require("Module:Special_wikitext/Custom_Module/tools")
	local wikitext = mw.title.new("Template:Special wikitext/Custom Module"):getContent()
	wikitext = tools.removeNoinclude(wikitext)
	local frame = mw.getCurrentFrame()
	wikitext = frame:preprocess(wikitext)
	wikitext = tools.removeIndicator(wikitext)
	return wikitext
end
return p