Help:Templates: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 81: | Line 81: | ||
{| class="wikitable" | {| class="wikitable" | ||
! style="width:40%" | Template !! Use | ! style="width:40%" | Template !! Use | ||
|- | |||
| {{ti|Anchor}} | |||
| Used to anchor a word on a page to be used as direct link to that word from another page | |||
|- | |- | ||
| {{ti|fact}} | | {{ti|fact}} | ||
| Line 101: | Line 104: | ||
{| class="wikitable" | {| class="wikitable" | ||
! style="width:40%" | Template !! Use | ! style="width:40%" | Template !! Use | ||
|- | |||
| {{ti|collapse}} | |||
| Used to make a box with content that is expandable and collapsable | |||
|- | |||
| {{ti|Iconbox}} | |||
| Used to display a image with a title and description | |||
|- | |- | ||
| {{ti|clear}} | | {{ti|clear}} | ||
| Line 155: | Line 164: | ||
| {{ti|Hover box}} | | {{ti|Hover box}} | ||
| Used to create dotted underline text with hover box | | Used to create dotted underline text with hover box | ||
|} | |||
===Disambiguation and redirection=== | |||
:''Not to be confused with redirection pages which use ''<code><nowiki>#REDIRECT [[Page title]]</nowiki></code>'' on the first line.'' | |||
{| class="wikitable" | |||
! style="width:40%" | Template !! Use !! Where to put it | |||
|- | |||
| {{ti|Otheruses|description|other|link}} | |||
| Other uses of the term | |||
| Top | |||
|- | |||
| {{ti|redirect|Location}} | |||
| Article is main use of a term, links to disambiguation | |||
| Top | |||
|- | |||
| {{ti|redirect3|Location|Misc}} | |||
| Article is main use of a term, link to custom articles | |||
| Top | |||
|- | |||
| {{ti|Confuse|page}} | |||
| Similarly named articles that might cause confusion | |||
| Top | |||
|- | |||
| {{ti|wp|Article}} | |||
| Linking to a Wikipedia article inline | |||
| Inline; best limited to trivia; only use for distinct and unique terms | |||
|} | |} | ||
| Line 176: | Line 211: | ||
|- | |- | ||
| {{ti|Infobox shop}} || Stores and markets <code>In Development</code> | | {{ti|Infobox shop}} || Stores and markets <code>In Development</code> | ||
|} | |||
===Navboxes=== | |||
{| class="wikitable" | |||
! style="width:40%" | Template !! Use !! Where to put it | |||
|- | |||
| {{ti|LocationNavbox}} | |||
| Navbox for Location pages | |||
| Bottom | |||
|- | |||
| {{ti|AttributeNavbox}} | |||
| Navbox for Attribute pages | |||
| Bottom | |||
|- | |||
| {{ti|CommodityNavbox}} | |||
| Navbox for Commodity/Item pages | |||
| Bottom | |||
|- | |||
| {{ti|ModTypeNavbox}} | |||
| Navbox for Mod Type pages | |||
| Bottom | |||
|- | |||
| {{ti|WikiNavbox}} | |||
| Navbox for General Use Index | |||
| Bottom | |||
|} | |} | ||
| Line 218: | Line 278: | ||
|} | |} | ||
== | ==User: namespace== | ||
Many different userboxes are available for placement on a user's page. See [[GSWiki:Userboxes]] for a listing. | |||
{| class="wikitable" | |||
! style="width:40%" | Template !! Use | |||
|- | |||
| {{ti|UserInfo}} || Used on User Pages for a profile box | |||
==Old Templates Needing Redesign== | |||
Ambox means Article Messagebox. As the name mentions, these templates should be placed at the top of a page. They create a box with notable information. | Ambox means Article Messagebox. As the name mentions, these templates should be placed at the top of a page. They create a box with notable information. | ||
*[[Template:UnderConstruction]] (Replaced with Template:Construction.) | *[[Template:UnderConstruction]] '''(Replaced with Template:Construction.)''' | ||
*[[Template:ArticleUpdate]] (Replaced with Template:Obsolete.) | *[[Template:ArticleUpdate]] '''(Replaced with Template:Obsolete.)''' | ||
*[[Template:Rewrite]] (used when an article or sections of a page need a complete revision or rewrite.) | *[[Template:Rewrite]] (used when an article or sections of a page need a complete revision or rewrite.) | ||
*[[Template:Merge]] (used to highlight articles that are candidates for merging with another article. If there is a page that has info that really should be on another page, tag that page with this headbox.) | *[[Template:Merge]] (used to highlight articles that are candidates for merging with another article. If there is a page that has info that really should be on another page, tag that page with this headbox.) | ||
| Line 233: | Line 301: | ||
*[[Template:Copy edit]] (used to highlight articles that have poor grammar, style, cohesion, and spelling.) | *[[Template:Copy edit]] (used to highlight articles that have poor grammar, style, cohesion, and spelling.) | ||
*[[Template:Category]] (used to highlight poorly categorized pages/articles.) | *[[Template:Category]] (used to highlight poorly categorized pages/articles.) | ||
* [[Template:Welcome]] (used on either user page or user talk page of a newly registered user. See page for more info.) | * [[Template:Welcome]] (used on either user page or user talk page of a newly registered user. See page for more info.) | ||
Revision as of 00:13, 31 May 2020
Templates are used to duplicate the same content across more than one page. Changing a template in one place will immediately propagate the changes to all the pages that use it.
This page lists templates of this wiki. To insert a template into a page, type {{TemplateName}} (this is known as a tag) somewhere on the page, whether it be at the top or at the bottom or in a certain section. Every page with that tag in it will display the template text. TemplateName is the name after the colon symbol, e.g. the TemplateName for Template:Cleanup is Cleanup, so typing {{Cleanup}} will add that tag to a page.
Article namespace
Maintenance
| Template | Use | Where to put it |
|---|---|---|
{{cleanup|Reason}}
|
Article needs attention for various reasons | Top |
{{Incomplete|Reason}}
|
Article missing vital information | Top |
{{InUse}}
|
You are currently working on major changes to this article | Top |
{{NPOV}}
|
Article is presented in a biased voice | Top |
{{Obsolete|Reason}}
|
Article is outdated | Top |
{{Stub}}
|
The article only contains basic information and there is unknown vital information to add | Bottom |
{{Sectstub}}
|
Same as above, but for a specific section | Underneath the header of the section |
{{Under Construction}}
|
The article is undergoing major changes, but not necessarily in progress | Top |
{{NeedPic}}
|
Article is in need of pictures (outside of the infoboxes) | Top |
{{Too big}}
|
Article contains too much extraneous code or prose | Top |
Related articles
| Template | Use | Where to put it |
|---|---|---|
{{Main|article}}
|
Section has a relevant article | Section header |
{{HasGuide}}
|
Article has a relevant guide subpage In Development
|
Top |
{{Hasdialogue}}
|
Article has a transcript of dialogue In Development
|
Relevant section |
{{HasMMG}}
|
Article has a relevant money making guide In Development
|
Top |
{{Has quick guide}}
|
Article has a step-by-step version In Development
|
Top |
Inline templates
| Template | Use |
|---|---|
{{Anchor}}
|
Used to anchor a word on a page to be used as direct link to that word from another page |
{{fact}}
|
Statements needs a reliable source cited |
{{AnchorText}}
|
Give the text an id attribute for direct linking |
{{(s)}}
|
Specific to supporters only |
{{purge}}
|
Add a link to refresh a page cache |
{{section link}}
|
Link to a section of another article |
Formatting
| Template | Use |
|---|---|
{{collapse}}
|
Used to make a box with content that is expandable and collapsable |
{{Iconbox}}
|
Used to display a image with a title and description |
{{clear}}
|
Clear space after floating elements |
{{nbsp}}
|
Intentional non-breaking spaces |
{{}}
|
Literal "=" to avoid interpretation as syntax |
{{*}}
|
Inserts a bold bullet |
{{GSFont}}
|
Use the in-game font In Development
|
{{Nowrap}}
|
Keeps text on a single line |
{{Red}}
|
Makes text Red |
{{Blue}}
|
Makes text Blue |
{{Green}}
|
Makes text Green |
{{Yellow}}
|
Makes text Yellow |
{{UD}}
|
Link to update articles |
{{Small}}
|
Makes certain text very small font size. |
{{Desc}}
|
Used to display and icon size image with a description |
{{Quote}}
|
Quote content or phrase |
{{Plainlist}}
|
Create a plain unbulleted list |
{{Spoiler}}
|
Display content within a expandable spoiler |
{{Hover}}
|
Used to create dotted underlined text with tooltip |
{{Hover box}}
|
Used to create dotted underline text with hover box |
Disambiguation and redirection
- Not to be confused with redirection pages which use
#REDIRECT [[Page title]]on the first line.
| Template | Use | Where to put it |
|---|---|---|
{{Otheruses|description|other|link}}
|
Other uses of the term | Top |
{{redirect|Location}}
|
Article is main use of a term, links to disambiguation | Top |
{{redirect3|Location|Misc}}
|
Article is main use of a term, link to custom articles | Top |
{{Confuse|page}}
|
Similarly named articles that might cause confusion | Top |
{{wp|Article}}
|
Linking to a Wikipedia article inline | Inline; best limited to trivia; only use for distinct and unique terms |
Infoboxes
| Template | Use |
|---|---|
{{Infobox Item}} |
Any item In Development
|
{{Infobox event}} |
An event In Development
|
{{Infobox CNPC new}} |
Attackable NPCs In Development
|
{{Infobox NPC Character}} |
Non-attackable NPCs In Development
|
{{Missionbox}} |
Mission information In Progress
|
{{Modbox}} |
Mod information |
{{Infobox pcts}} |
Planets, Cities, towns and other settlements In Development
|
{{Infobox shop}} |
Stores and markets In Development
|
| Template | Use | Where to put it |
|---|---|---|
{{LocationNavbox}}
|
Navbox for Location pages | Bottom |
{{AttributeNavbox}}
|
Navbox for Attribute pages | Bottom |
{{CommodityNavbox}}
|
Navbox for Commodity/Item pages | Bottom |
{{ModTypeNavbox}}
|
Navbox for Mod Type pages | Bottom |
{{WikiNavbox}}
|
Navbox for General Use Index | Bottom |
Categorical
| Template | Use | Where to put it |
|---|---|---|
{{Deleted content}}
|
Content completely removed from the game | Top |
{{Recurring content}}
|
Content that was once accessible, and can be made accessible again | Top |
{{Bugged|Reason}}
|
Content is in maintenance, disabled and/or bugged with fix expected in future update/patch. | Top |
{{Current}}
|
Article is undergoing constant change due to dynamic or constantly changing nature | Top |
Talk: namespace
| Template |
|---|
{{Talkheader}}
|
{{Archive list}}
|
{{Archive}}
|
File: namespace
| Template | Use |
|---|---|
{{C-GeminiStation}} |
Official Images used by Gem are copyrighted by Gem's Creator |
User: namespace
Many different userboxes are available for placement on a user's page. See GSWiki:Userboxes for a listing.
| Template | Use |
|---|---|
{{UserInfo}} |
Used on User Pages for a profile box
Old Templates Needing RedesignAmbox means Article Messagebox. As the name mentions, these templates should be placed at the top of a page. They create a box with notable information.
|
