No edit summary |
(minor spelling polishes) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Notice/TemplateDoc}} | {{Notice/TemplateDoc}} | ||
==Description== | |||
This template should be used when citing miscellaneous elements of the ''Halo'' games, for instance parts of the menu. Specialised templates exist for citing more specific game elements such as [[Template:Ref/Quest|''Halo Infinite'' open-world missions/quests]], [[Template:Ref/Level|campaign levels]], [[Template:Ref/Map|multiplayer maps]], [[Template:Ref/FFMap|firefight maps]], [[Template:Ref/SpOps|Spartan Ops missions]] or [[Template:Ref/Mode|gametypes]]. | |||
For other citation templates, see [[Template:Ref]]. | |||
==Usage== | ==Usage== | ||
===Syntax=== | |||
To insert this template onto a page, place one of the following wikitext samples onto the article, and fill in as necessary. You may also add any additional parameters seen [[#Parameters|below]] such as a quote or particular detail you want to highlight. | |||
=== | ====Citing a general description==== | ||
<pre><nowiki>{{Ref/Game|Id=Ref ID|Game name or acronym|Description of what you are citing}}</nowiki></pre> | |||
<pre><nowiki> | |||
{{Ref/ | |||
|Id= | |||
|Game | |||
| | |||
}}</nowiki></pre> | |||
=== | ====Citing a page about a game element==== | ||
<pre><nowiki>{{Ref/Game|Id=Ref ID|Game name or acronym|Page name|Description of what you are citing}}</nowiki></pre> | |||
<pre><nowiki> | |||
{{Ref/ | |||
|Id= | |||
|Game | |||
| | |||
| | |||
}}</nowiki></pre> | |||
=== | ===Parameters=== | ||
{| width=100% class=wikitable | {| width=100% class=wikitable | ||
!Field Name | !Field Name | ||
!Aliases | |||
!Optional or Required? | !Optional or Required? | ||
!Description | !Description | ||
Line 39: | Line 25: | ||
|- | |- | ||
|'''Id''' | |'''Id''' | ||
|''Recommended'' | | - | ||
|An ID for the reference, so it can be reused. Make it | |'''Recommended''' | ||
|An ID for the reference, so it can be reused. Make it specific to your particular citation, so that it does not conflict with other IDs, and so other editors can understand it. It should always be put at the start. | |||
|<code>ReachJFO</code> | |||
|- | |- | ||
|''' | |'''1''' {{C|unnamed field}} | ||
|Game, GameLink | |||
|'''Required''' | |'''Required''' | ||
|The name of the game being cited. | |The name of the game being cited. This field supports the use of [[Halopedia:Acronyms|Halopedia's acronym system]], so <code>CE</code> can be used in place of <code>Halo: Combat Evolved</code>. If the game's page name includes a [[Halopedia:Suffixes|suffix]], please include the <code>GameText</code> field too. | ||
|< | |<code>Halo: Reach</code> | ||
|- | |- | ||
|''' | |'''GameText''' | ||
|''Required only if Game includes a | |GameLinkText {{C|Deprecated}} | ||
| | |''Required only if Game includes a suffix'' | ||
|< | |If the <code>Game</code> page includes a suffix, this field should be filled in with what the display text of the link should be - i.e. the page name, but without the suffix. | ||
|<code>Halo: Reach</code> | |||
|- | |- | ||
|''' | |'''2''' {{C|unnamed field}} | ||
|''Recommended'' | |What, WhatLink | ||
| | |'''Recommended''' | ||
|Armory | |A description of what you are citing, or a page name. If a page name is provided, a link will automatically be created - you can use the third unnamed field (<code>WhatText</code>) to change what the display text of the link will be, if required. | ||
|<code>Armory</code> | |||
|- | |- | ||
|''' | |'''3''' {{C|unnamed field}} | ||
|''Required only if | |WhatText, WhatLinkText {{C|Deprecated}} | ||
| | |''Required only if 2 is a page name and includes a suffix'' | ||
| | |If a page name is provided for the second unnamed field, then this will be the display text for the resulting link. | ||
|<code>Armory</code> | |||
|- | |||
|'''Part''' | |||
|PartLink, Expansion, DLC, Edition | |||
|''Optional'' | |||
|A specific part or section of the game that's being cited, including DLC expansions or specific limited editions of the game. This field accepts page names and will automatically create a link if the page exists - use <code>PartText</code> to control the display text for said link. | |||
|<code>Halo Wars 2: Awakening the Nightmare</code> | |||
|- | |||
|'''PartText''' | |||
|ExpansionText, DLCText, EditionText, PartLinkText {{C|Deprecated}} | |||
|''Required only if Part is a page name and includes a suffix'' | |||
|If a page name is specified for <code>Part</code>, this field controls the display text for the resulting link. | |||
|<code>Awakening the Nightmare</code> | |||
|- | |- | ||
|'''Detail''' | |'''Detail''' | ||
| - | |||
|''Optional'' | |''Optional'' | ||
| | |Any additional details you wish to specifically highlight about the cited game element. | ||
|JFO is | |<code>JFO is a player customisation item</code> | ||
|- | |- | ||
|'''Quote''' | |'''Quote''' | ||
| - | |||
|''Optional'' | |''Optional'' | ||
| | |Used to cite a particular quote from the game that supports your citation. | ||
|<code>Designed and tested at Beweglichrüstungsysteme this helmet is fully compatible with all armor systems.</code> | |||
|- | |- | ||
|'''Quotee''' | |'''Quotee''' | ||
|QuoteeLink | |||
|''Optional'' | |''Optional'' | ||
| | |If <code>Quote</code> is used, this field can be used to specify who or what is being quoted. This field can receive a page name, in which case it will create a link. If the page name includes a [[Halopedia:Suffixes|suffix]] please include the <code>QuoteeText</code>. | ||
| | |<code>Official description</code> | ||
|- | |- | ||
|''' | |'''QuoteeText''' | ||
|''Required only if Quotee includes a | |QuoteeLinkText {{C|Deprecated}} | ||
| | |''Required only if Quotee is a page name and includes a suffix'' | ||
| | |If <code>Quotee</code> contains a page name, this field can be used to override the link display text. | ||
|<code>Official description</code> | |||
|} | |} | ||
===Error states=== | |||
====Warnings==== | |||
This template can emit the following warnings: | |||
*[[Template:Internal/Warning/MissingParam|Missing recommended parameter]] - If a recommended parameter is not passed to the template. | |||
*[[Template:Internal/Warning/DeprecatedParam|Deprecated parameter]] - If a deprecated template parameter is used in a template call. | |||
====Errors==== | |||
This template can throw the following errors: | |||
*[[Template:Internal/Error/MissingParam|Missing required parameter]] - If a required parameter is not passed to the template. | |||
*[[Template:Internal/Error/InvalidParam|Invalid parameter]] - If an unrecognised parameter is passed to the template. | |||
*[[Template:Internal/Error/ClobberedParam|Overwritten parameter]] - If the same parameter is given multiple values in the template call. | |||
===Examples=== | ===Examples=== | ||
Here are some examples of what the template will output when used: | |||
====Standard usage==== | |||
<pre>{{Ref/Game|Id=HRJFOHelmet|HR|Armor permutations (Halo: Reach)|Armory}}</pre>{{Ref/Game|Id=HRJFOHelmet|HR|Armor permutations (Halo: Reach)|Armory}} | |||
{{Ref/Sources}} | {{Ref/Sources}} | ||
====Detail field usage==== | |||
<pre>{{Ref/Game|Id=HRJFOHelmet|HR|Armor permutations (Halo: Reach)|Armory|Detail=JFO helmet}}</pre>{{Ref/Game|Id=HRJFOHelmet|HR|Armor permutations (Halo: Reach)|Armory|Detail=JFO helmet}} | |||
{{Ref/Sources}} | {{Ref/Sources}} | ||
====Quote field usage==== | |||
<pre>{{Ref/Game|Id=HRJFOHelmet|HR|Armor permutations (Halo: Reach)|Armory|Quote=Designed and tested at Beweglichrüstungsysteme, this helmet is fully compatible with all armor systems.|Quotee=Official description}}</pre> | |||
{{Ref/Game|Id=HRJFOHelmet|HR|Armor permutations (Halo: Reach)|Armory|Quote=Designed and tested at Beweglichrüstungsysteme, this helmet is fully compatible with all armor systems.|Quotee=Official description}} | |||
{{Ref/Sources}} | {{Ref/Sources}} | ||
* | ==Dependencies== | ||
===Template dependencies=== | |||
This template does not depend on any other templates. | |||
===Module dependencies=== | |||
This template depends on the following Lua module: | |||
*[[Module:Ref]] | |||
===Extension dependencies=== | |||
This template requires the following extensions: | |||
*[[mw:Extension:Scribunto|Extension:Scribunto]] | |||
*[[Halopedia:Acronyms|Extension:Acronym]] {{C|In-house extension}} | |||
*[[Halopedia:UniqueLink|Extension:UniqueLink]] {{C|In-house extension}} | |||
===Dependent templates=== | |||
No other templates are known to depend on this one. | |||
[[Category:Reference template documentation]] | <noinclude>[[Category:Reference template documentation]]</noinclude> |
Latest revision as of 22:24, September 15, 2022
DescriptionEdit
This template should be used when citing miscellaneous elements of the Halo games, for instance parts of the menu. Specialised templates exist for citing more specific game elements such as Halo Infinite open-world missions/quests, campaign levels, multiplayer maps, firefight maps, Spartan Ops missions or gametypes.
For other citation templates, see Template:Ref.
UsageEdit
SyntaxEdit
To insert this template onto a page, place one of the following wikitext samples onto the article, and fill in as necessary. You may also add any additional parameters seen below such as a quote or particular detail you want to highlight.
Citing a general descriptionEdit
{{Ref/Game|Id=Ref ID|Game name or acronym|Description of what you are citing}}
Citing a page about a game elementEdit
{{Ref/Game|Id=Ref ID|Game name or acronym|Page name|Description of what you are citing}}
ParametersEdit
Field Name | Aliases | Optional or Required? | Description | Example |
---|---|---|---|---|
Id | - | Recommended | An ID for the reference, so it can be reused. Make it specific to your particular citation, so that it does not conflict with other IDs, and so other editors can understand it. It should always be put at the start. | ReachJFO
|
1 (unnamed field) | Game, GameLink | Required | The name of the game being cited. This field supports the use of Halopedia's acronym system, so CE can be used in place of Halo: Combat Evolved . If the game's page name includes a suffix, please include the GameText field too.
|
Halo: Reach
|
GameText | GameLinkText (Deprecated) | Required only if Game includes a suffix | If the Game page includes a suffix, this field should be filled in with what the display text of the link should be - i.e. the page name, but without the suffix.
|
Halo: Reach
|
2 (unnamed field) | What, WhatLink | Recommended | A description of what you are citing, or a page name. If a page name is provided, a link will automatically be created - you can use the third unnamed field (WhatText ) to change what the display text of the link will be, if required.
|
Armory
|
3 (unnamed field) | WhatText, WhatLinkText (Deprecated) | Required only if 2 is a page name and includes a suffix | If a page name is provided for the second unnamed field, then this will be the display text for the resulting link. | Armory
|
Part | PartLink, Expansion, DLC, Edition | Optional | A specific part or section of the game that's being cited, including DLC expansions or specific limited editions of the game. This field accepts page names and will automatically create a link if the page exists - use PartText to control the display text for said link.
|
Halo Wars 2: Awakening the Nightmare
|
PartText | ExpansionText, DLCText, EditionText, PartLinkText (Deprecated) | Required only if Part is a page name and includes a suffix | If a page name is specified for Part , this field controls the display text for the resulting link.
|
Awakening the Nightmare
|
Detail | - | Optional | Any additional details you wish to specifically highlight about the cited game element. | JFO is a player customisation item
|
Quote | - | Optional | Used to cite a particular quote from the game that supports your citation. | Designed and tested at Beweglichrüstungsysteme this helmet is fully compatible with all armor systems.
|
Quotee | QuoteeLink | Optional | If Quote is used, this field can be used to specify who or what is being quoted. This field can receive a page name, in which case it will create a link. If the page name includes a suffix please include the QuoteeText .
|
Official description
|
QuoteeText | QuoteeLinkText (Deprecated) | Required only if Quotee is a page name and includes a suffix | If Quotee contains a page name, this field can be used to override the link display text.
|
Official description
|
Error statesEdit
WarningsEdit
This template can emit the following warnings:
- Missing recommended parameter - If a recommended parameter is not passed to the template.
- Deprecated parameter - If a deprecated template parameter is used in a template call.
ErrorsEdit
This template can throw the following errors:
- Missing required parameter - If a required parameter is not passed to the template.
- Invalid parameter - If an unrecognised parameter is passed to the template.
- Overwritten parameter - If the same parameter is given multiple values in the template call.
ExamplesEdit
Here are some examples of what the template will output when used:
Standard usageEdit
{{Ref/Game|Id=HRJFOHelmet|HR|Armor permutations (Halo: Reach)|Armory}}
Detail field usageEdit
{{Ref/Game|Id=HRJFOHelmet|HR|Armor permutations (Halo: Reach)|Armory|Detail=JFO helmet}}
- ^ Halo: Reach, Armory: JFO helmet
Quote field usageEdit
{{Ref/Game|Id=HRJFOHelmet|HR|Armor permutations (Halo: Reach)|Armory|Quote=Designed and tested at Beweglichrüstungsysteme, this helmet is fully compatible with all armor systems.|Quotee=Official description}}
- ^ Halo: Reach, Armory: "Designed and tested at Beweglichrüstungsysteme, this helmet is fully compatible with all armor systems." - Official description
DependenciesEdit
Template dependenciesEdit
This template does not depend on any other templates.
Module dependenciesEdit
This template depends on the following Lua module:
Extension dependenciesEdit
This template requires the following extensions:
- Extension:Scribunto
- Extension:Acronym (In-house extension)
- Extension:UniqueLink (In-house extension)
Dependent templatesEdit
No other templates are known to depend on this one.