Mediawiki模板:修订间差异
创建页面,内容为“== 创建模板 == 新建一个<code>Template:MyFirst</code>的页面,内容如下: <code><nowiki>''</nowiki>Hi! This is my first template.<nowiki>''</nowiki></code> 然后再创建另外一个页面,就叫它MyFirstTest好了,输入如下内容: <code>Hello, this is a page meant to test the <nowiki>'''</nowiki>MyFirst<nowiki>'''</nowiki> template. Here it is: <nowiki>{{MyFirst}}</nowiki> Pretty neat, isn't it?</code>” |
无编辑摘要 |
||
| (未显示同一用户的6个中间版本) | |||
| 第1行: | 第1行: | ||
== 创建模板 == | == 创建模板 == | ||
新建一个名为[[Template:MyFirst]]的页面,内容如下:<syntaxhighlight lang="bat"> | |||
This is test MyFirst | |||
</syntaxhighlight> | |||
== 使用模板== | |||
在想使用的地方插入以下代码即可<syntaxhighlight lang="bat"> | |||
{{MyFirst}} | |||
</syntaxhighlight>效果: | |||
{{MyFirst}} | |||
[[分类:MediaWiki]] | |||