模板: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。