Template:TemplateCode/doc: Difference between revisions

From NeuroWiki
Jump to navigation Jump to search
创建页面,内容为“{{Documentation header}} {{lua|Array}} {{shortcut|tcode|tcd}} == 用法 == {{tcode|tcode|模板名称}} 也可以添加无限数量的参数。注意,必须使用{{tcd|1==}}来转义<code>=</code>。 == 示例 == {{tcode|tcode|subst:autoUnsigned}} 效果:<br> {{tcode|subst:autoUnsigned}} {{tcode|tcode|Block|3=2=type=wood}} 效果:<br> {{tcode|Block|2=type=wood}} {{tcode|tcode|:食物/table}} 效果:<br> {{tcode|:食物/table}} {{tcode|tcode|move|…”
 
m 1 revision imported
 
(No difference)

Latest revision as of 12:29, 1 November 2024

[ Purge ]
This is the documentation page, it should be placed in should. See Template:Documentation for more information.

This template uses Module:Array, this script is written in Lua.
For more details, please refer to Wikipedia:Lua and Extension:Scribunto.

用法

-{}-{{tcode|模板名称}}

也可以添加无限数量的参数。注意,必须使用-{}-{{=}}来转义=

示例

-{}-{{tcode|subst:autoUnsigned}} 效果:
-{}-{{subst:autoUnsigned}}

-{}-{{tcode|Block|2=type=wood}} 效果:
-{}-{{Block|type=wood}}

-{}-{{tcode|:食物/table}} 效果:
-{}-{{:食物/table}}

-{}-{{tcode|move|页面移动至|可选原因}} 效果:
-{}-{{move|页面移动至|可选原因}}

另见


en:Template:TemplateCode/doc