Help:Templates: Difference between revisions

Infoboxes: added infobox ship
 
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Templates are little helpers which are used for recurring parts of a page. There a several types of templates which can be used in articles.
{{shortcut|GS:T|GS:TEMP|GS:TMP}}
{{otheruses|available templates|policy regarding templates|GSWiki:Template policy}}
{{Under Construction}}
'''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.


== Amboxes/Head Boxes ==
This page lists templates of this wiki.
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.
To insert a template into a page, type <nowiki>{{TemplateName}}</nowiki> (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 <nowiki>{{Cleanup}}</nowiki> will add that tag to a page.


*[[Template:InUse]] (used to highlight articles that are actively undergoing a major edit. Using this is important when starting to make revisions to a page to prevent another editor from editing the page while you are present. Placing this at the top of the page editor and saving the page first before making edits is how this works.)
==Article namespace==
*[[Template:UnderConstruction]] (used to highlight articles that are undergoing a series of edits. It is as the title suggests, when the page is being expanded overtime, this is the perfect use.)
===Maintenance===
*[[Template:ArticleUpdate]] (used to highlight articles that have content that is out of date.)
{| class="wikitable"
*[[Template:Rewrite]] (used when an article or sections of a page need a complete revision or rewrite.)
! style="width:30%" | Template !! Use !! Where to put it
*[[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:Move]] (used to highlight articles with a request for a name-change.)
| {{ti|cleanup|Reason}}
*[[Template:Split]] (used to highlight articles that need division. If there is data on a page that should be separate and be its own page, tag that page with this template.)
| Article needs attention for various reasons
*[[Template:Expand]] (used to highlight articles that need expansion. Only used if a page has no headbox and has hardly any content on it.)
| Top
*[[Template:Delete]] (used when an article needs to be marked for deletion - read [[Template:Delete|here]] first before using.)
|-
*[[Template:Stub]] (used for pages with few or insufficient information.)
| {{ti|Incomplete|Reason}}
*[[Template:Links]] (used to highlight articles with poor hyperlinks.)
| Article missing vital information
*[[Template:Copy edit]] (used to highlight articles that have poor grammar, style, cohesion, and spelling.)
| Top
*[[Template:Category]] (used to highlight poorly categorized pages/articles.)
|-
*[[Template:Cleanup]] (used to highlight articles that need complete rewriting to better suit wiki guidelines.)
| {{ti|InUse}}
| You are currently working on major changes to this article
| Top
|-
| {{ti|NPOV}}
| Article is presented in a biased voice
| Top
|-
| {{ti|Obsolete|Reason}}
| Article is outdated
| Top
|-
| {{ti|Stub}}
| The article only contains basic information and there is unknown vital information to add
| Bottom
|-
| {{ti|Sectstub}}
| Same as above, but for a specific section
| Underneath the header of the section
|-
| {{ti|Construction}}
| The article is undergoing major changes, but not necessarily in progress
| Top
|-
| {{ti|NeedPic}}
| Article is in need of pictures (outside of the infoboxes)
| Top
|-
| {{ti|Too big}}
| Article contains too much extraneous code or prose
| Top
|-
| {{ti|Last updated}}
| Article sections which are updated alot get a last updated messagebox
| Bottom of Section
|}


== Content specific boxes ==
===Related articles===
Content-specific boxes are special boxes for some kind of content. They are designed for specific pages.
{| class="wikitable"
! style="width:30%" | Template !! Use !! Where to put it
|-
| {{ti|Main|article}}
| Section has a relevant article
| Section header
|-
| {{ti|HasGuide}}
| Article has a relevant guide subpage {{red|<code>In Development</code>}}
| Top
|-
| {{ti|Hasdialogue}}
| Article has a transcript of dialogue {{red|<code>In Development</code>}}
| Relevant section
|-
| {{ti|HasMMG}}
| Article has a relevant money making guide {{red|<code>In Development</code>}}
| Top
|-
| {{ti|Has quick guide}}
| Article has a step-by-step version
| Top
|-
| {{ti|Awards}}
| Award Creation for the Wiki
| Top
|-
| {{ti|Countdown}}
| Creates a countdown/timer for an event
| Top
|-
| {{ti|SpoilerNotice}}
| Adds a notice for the page which has potential spoilers
| Top
|}


=== Infoboxes ===
===List creation===
Infoboxes should give a short overview over all relevant content, as well as icons and images.
{| class="wikitable"
! style="width:50%" | Template !! Use
|-
| {{ti|Alphabetical header}}
| Create a formatted A–Z table of contents
|-
| {{ti|top}}
| Link to return to top of the article
|}


* [[Template:Event]] (This Template is a complicated mission template built by Banri from scratch. Custom designed for Gemini Station mission system. This infobox displays all available info regarding assignments, missions and encounters. For full guide, see page.)
===Inline templates===
{| class="wikitable"
! 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}}
| Statements needs a reliable source cited
|-
| {{ti|AnchorText}}
| Give the text an id attribute for direct linking
|-
| {{ti|(s)}}
| Specific to supporters only
|-
| {{ti|purge}}
| Add a link to refresh a page cache
|-
| {{ti|section link}}
| Link to a section of another article
|}


=== Footer-boxes ===
===Formatting===
Footer-boxes are mainly an overview of all types of pages that count to the specific category, as well as some special pages related to the category. It should be placed on the bottom of the page.
{| class="wikitable"
! 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}}
| Clear space after floating elements
|-
| {{ti|nbsp}}
| Intentional non-breaking spaces
|-
| {{ti|1={{=}}}}<!-- how meta; a prime example of needing this template -->
| Literal "=" to avoid interpretation as syntax
|-
| {{ti|*}}
| Inserts a bold bullet
|-
| {{ti|GSFont}}
| Use the in-game font
|-
| {{ti|Nowrap}}
| Keeps text on a single line
|-
| {{ti|Red}}
| Makes text Red
|-
| {{ti|Blue}}
| Makes text Blue
|-
| {{ti|Green}}
| Makes text Green
|-
| {{ti|Yellow}}
| Makes text Yellow
|-
| {{ti|TColor}}
| Makes text a variety of colors
|-
| {{ti|Color}}
| Make text any color that has a HexCode
|-
| {{ti|UD}}
| Link to update articles
|-
| {{ti|Small}}
| Makes certain text very small font size.
|-
| {{ti|Desc}}
| Used to display and icon size image with a description
|-
| {{ti|Quote}}
| Quote content or phrase
|-
| {{ti|Plainlist}}
| Create a plain unbulleted list
|-
| {{ti|Spoiler}}
| Display content within a expandable spoiler
|-
| {{ti|Hover}}
| Used to create dotted underlined text with tooltip
|-
| {{ti|Hover box}}
| Used to create dotted underline text with hover box
|-
| {{ti|plink}}
| Used to create a box with image and text, no size formatting
|-
| {{ti|plinksized}}
| Same template as plink, only with formatted text size option
|-
| {{ti|Cargo}}
| Used to create a cargo size display.
|-
| {{ti|User}}
| Replaces the need to type out <code><nowiki>[[User:ExampleUser|Example]]</nowiki></code>
|}


* [[Template:LocationNavbox]] (used for location pages.)
===Disambiguation and redirection===
* [[Template:AttributeNavbox]] (used for attribute pages.)
:''Not to be confused with redirection pages which use ''<code><nowiki>#REDIRECT [[Page title]]</nowiki></code>'' on the first line.''
* [[Template:CommodityNavbox]] (used for Commodity pages.)
{| class="wikitable"
* [[Template:ModTypeNavbox]] (used for mod type pages.)
! style="width:40%" | Template !! Use !! Where to put it
* [[Template:GeminiStationNavbox]] (used as a overall index.)
|-
* [[Template:WikiNavbox]] (used on main page only.)
| {{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
|}


== Text templates ==
===Infoboxes ===
Text templates are used direct in the text. they are often markers for missing informations or as reference.
{| class="wikitable"
! style="width:50%" | Template !! Use
|-
| {{ti|Infobox Item}} || Any item
|-
| {{ti|Infobox Event}} || An event {{red|<code>In Development</code>}}
|-
| {{ti|Infobox ENPC}} || Attackable/Enemy NPCs {{red|<code>In Development</code>}}
|-
| {{ti|Infobox NPC}} || Non-attackable NPCs
|-
| {{ti|Missionbox}} || Mission information {{green|<code>In Progress</code>}}
|-
| {{ti|Modbox}} || Mod information
|-
| {{ti|Infobox Pcts}} || Planets, Cities, towns and other settlements {{red|<code>In Development</code>}}
|-
| {{ti|Infobox Shop}} || Stores and markets {{red|<code>In Development</code>}}
|-
| {{ti|Infobox Ship}} || Ship information {{red|<code>In Development</code>}}
|-
| {{ti|Shipbox}} || Display ship stats
|}


* [[Template:Red]] (used to make text red.)
===Navboxes===
* [[Template:Blue]] (used to make text blue.)
{| class="wikitable"
* [[Template:Green]] (used to make text green.)
! style="width:40%" | Template !! Use !! Where to put it
* [[Template:Yellow]] (used to make text yellow.)
|-
* [[Template:Iconbox]] (used to display a image with a title and description. See page for more info.
| {{ti|Locals}}
* [[Template:Spoiler]] (used to display content within a expandable spoiler.)
| Navbox for Location pages
* [[Template:Quote]] (used to quote content or phrase.)
| Bottom
* [[Template:Plainlist]] (used to create a plain unbulleted list.)
|-
* [[Template:Nowrap]] (used to prevent line breaks. See page for more info.)
| {{ti|Attributes}}
* [[Template:UserInfo]] (used on User Pages for a profile box.)
| Navbox for Attribute pages
* [[Template:Hover]] (used to create dotted underlined text with tooltip.)
| Bottom
* [[Template:Hover box]] (used to create dotted underline text with hover box.)
|-
* [[Template:Small]] (used to make certain text very small font size.)
| {{ti|Items}}
* [[Template:Desc]] (used to display and icon size image with a description.)
| Navbox for Commodity/Item pages
* [[Template:Anchor]] (used to anchor a word on a page to be used as direct link to that word from another page.)
| Bottom
* [[Template:Collapse]] (used to make a box with content that is expandable and collapsable.)
|-
* [[Template:Welcome]] (used on either user page or user talk page of a newly registered user. See page for more info.)
| {{ti|Mods}}
| Navbox for Mod Type pages
| Bottom
|-
| {{ti|Wiki Index}}
| Navbox for General Use Index
| Bottom
|-
| {{ti|Ships}}
| Navbox for Ship pages
| Bottom
|-
| {{ti|Editing Guides}}
| Navbox for all editing guide pages
| Bottom
|-
| {{ti|Mechanics}}
| Navbox for all game mechanics of gemini station
| Bottom
|}


{{Help}}
===Categorical===
{| class="wikitable"
! style="width:40%" | Template !! Use !! Where to put it
|-
| {{ti|Deleted content}}
| Content completely removed from the game
| Top
|-
| {{ti|Recurring content}}
| Content that was once accessible, and can be made accessible again {{red|<code>On Hold</code>}}
| Top
|-
| {{ti|Bugged|Reason}}
| Content is in maintenance, disabled and/or bugged with fix expected in future update/patch.
| Top
|-
| {{ti|Current}}
| Article is undergoing constant change due to dynamic or constantly changing nature
| Top
|-
| {{ti|Historical article}}
| Subject no longer exists (either entirely or in this form)
| Top
|-
| {{ti|Future}}
| Unreleased content
| Top
|}


[[Category:Wiki help|Templates]]
===Requests===
{| class="wikitable"
! style="width:40%" | Template !! Use !! Where to put it
|-
| {{ti|D|Reason}}
| Article needs immediate deletion
| Top
|}
 
==Talk: namespace==
{| class="wikitable"
! style="width:70%" | Template
|-
| {{ti|Talkheader}}
|-
| {{ti|Archive list}}
|-
| {{ti|Archive}}
|}
 
==File: namespace==
 
{| class="wikitable"
! style="width:40%" | Template !! Use
|-
| {{ti|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.
{| class="wikitable"
! style="width:40%" | Template !! Use
|-
| {{ti|UserInfo}} || Used on User Pages for a profile box
|}
 
{{Editing Guides}}
==See also==
* [[GSWiki:Template policy/Personal templates]]
 
[[Category:Gem Wiki community|Templates]]
[[Category:Templates| ]]
[[Category:Templates| ]]