Difference between revisions of "Template:Hgame"

From Hgames Wiki
Jump to: navigation, search
m (fix for non-subpaged games)
(Testing dual-purpose template changes)
Line 9: Line 9:
 
<span style="margin-left:6px;">'''''all characters are at least 18'''''</span>
 
<span style="margin-left:6px;">'''''all characters are at least 18'''''</span>
 
----
 
----
<includeonly>'''<span class="plainlinks">[[{{{game}}}]]</span>'''<span class="plainlinks" style="font-size:80%; float:right; color:blue;" ><nowiki>[</nowiki>[{{fullurle:Template:{{{game}}}|action=edit}} edit]<nowiki>]</nowiki></span>
+
<includeonly>'''<span class="plainlinks">[[{{#ifeq: {{{game|{{#titleparts: {{FULLPAGENAME}}|1}}}}}|{{#titleparts: {{FULLPAGENAME}}|1}}|{{#titleparts: {{FULLPAGENAME}}|1}}|{{{game}}}}}]]</span>'''<span class="plainlinks" style="font-size:80%; float:right; color:blue;" ><nowiki>[</nowiki>[{{fullurle:Template:{{#ifeq: {{{game|{{#titleparts: {{FULLPAGENAME}}|1}}}}}|{{#titleparts: {{FULLPAGENAME}}|1}}|{{#titleparts: {{FULLPAGENAME}}|1}}|{{{game}}}}}|action=edit}} edit]<nowiki>]</nowiki></span>
{{ {{{game}}} }}</includeonly>
+
{{ {{#ifeq: {{{game|{{#titleparts: {{FULLPAGENAME}}|1}}}}}|{{#titleparts: {{FULLPAGENAME}}|1}}|{{#titleparts: {{FULLPAGENAME}}|1}}|{{{game}}}}} }}</includeonly>
 
|}
 
|}
 
<includeonly>[[Category:{{{category|{{{company|Unknown}}}}}}]][[Category:{{BASEPAGENAME}}]]
 
<includeonly>[[Category:{{{category|{{{company|Unknown}}}}}}]][[Category:{{BASEPAGENAME}}]]
 
{{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1}}|{{#titleparts:{{FULLPAGENAME}}|0}}||{{DISPLAYTITLE:{{#titleparts:{{FULLPAGENAME}}|1}}: {{SUBPAGENAME}}}}}}</includeonly>
 
{{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1}}|{{#titleparts:{{FULLPAGENAME}}|0}}||{{DISPLAYTITLE:{{#titleparts:{{FULLPAGENAME}}|1}}: {{SUBPAGENAME}}}}}}</includeonly>
 
<noinclude><div style="clear: both;"></div>{{documentation}}</noinclude>
 
<noinclude><div style="clear: both;"></div>{{documentation}}</noinclude>

Revision as of 15:24, 23 March 2014

Unknown Company

all characters are at least 18


Template documentation (for the above template, sometimes hidden or invisible)
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.


Visit Template:Hgame/doc to edit this text! (How does this work?)