Difference between revisions of "Template:Gamecompany"

From Hgames Wiki
Jump to: navigation, search
m (typo)
(thanks to parserfunctions, company now defaults to "BASEPAGENAME" and category defaults to "BASEPAGENAME Games")
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; 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>
+
|<span style="font-size: 1.2em; font-emphasis:bold;">'''{{#if: {{{company|}}}|[[{{{company}}}]]|[[{{BASEPAGENAME}}]]}}'''</span>
 
* [[Special:Recentchangeslinked/Category:{{{category|{{{company|Unknown}}}}}}|Recent changes]]
 
* [[Special:Recentchangeslinked/Category:{{{category|{{{company|Unknown}}}}}}|Recent changes]]
 
* [[:Category:{{{category|{{{company|Unknown}}}}}}|All pages]]{{#if: {{{modpage|}}}|
 
* [[:Category:{{{category|{{{company|Unknown}}}}}}|All pages]]{{#if: {{{modpage|}}}|
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>'''Featured games:'''<span class="plainlinks" style="font-size:80%; float:right; color:blue;" ><nowiki>[</nowiki>[{{fullurle:Template:{{{company}}}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>
{{{{{company}}}Games}}</includeonly>
+
{{{{#if: {{{company|}}}|{{{company}}}|{{BASEPAGENAME}}}}Games}}</includeonly>
 
|}
 
|}
<includeonly>[[Category:{{{category|{{{company|Unknown}}}}}}]][[Category:Game Company]]</includeonly>
+
<includeonly>[[Category:{{#if: {{{category|}}}|{{{category}}}| {{#if:{{{company|}}}|{{{company}}} Games|{{BASEPAGENAME}} Games}}}}]][[Category:Game Company]]</includeonly>
 
<noinclude><div style="clear: both;"></div>
 
<noinclude><div style="clear: both;"></div>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 11:59, 23 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?)