Category:Templates: Difference between revisions

From RoPlay
Jump to navigation Jump to search
(Created page with "__TOC__ ==How to use a template== Using a template is simple, you start by adding <nowiki>'{{'</nowiki> (as in <nowiki>{{</nowiki>), then you add the template name, i,e <nowiki>{{TownInfobox}}</nowiki>, that adds the template. To use the templates ''parameters'' you do <nowiki>'|parametername = value'</nowiki>, for example, say I wanted to make a town page and add the town name parameter, I would do ''<nowiki>{{TownInfobox |name = Town Name Goes Here }}</nowiki>'' and...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
__TOC__
==How to use a template==
==How to use a template==
Using a template is simple, you start by adding <nowiki>'{{'</nowiki> (as in <nowiki>{{</nowiki>), then you add the template name, i,e <nowiki>{{TownInfobox}}</nowiki>, that adds the template.
Using a template is simple, you start by adding <nowiki>'{{'</nowiki> (as in <nowiki>{{</nowiki>), then you add the template name, i,e <nowiki>{{Infobox Country}}</nowiki>, that adds the template.


To use the templates ''parameters'' you do <nowiki>'|parametername = value'</nowiki>, for example, say I wanted to make a town page and add the town name parameter, I would do
To use the templates ''parameters'' you do <nowiki>'|parametername = value'</nowiki>, for example, say I wanted to make a country's page and add the name parameter, I would do


''<nowiki>{{TownInfobox
''<nowiki>{{Infobox Country
|name = Town Name Goes Here
|name = country name goes here
}}</nowiki>''
}}</nowiki>''


and if I wanted to add more information, I would do
and if I wanted to add more information, I would do


''<nowiki>{{TownInfobox
''<nowiki>{{Infobox Country
|name = Town Name Goes Here
|name = country name here
|population = 100
|population = groups population
|chunks = 100
|language = English {{official}}
}}</nowiki>''
}}</nowiki>''


Line 21: Line 21:
Usually templates you would be using are called [[Infoboxes|infoboxes]], these are displayed on the right <small><i>or sometimes left</i></small> of a page and display importing and summarised info of a topic. Other templates could involve flag templates, i.e ''<nowiki>{{GER}}</nowiki>'' adding a German flag.
Usually templates you would be using are called [[Infoboxes|infoboxes]], these are displayed on the right <small><i>or sometimes left</i></small> of a page and display importing and summarised info of a topic. Other templates could involve flag templates, i.e ''<nowiki>{{GER}}</nowiki>'' adding a German flag.


<nowiki>* Towns/nations/groups/organisations/entities/players can have their own flag templates too.</nowiki>
<nowiki>* nations/cities/groups/organisations/entities/players can have their own flag templates too.</nowiki>
==Creating a template==
==Creating a template==
You make a template the same way you make a page, but you just add '''Template:''' before the name, that is it, that is literally it. You also must add the appropriate categories and always add <nowiki>[[Category:Templates]]</nowiki> '''at the bottom of the page'''.
You make a template the same way you make a page, but you just add '''Template:''' before the name, that is it, that is literally it. You also must add the appropriate categories and always add <nowiki>[[Category:Templates]]</nowiki> '''at the bottom of the page'''.

Latest revision as of 12:49, 11 May 2024

How to use a template

Using a template is simple, you start by adding '{{' (as in {{), then you add the template name, i,e {{Infobox Country}}, that adds the template.

To use the templates parameters you do '|parametername = value', for example, say I wanted to make a country's page and add the name parameter, I would do

{{Infobox Country |name = country name goes here }}

and if I wanted to add more information, I would do

{{Infobox Country |name = country name here |population = groups population |language = English {{official}} }}

All templates will have documentation on each parameter and its purpose.

Types of templates

Usually templates you would be using are called infoboxes, these are displayed on the right or sometimes left of a page and display importing and summarised info of a topic. Other templates could involve flag templates, i.e {{GER}} adding a German flag.

* nations/cities/groups/organisations/entities/players can have their own flag templates too.

Creating a template

You make a template the same way you make a page, but you just add Template: before the name, that is it, that is literally it. You also must add the appropriate categories and always add [[Category:Templates]] at the bottom of the page.

Template naming standards

Main articles: Naming Standards

Templates follow a common naming standard across Earth500 to help with simplicity and continuity. English is the predominant language of the wiki and such all page names need to be in English, same with how all page content must be in English too.