Difference between revisions of "Template:Gamecompany"

From Hgames Wiki
Jump to: navigation, search
m (fixed "recent changes" link)
(change to modpage: if not given, no link is displayed. if given and if it exists, it is used. if given and if it do not exist, old behaviour.)
Line 3: Line 3:
 
|<span style="font-size: 1.2em; font-emphasis:bold;">'''[[{{{company|Unknown Company}}}]]'''</span>
 
|<span style="font-size: 1.2em; font-emphasis:bold;">'''[[{{{company|Unknown Company}}}]]'''</span>
 
* [[Special:Recentchangeslinked/Category:{{{category|{{{company|Unknown}}}}}}|Recent changes]]
 
* [[Special:Recentchangeslinked/Category:{{{category|{{{company|Unknown}}}}}}|Recent changes]]
* [[:Category:{{{category|{{{company|Unknown}}}}}}|All pages]]
+
* [[:Category:{{{category|{{{company|Unknown}}}}}}|All pages]]{{#if: {{{modpage|}}}|
* [[{{{modpage|general}}} modding guide|General modding guide]]
+
* {{#ifexists: {{{modpage}}} | [[{{{modpage}}}|Modding Guide]] | [[{{{modpage}}} modding guide|General Modding Guide]]}} |}}
 
* [[Help:Tutorial|Wiki tutorial]]
 
* [[Help:Tutorial|Wiki tutorial]]
 
* [{{fullurl:{{FULLPAGENAME}}|action=purge}} Purge] <small>(this page)</small>
 
* [{{fullurl:{{FULLPAGENAME}}|action=purge}} Purge] <small>(this page)</small>

Revision as of 10:18, 23 March 2014

Unknown Company

all characters are at least 18


Template documentation (for the above template, sometimes hidden or invisible)

The {{gamecompany}} template is for creating game company's nav headers in the wiki.

Usage:

{{gamecompany
|company=Foo Inc.
|category=Foo Inc. Games
|modpage=Foo Inc Modding Guide
}}
  • company: The name of the game company. Defaults to the name of the page ({{BASEPAGENAME}}).
  • category: The name of the category this page and all game pages should be in. Defaults to {{BASEPAGENAME}} Games.
  • modpage: The name or prefix of the modding guide page. If ommited, no link will be displayed. if given and the page exists a link will be displayed. If given and page does not exist, will be used as a prefix - Link will point to "{{{modpage}}} modding guide".

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

Will put the Page also in the Category "Game Company"


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