这是Module:Template invocation的文档页面

生成 MediaWiki 模板调用字符串的工具模块。

导出函数

name(title)
将页面名转为模板调用名。例如 "Template:Hatnote" → "Hatnote"
invocation(name, args, format)
构造 Template:模板名 格式的字符串。
参数 format 设为 "nowiki" 时可转义花括号与管道符。

依赖

  • libraryUtil(Scribunto 内置)