Difference between revisions of "Template:Hgame/doc"
From Hgames Wiki
(Organized documentation) |
(Added overrideDisplaytitle) |
||
(One intermediate revision by the same user not shown) | |||
Line 24: | Line 24: | ||
|Prefix of a modding page for that company. Link will point to "<nowiki>{{{modpage}}}</nowiki> modding guide". | |Prefix of a modding page for that company. Link will point to "<nowiki>{{{modpage}}}</nowiki> modding guide". | ||
|General modding guide | |General modding guide | ||
+ | |- | ||
+ | |overrideDisplaytitle | ||
+ | |no | ||
+ | |Overrides the shown game title | ||
+ | | | ||
|} | |} | ||
:<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 | :<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 | ||
Line 34: | Line 39: | ||
|modpage=Foo | |modpage=Foo | ||
}}</pre> | }}</pre> | ||
− | For the page list, requires a separate template <nowiki>'''{{{game}}} | + | For the page list, requires a separate template <nowiki>'''Template:Nav/{{{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. |
Latest revision as of 09:20, 30 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 overrideDisplaytitle no Overrides the shown game title
- *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 '''Template:Nav/{{{game}}}'''. Will put the page in the {{{category}}} and {{{game}}} categories.