Difference between revisions of "Template:Gamecompany"

From Hgames Wiki
Jump to: navigation, search
m (missed "All Pages" Category link for ParserFunctions)
(now including {{CompanyTop}})
Line 1: Line 1:
 
{|style="width: 200px; margin-top: 4px; border: 2px solid black; float:right; clear:right; padding:3px; {{borrad|8px}}"
 
{|style="width: 200px; margin-top: 4px; border: 2px solid black; float:right; clear:right; padding:3px; {{borrad|8px}}"
 
|-
 
|-
|<span style="font-size: 1.2em; font-emphasis:bold;">'''{{#if: {{{company|}}}|[[{{{company}}}]]|[[{{BASEPAGENAME}}]]}}'''</span>
+
|{{CompanyTop|{{{company|{{PAGENAME}}}}}|{{{category|{{PAGENAME}} Games}}}|{{{modpage|}}}}}
* [[Special:Recentchangeslinked/Category:{{{category|{{{company|Unknown}}}}}}|Recent changes]]
 
* [[:Category:{{#if: {{{category|}}}|{{{category}}}| {{#if:{{{company|}}}|{{{company}}} Games|{{BASEPAGENAME}} Games}}}}|All pages]]{{#if: {{{modpage|}}}|
 
* {{#ifexist: {{{modpage}}} | [[{{{modpage}}}|Modding Guide]] | [[{{{modpage}}} 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>'''Featured games:'''<span class="plainlinks" style="font-size:80%; float:right; color:blue;" ><nowiki>[</nowiki>[{{fullurle:Template:{{#if: {{{company|}}}|{{{company}}}|{{BASEPAGENAME}}}}Games|action=edit}} edit]<nowiki>]</nowiki></span>
+
<includeonly>'''Featured games:'''<span class="plainlinks" style="font-size:80%; float:right; color:blue;" ><nowiki>[</nowiki>[{{fullurle:Template:{{#if: {{{company|}}} | {{{company}}} | {{BASEPAGENAME}} }}Games|action=edit}} edit]<nowiki>]</nowiki></span>
{{{{#if: {{{company|}}}|{{{company}}}|{{BASEPAGENAME}}}}Games}}</includeonly>
+
{{{{#if: {{{company|}}}
 +
      |{{{company}}}
 +
      |{{BASEPAGENAME}}}}Games}}</includeonly>
 
|}
 
|}
<includeonly>[[Category:{{#if: {{{category|}}}|{{{category}}}| {{#if:{{{company|}}}|{{{company}}} Games|{{BASEPAGENAME}} Games}}}}]][[Category:Game Company]]</includeonly>
+
<includeonly>[[Category:{{#if: {{{category|}}}
<noinclude><div style="clear: both;"></div>
+
                            |{{{category}}}
{{documentation}}</noinclude>
+
                            | {{#if:{{{company|}}}
 +
                                    |{{{company}}} Games
 +
                                    |{{BASEPAGENAME}} Games
 +
                              }}
 +
                        }}]]
 +
[[Category:Game Company]]</includeonly>
 +
<noinclude>{{Clr}}{{documentation}}</noinclude>

Revision as of 22:25, 26 March 2014

Gamecompany

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