Difference between revisions of "Template:Hgame/doc"

From Hgames Wiki
Jump to: navigation, search
(Undo revision 10730 by Hmoeller (talk))
Line 17: Line 17:
  
 
Will put the page in the <nowiki>{{{category}}} and {{{game}}}</nowiki> categories.
 
Will put the page in the <nowiki>{{{category}}} and {{{game}}}</nowiki> categories.
 
= Subpages and ParserFunctions =
 
Once Subpages and ParserFunctions are here, the code will be changed to
 
<pre>{|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;"
 
|-
 
|<span style="font-size: 1.2em; font-emphasis:bold;">'''[[{{{company|Unknown Company}}}]]'''</span>
 
* [[Special:Recentchangeslinked/Category:{{{category|{{{company|Unknown}}}}}}|Recent changes]]
 
* [[:Category:{{{category|{{{company|Unknown}}}}}}|All pages]]{{#if: {{{modpage|}}}|
 
*[[{{{modpage}}}|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">[[{{BASEPAGENAME}}]]</span>'''<span class="plainlinks" style="font-size:80%; float:right; color:blue;" ><nowiki>[</nowiki>[{{fullurle:Template:{{BASEPAGENAME}}|action=edit}} edit]<nowiki>]</nowiki></span>
 
{{ {{BASEPAGENAME}} }}</includeonly>
 
|}
 
<includeonly>[[Category:{{{category|{{{company|Unknown}}}}}}]][[Category:{{BASEPAGENAME}}]]
 
{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}||{{DISPLAYTITLE:{{BASEPAGENAME}}: {{SUBPAGENAME}}}}}}</includeonly>
 
<noinclude><div style="clear: both;"></div>{{documentation}}</noinclude></pre>
 

Revision as of 10:46, 24 March 2014

The {{hgame}} template works similar to the {{gamecompany}} template, but it is for game related pages.

Usage:

{{hgame
|game=GameName
|company=CompanyName
|category=CategoryUsed
|modpage=Foo
}}
  • 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 "{{{modpage}}} modding guide". Defaults to "general modding guide".

For the page list, requires a separate template '''{{{game}}}'''.

Will put the page in the {{{category}}} and {{{game}}} categories.