Template:Lua/doc: Difference between revisions
Jump to navigation
Jump to search
创建页面,内容为“{{documentation header}} 在使用了Lua模块的模板文档页面上使用。 {{p|1}}是不带命名空间的模块名称,默认为<code>{<nowiki/>{BASEPAGENAME}}</code>。如果该模板的数据被储存在独立的模块或模块的子页面里,就可以使用{{p|data}}和{{p|data2}}标记。 在使用Lua模块的模板的文档页面上使用。 使用了该模板的页面将会为模板也自动加上Category:基于Lua的模板,设置<code>…” |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{documentation header}} | {{documentation header}} | ||
Use on template documentation pages that utilize Lua modules. | |||
{{p|1}} | {{p|1}} is the module name without the namespace, defaulting to <code>{<nowiki/>{BASEPAGENAME}}</code>. If the template's data is stored in a separate module or subpage, you can use the {{p|data}} and {{p|data2}} parameters. | ||
Use on the documentation pages of templates that use Lua modules. | |||
Pages using this template will automatically add the template to [[:Category:Lua-based Templates]]. Setting <code>{{{nocat}}}</code> will prevent this. | |||
<includeonly> | <includeonly> | ||
<!-- | <!-- Template categories and interwiki links --> | ||
[[ | [[zh:Template:Lua]] | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
<!-- | <!-- Documentation categories and interwiki links --> | ||
[[ | [[zh:Template:Lua/doc]] | ||
</noinclude> | </noinclude> |
Latest revision as of 21:55, 9 November 2024
[ Purge ]
This is the documentation page, it should be placed in should. See Template:Documentation for more information.Use on template documentation pages that utilize Lua modules.
|1=
is the module name without the namespace, defaulting to {{BASEPAGENAME}}
. If the template's data is stored in a separate module or subpage, you can use the |data=
and |data2=
parameters.
Use on the documentation pages of templates that use Lua modules.
Pages using this template will automatically add the template to Category:Lua-based Templates. Setting {{{nocat}}}
will prevent this.