跳转到内容

模組:Special wikitext/Custom Module

本页使用了标题或全文手工转换
被永久保护的模块
维基百科,自由的百科全书

这是本页的一个历史版本,由A2569875留言 | 贡献2024年1月6日 (六) 09:37 (調整格式、排版)编辑。这可能和当前版本存在着巨大的差异。

#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>}}]])
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