Difference between revisions of "Template:Hgame"

From Hgames Wiki
Jump to: navigation, search
m (Switched positions of the categories (super-minor edit))
(Adding small left margin to prevent text on a page resting right next to it)
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|style="width: 200px; margin-top: 4px; border: 2px solid black; -moz-border-radius:8px; -webkit-border-radius:4px; -opera-border-radius:4px; -o-border-radius:4px; -khtml-border-radius:4px; border-radius:4px; float:right; clear:right; padding:3px;"
+
{|style="width:200px; margin-top:4px; margin-left:5px; border:2px solid black; float:right; clear:right; padding:3px; {{borrad|8px}}"
 
|-
 
|-
|<span style="font-size: 1.2em; font-emphasis:bold;">'''[[{{{company|Unknown Company}}}]]'''</span>
+
|{{CompanyTop|{{{company|Company Missing}}}|{{{category|{{{company|Unknown}}}}}}|{{{modpage|}}}}}
* [[Special:Recentchangeslinked/Category:{{{category|{{{company|Unknown}}}}}}|Recent changes]]
 
* [[:Category:{{{category|{{{company|Unknown}}}}}}|All pages]]
 
* [[{{{modpage|general}}} modding guide|General modding guide]]
 
* [[Help:Tutorial|Wiki tutorial]]
 
* [{{fullurl:{{FULLPAGENAME}}|action=purge}} Purge] <small>(this page)</small>
 
<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>
+
<span class="plainlinks" style="font-weight:bold;">{{#if:{{{overrideDisplaytitle|}}}|[[{{{game}}}|{{{overrideDisplaytitle}}}]]|[[{{{game}}}]]}}</span>
{{ {{{game}}} }}</includeonly>
+
<span class="plainlinks" style="font-size:80%; float:right;">&#91;[{{fullurle:Template:{{#ifexist: Template:Nav/{{{game|{{#titleparts:{{FULLPAGENAME}}|1}}}}}
|}
+
                                                                                          |Nav/{{{game|{{#titleparts:{{FULLPAGENAME}}|1}}}}}
<includeonly>[[Category:{{{category|{{{company|Unknown}}}}}}]][[Category:{{{game}}}]]</includeonly>
+
                                                                                          |{{{game|{{#titleparts:{{FULLPAGENAME}}|1}}}}} }}|action=edit}} edit]&#93;</span>
<noinclude><div style="clear: both;"></div>{{documentation}}</noinclude>
+
 
 +
{{<noinclude>Template:</noinclude>{{#ifexist:Template:Nav/{{{game|{{#titleparts:{{FULLPAGENAME}}|1}}}}}
 +
                                      |Nav/{{{game|{{#titleparts:{{FULLPAGENAME}}|1}}}}}
 +
                                      |{{{game|{{#titleparts:{{FULLPAGENAME}}|1}}}}}}}}}
 +
|}<includeonly>
 +
[[Category:{{{category|{{{company|Unknown}}}}}}]]
 +
[[Category:{{{game|{{#titleparts:{{FULLPAGENAME}}|1}}}}}]]
 +
{{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1}}
 +
      |{{#titleparts:{{FULLPAGENAME}}|0}}
 +
      |{{#if:{{{overrideDisplaytitle|}}}
 +
            |{{DISPLAYTITLE:{{{overrideDisplaytitle}}}}}
 +
            |
 +
        }}
 +
      |{{#if:{{{overrideDisplaytitle|}}}
 +
            |{{DISPLAYTITLE:{{{overrideDisplaytitle}}}: {{SUBPAGENAME}}}}
 +
            |{{DISPLAYTITLE:{{#titleparts:{{FULLPAGENAME}}|1}}: {{SUBPAGENAME}}}}
 +
        }}
 +
}}
 +
</includeonly><noinclude>{{clear}}{{documentation}}</noinclude>

Revision as of 16:01, 3 January 2019

Company Missing

all characters are at least 18


[[{{{game}}}]] [edit]

Template:Template:Hgame

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?)