Difference between revisions of "Template:Hgame/doc"

From Hgames Wiki
Jump to: navigation, search
(Undo revision 10730 by Hmoeller (talk))
(Organized documentation)
Line 1: Line 1:
The {{t|hgame}} template works similar to the {{t|gamecompany}} template, but it is for game related pages.
+
;Description
 +
:The {{t|hgame}} template works similar to the {{t|gamecompany}} template, but it is for game related pages.
 +
;Parameters
 +
:{|class="wikitable sortable"
 +
! Parameter !! Required* !! Description !! Default value
 +
|-
 +
|game
 +
|YES
 +
|The name of the game. Must be the same for all pages about that game.
 +
|
 +
|-
 +
|company
 +
|YES
 +
|The name of the game company.
 +
|
 +
|-
 +
|category
 +
|Optional
 +
|The name of the category this page should be in.
 +
|<code><nowiki>{{{company}}}</nowiki></code>
 +
|-
 +
|modpage
 +
|Optional
 +
|Prefix of a modding page for that company. Link will point to "<nowiki>{{{modpage}}}</nowiki> modding guide".
 +
|General modding guide
 +
|}
 +
:<nowiki>*</nowiki>YES = Will break the template if not given; Optional = Will not break the template if missing; no = Will override some automaticly filled parameters in the template
  
Usage:
+
;Usage:
 
<pre>{{hgame
 
<pre>{{hgame
 
|game=GameName
 
|game=GameName
Line 8: Line 34:
 
|modpage=Foo
 
|modpage=Foo
 
}}</pre>
 
}}</pre>
 
+
For the page list, requires a separate template <nowiki>'''{{{game}}}Nav'''</nowiki>.
* game: The name of the game. Must be the same for all pages about that game. Required.
 
* company: The name of the game company. Required
 
* category: The name of the category this page should be in. Defaults to CompanyName
 
* modpage: Prefix of a modding page for that company. Link will point to "<nowiki>{{{modpage}}}</nowiki> modding guide". Defaults to "general modding guide".
 
 
 
For the page list, requires a separate template <nowiki>'''{{{game}}}'''</nowiki>.
 
 
 
 
Will put the page in the <nowiki>{{{category}}} and {{{game}}}</nowiki> categories.
 
Will put the page in the <nowiki>{{{category}}} and {{{game}}}</nowiki> categories.

Revision as of 17:33, 24 March 2014

Description
The {{hgame}} template works similar to the {{gamecompany}} template, but it is for game related pages.
Parameters
Parameter Required* Description Default value
game YES The name of the game. Must be the same for all pages about that game.
company YES The name of the game company.
category Optional The name of the category this page should be in. {{{company}}}
modpage Optional Prefix of a modding page for that company. Link will point to "{{{modpage}}} modding guide". General modding guide
*YES = Will break the template if not given; Optional = Will not break the template if missing; no = Will override some automaticly filled parameters in the template
Usage
{{hgame
|game=GameName
|company=CompanyName
|category=CategoryUsed
|modpage=Foo
}}

For the page list, requires a separate template '''{{{game}}}Nav'''. Will put the page in the {{{category}}} and {{{game}}} categories.