Template:Demo

From NeuroWiki
(Redirected from Template:Template Pre)
Jump to navigation Jump to search


[ View | Edit | History | Purge ]Documentation page

This template uses Module:Demo, this script is written in Lua.
For more details, please refer to Wikipedia:Lua and 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
[ View | Edit | History | Purge ]The above documentation is transcluded from Template:Demo/doc.