查看“Template:Help:Creating templates”的源代码
←
Template:Help:Creating templates
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于这些用户组的用户执行:
用户
、
机器人
、Administrator、curator
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
Templates are standard wiki pages whose content is designed to be [[mw:Special:MyLanguage/Transclusion|embedded]] inside other pages. Templates follow a convention that the name is prefixed with "<code>Template:</code>". Besides this, you can [[Help:Starting a new page|create them like any other wiki page]]. The simplest use of templates is as follows. If you create a page called "Template:Welcome" with contents: <pre>Hello! Welcome to the wiki.</pre> you'll have created your first template! If you then insert the code: <nowiki>{{Welcome}}</nowiki> in any other page, when that page is viewed the text {{box|Hello! Welcome to the wiki.}} will appear instead of <code><nowiki>{{Welcome}}</nowiki></code>. The template content is "embedded" into the other page. Suppose it is used in 100 pages. If you then change the template contents to: <pre>Hi there! Welcome to this wonderful wiki.</pre> and revisit any of the 100 pages where the template was used, you'll see the new text instead of the original one. In this way, you have changed the content of 100 pages without editing them, because the template is embedded into these pages. This is the basic mechanism. There are several additional features that make templates very useful.
本页使用的模板:
Template:box
(
查看源代码
)
返回
Template:Help:Creating templates
。
导航菜单
个人工具
中文
创建账号
登录
命名空间
模板
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首頁
Ashes of Creation
種族、職業
節點、經濟
大型副本、公會、戰鬥
裝備、房屋、坐騎
PvP, 攻城戰, 商隊
最新美術圖
最新報道
最新更新
隨機搜尋
加入我們
其他语言
العربية
Deutsch
English
español
français
עברית
magyar
italiano
Nederlands
polski
português
русский
工具
链入页面
相关更改
特殊页面
页面信息
社群
Wiki Discord
Wiki Discord bot
Wiki YouTube
Wiki forum popups