跳转到内容

模組:Special wikitext/Custom Module

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

这是Module:Special wikitext/Custom Module当前版本,由Xiplus-abot留言 | 贡献编辑于2024年1月17日 (三) 21:28 (已更改“Module:Special wikitext/Custom Module”的保护设置:​高風險模板:392270引用<!-- 機器人3 -->([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期)))。这个网址是本页该版本的固定链接。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)
#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