mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{Sandbox heading}}</noinclude> | <noinclude>{{Sandbox heading}}</noinclude> | ||
== Please test below ==<!--DO NOT DELETE NOR CHANGE ANYTHING ABOVE THIS LINE, INCLUDING THIS LINE!--> | == Please test below ==<!--DO NOT DELETE NOR CHANGE ANYTHING ABOVE THIS LINE, INCLUDING THIS LINE!--> | ||
{{NoSubpage}} | |||
{{Help:Compact guide/tab}} | |||
== | == What is a template? == | ||
If a piece of content or code needs to be used a lot (top banners, character information, etc.), a template will be created to make it easier to be referenced and edited. Give this content a name, and call it directly when needed. The content only needs to be changed in the template, and entries with it will also change, saving lots of maintenance time. If you have edited an article, you may notice code like '''<nowiki>{{content}}</nowiki>''', which is a template, and in the source code, '''<nowiki>{{template name|template parameter}}</nowiki>''', to enclose the template with a pair of double curly brackets, and use the pipe character "|" to separate the name and parameters, is the basic form of a template. | |||
{{ | |||
![]() |
|
If a piece of content or code needs to be used a lot (top banners, character information, etc.), a template will be created to make it easier to be referenced and edited. Give this content a name, and call it directly when needed. The content only needs to be changed in the template, and entries with it will also change, saving lots of maintenance time. If you have edited an article, you may notice code like {{content}}, which is a template, and in the source code, {{template name|template parameter}}, to enclose the template with a pair of double curly brackets, and use the pipe character "|" to separate the name and parameters, is the basic form of a template.