Template:Demo
此模板使用了Module:Demo,此脚本使用Lua编写。
更多详情,请参阅Wikipedia:Lua和Extension:Scribunto。
该模板只是将模板代码(或任何其他代码)放在标签中<syntaxhighlight lang="wikitext">...</syntaxhighlight>,然后将该代码的呈现放在下面。
This template simply places template code (or any other code) in a Template:Tag tag and then places the rendering of that code below. <syntaxhighlight lang="wikitext">
{{your template}}
Template:Your template
</syntaxhighlight>
Template:Red You must wrap Template:Tag tags around the source to be demonstrated (or use {{escape}}, which has a demo-escape example), like so:
<syntaxhighlight lang="wikitext" inline>[template source]
[template source]</syntaxhighlight>
Failure to wrap Template:Tag tags around the source may cause the source to be executed before it reaches this template.
<syntaxhighlight lang="wikitext" inline>Template:Fail
Template:Fail</syntaxhighlight> produces:
Template:Fail
Template:Fail
[ 查看 | 编辑 | 历史 | 刷新 ]上述文档引用自Template:Demo/doc。