wangsisi 发表于 2012-1-31 09:12:14

Mediawiki模板(二)

A template only works when referred to from a page in the same project. To use it in another project, one has to copy it to there.

模板只能在本工程中使用,如果要在外部工程中引用必须复制过去
As usual the name is case sensitive except (on most projects) for the first letter, and a blank space is equivalent with an underscore.
一般来说,大多数工程中名字首字母是区分大小写的,一个空格等同于下划线

Recursive inclusion is possible.

递规包含是可以实现的
A variable in a template is evaluated after insertion in the referring page, i.e. if {{PAGENAME}} occurs in the wikitext of a template, it is rendered as the name of the referring page, not the name of the template.
一个模板变量在插入一个页面后会被评估,如果在一个模板的wikitext中出现{{PAGENAME}},它被认为是一个普通页面链接,而不是当作一个模板的名字.
页: [1]
查看完整版本: Mediawiki模板(二)

美国HostEase虚拟主机一年198元