MegaGlest:Templates

From MegaGlest
Jump to: navigation, search

Templates are "snippets" of code that can be inserted in an article with {{Template name}}. For example, the {{Cleanup}} template outputs this:

This article or section requires a cleanup in order to meet the Glest Wiki's quality standards.
You can edit this page to improve it.


All templates exist in the Template: namespace, which means their name begins with Template:. To use the template, we simply exclude the Template: prefix and type in the name of the page surrounded by two "{" on each side. Some templates accept parameters after a "|", meaning we can specify more information to be used by the template. Some of these are optional, some are necessary.

Next, some templates use variables, meaning it has the variable name on the left, an equal sign, and the data that we pass as a parameter, such as the Faction template, which has variables such as Creator = Creator's Name. A full list of templates can be found here. To request a template that does not exist, please do so here. Below are tables of all the templates and their usages.

Standard Templates[edit]

Template Name Example Usage
{{Cleanup|Reason}}
This article or section requires a cleanup in order to meet the Glest Wiki's quality standards.
You can edit this page to improve it.

Place on top of pages that should be cleaned and better organized. The Reason field is optional and can state why it should be cleaned.
{{Wikify}}
[[Wikify]] This article or section requires to by Wikified to fit the Glest Wiki's quality standards.
Please help by adding relevant internal links , or by improving the overall layout.
Place on top of pages that should be wikified, such as having internal links added, improved to meet the quality standards of the wiki, use of headers, formal style that would be expected of an encyclopedia, etc;
{{NPoV}}
The neutrality of this article is disputable.

The wiki aims to have articles writen from a neutral point of view, so please consider editing the page to improve it.

Place on top of pages that require a neutral viewpoint, namely to remove biases and personalization from pages.
{{Incomplete}}
This article or section is incomplete and requires further information.
You can edit this page to improve it.

Place on top of pages that are not complete, and require more information.
{{Stub}}
This article is a stub.

Please help expand it by editing the page.

Place on bottom of pages that are stubs, meaning 'complete' articles that are very short in size and could be expanded further.
{{In-use}}
This Article is Undergoing a Major Edit!

To prevent edit conflicts, please do not edit this article until the editor has removed this tag. If you wish to know who is editing and when the editing began, please see the page history.

Placed at the top of a page to denote that the article is being edited at the moment and to avoid edit conflicts, you should not edit it until the author removes the template.
{{Merge|Page to merge with}}
It has been suggested that this article or section be merged with Dark_Magic.
Placed at top of pages to mark a proposal to merge the article with another. The parameter is the page to merge with and MUST be included with exact case, etc;
{{Move|Page to move to}}
It has been suggested that this article or section be moved to Dark_magic.
Place on top of pages that should be move to a new page name. The parameter is the name of the page to move it to and is necessary. The page should NOT exist, or be either an unused page or a redirect to the current page.
{{Disambig}}
This is a disambiguation page meant to distinguish pages of the same name.
if an internal link lead you here, you should edit the link to point to the correct article.
Placed on the bottom of disambiguation pages, marking the page as a disambiguation page (a page listing a number of pages with the same or similar names so that the user may choose the desired page).
{{Under_construction}}
This article is under construction

The article is undergoing expansion or major revamping, and the article should not be considered accurate until this tag is removed. You can help expand it by editing the article.


Placed at top of pages to mark the page as one undergoing a number of edits, and that the page may not be completely accurate yet. This is for 'hot' articles, and should be removed when the article is near a finished stage.
{{RfD|Reason}}
This page has been Requested for Deletion.

You may edit this page to improve it or view its talk page to discuss this, but please do not remove this tag until it has been decided by consensus.

Placed on the top of a page for requesting formal deletion. Do NOT delete a page that has this on it blindly. Instead, investigate on the talk page why the page should be deleted, and only after consensus is reached, should the page be deleted.
{{Issues|List Issues}}
This article has multiple issues

Please consider improving this article by editing it. These issues are: List issues


Placed at the top of pages that have multiple issues (do not use multiple templates, just use this and sum all issues up). It's required to list all the issues as a parameter.

File and Licensing Templates[edit]

Template Name Example Usage
{{CC-BY-SA}} The file is licensed under the Creative Commons Share-alike v3 license (most wiki files and pages are under this).
{{PD}}
This image is Public Domain.

The image is classified as public domain and may be used as desired.

The file is public domain.
{{No_license}}
No license was selected for this image.

Please add more information on the licensing of this image.

The file does not have a license.
{{None_selected}}
No license was selected for this image.

Please add more information on the licensing of this image.

The uploader did not give a license for the file.
{{No_AA}}
Image-Needs AA.png This image does not contain Anti-Aliasing.

This image does not contain any anti-aliasing. Anti-aliasing reduces jagged edges and smoothens images out. It can be added post-snapshot with an image editor such as the GIMP, or may be possible to toggle Anti-aliasing on in the program which the image was taken from.

The image does not contain Anti Aliasing and would benefit from having it added.
{{Crop}}
Image-Crop.png This image should be cropped.

Most images on this wiki are cropped to focus only on the subject, but this picture has not. Please consider cropping it to remove unnecessary parts.

The image should be cropped to the subject.
{{Dithering}}
Image-GIF.gif This image suffers from GIF Dithering.

The GIF format is restricted to 256 colors, thus, additional colors are converted to fit into this limitation. This causes a dithering pattern noticed. The image would be best off re-taken as a PNG unless it is an animation, where it should have its quality improved.

The image suffers from GIF differing and should be retaken and saved in the PNG format.
{{JPG}}
Image-JPG.jpg This image contains compression artifacts.

The image was saved in the JPG format, which is a lossly format, meaning that it loses data not kept when saved, allowing it to compress the filesize better, at the cost of degrading quality with subsequent edits. To preserve the image, it should be retaken as PNG.

The image is in the JPG format and information will be lost with each edit. It should be retaken or converted to the PNG format.
{{Transparency}}
Image-Transparency.png This image could use transparency.

The image would benefit from having a transparent background. Please remove the background from the image and crop it to the subject to update this image.

The image does not contain transparency and would benefit from having it added.

Info Boxes[edit]

For all Infoboxes, you should see their Template page and read the documentation there for more detail on their use before using, as they are more complex and have stricter guidelines than most templates.

Template Name Example Usage
{{Faction
|Faction name =

|Image =
|Techtree =
|Creator =
|Version =
|Link =
|Patch =
|Filesize =

|Archive format =
}}
Dark Magic
Dark Magic Wallpaper by Little Helper.png
Techtree

Magitech

Creator

Modman and the GLADE Team

Version

10.07.27

Download link

Download

File size

38.4 MB

Archive format

7zip


Use at the top corner of the page (but under other templates) to give information about factions. The patch field is optional, and the variable should be excluded completely if no patch is used.
{{Unit
|Unit Name =

|Image =
|Health =
|Energy =
|Resources =
|Armor =

|Faction =
}}
Swordman
Wiki.png
Health

700

Energy

0

Resource Cost

75 gold, 25 wood, 1 food

Armor

20 (leather)

Faction

Tech


Use at the top corner of the page (but under other templates) to give information about individual units.
{{Techtree
|Techtree name =

|Image =
|Techtree =
|Resources =
|Creator =
|Version =
|Link =
|Filesize =

|Archive format =
}}
Magitech
Wiki.png
Resources

Gold, Wood, Stone, Energy, Food

Creator

Glest Team

Version

3.2.2

Download link

Download

File size

~50MB

Archive format

Installer or source files


Use at the top corner of the page (but under other templates) to give information about techtrees.
{{Tileset
|Tileset name =

|Image =
|Style =
|Creator =
|Version =
|Link =
|Filesize =
|Archive format =

}}
Dark Forest
Wiki.png
Style

Dark, Mixed Forest

Creator

The Glest Team

Version

1.0

Download link

Download

Filesize

6.6 MB

Archive format

exe / source files


Use at the top corner of the page (but under other templates) to give information about tilesets.
{{Map
|Map name =

|Image =
|Players =
|Size =
|Creator =
|Filesize =
|Link =

}}
Templates
Wiki.png
Players

4

Size

128x128

Creator

Glest Team

Filesize

10KB

Download link

Download


Use at the top corner of the page (but under other templates) to give information about maps.
{{Upgrade
|Upgrade name =

|Resources =
|Units =
|Upgrades =
|Affects =
|Type =
|Leads =

}}
Blade Weapons
Resource Cost

150 gold, 100 wood

Required Units

None

Required Upgrades

None

Affects
  • Swordman
  • Guard
Type

Boost

Leads to

None


Use at the top corner of the page (but under other templates) to give information about upgrades.
{{Infobox
|Box title =

|image =
|imagewidth =
|caption =
|Row 1 title =

|Row 1 info =
}}
Info Title

Title row 1

Info row 1

Title row 2

Info row 2

Title row 3

Info row 3

The generic infobox. Use this ONLY when using something just once and there's no chance of ever needing to use that info box again. Otherwise, create a template or Request a Template for that. If a template already exists, please use it instead of this generic template, which all other infoboxes depend upon. See the Template page for usage information.

External Links[edit]