This is a simple guide to a neat introduction to using templates.
In this guide one will learn about the proper use of each of these templates.
Templates are a feature of s that allow complex formatting to be repeated across multiple pages. Therefore, they should be used with caution, as they consume more resources than other methods and their use on the pages should be regulated.
Summary
Organization
The templates must be placed in a specific order:
- Hatnotes
- Always at the beginning of the article or a section.
- Message boxes
- Always placed after the hatnotes, they go before the text of the article or section.
- Infobox
- They go after the first two, if you need to use them.
- Text templates
- They are usually in the body of the article, sometimes included in other templates.
- Technical templates
- They usually go in the body of the article, if required.
- Navboxes
- They are placed at the end of the article, just before the categories and interpage webs.
General
The main way to use a template is to transclude it: {{Template | Parameter}}.
However, there are guidelines for its use:
- Always use the template names in Spanish, as it prevents the use of redirects.
- The exception occurs when there is no Spanish name for some reason.
- Keep the parameters in English, and try not to translate them / create translated parameters when creating new templates.
- Do not abuse the use of templates on a page, as it can cause too slow loading times.
- Always include categories within when creating a template if they are outside of your transclusion code.
- Include the template {{documentation}} in the template when creating it inside .
- Create only templates with translated text, not translated parameters.
{{Template | parameter 1 = {{{parameter x |}}}}} [[Category: Some category]] {{Documentation}} Proper usage example
{{Plantilla|parámetro x = Algún valor}}
Documentation
The documentation of a template is the description of its use, explaining every detail and parameter used. A table is created on template pages using the {{documentation}} template.
As with normal templates, there are guidelines for its use:
- Always include {{documentation header}} in the header.
- Keep text and content simple to understand, making it easy for editors to understand.
- Always add sections in the proper order:
- Header text explaining the purpose of the template.
- Section "Use" with the explanation of the parameters.
- (If required) Subsection "Parameters" if it is difficult to explain in "Use".
- (If required) Specific subsection of some parameter in case it is even larger. It goes in the same place as "Parameters" if it does not exist.
- (If required) Subsection "Parameters" if it is difficult to explain in "Use".
- (If required, optional) "Example" section (Note: should be in tables)
- Section "See also"
{{Documentation header}} Text that describes the template and its general use. The template adds the page to the [[: Category: Some category]]. == Usage == {{Template | parameter X = Action performed }} <"/" pre> * The parameter {{p | parameter x}} does an action on the template.
- Note, the last <"/" pre> must actually be . The quotes are only for the format to work well, they should not be included in actual documentation.
Detailed links
Spanish:
- webpedia page: Help: Quick guide to templates
- webpedia page: Help: Templates
- mw:Help:Templates/es
English:
- gphelp:gphelp:Templates
- at: webpedia page: Help: A quick guide to templates
- at: webpedia: Help: Template
- metapágina webpedia:Help:A quick guide to templates
- metapágina webpedia:Help:Template
- metapágina webpedia:Help:Advanced templates
- mw:Help:Templates
Help | |
---|---|
Help |
|
Rules and Regulations |
|
General pages |
|
Alejandro Crespo Martinez We are a specialized and passionate team of virtual reality. We have extensive experience in this area. We decided to create ForVirtualRealityLovers to share all our information with customers and users. We have quality information. You can find tips, guides, interviews, top products and much more! If you are curious, enter our site ForVirtualRealityLovers.com and discover the virtual world! ? Copper Ingot ❯