Difference between revisions of "Template:Gamecompany"

From Hgames Wiki
Jump to: navigation, search
m
(optimizing)
 
(8 intermediate revisions by one other user 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;"
+
<div style="width: 200px; margin-top: 4px; border: 2px solid #000; float: right; clear: right; padding: 3px; {{borrad|8px}}">
|-
+
{{CompanyTop|{{{company|{{PAGENAME}}}}}|{{{category|{{PAGENAME}} Games}}}|{{{modpage|}}}}}
|<span style="font-size: 1.2em; font-emphasis:bold;">'''[[{{{company|Unknown Company}}}]]'''</span>
 
* [[Special:Recentchangeslinked/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>'''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: #00f;">&#x005b;[{{fullurle:Template:{{#if: {{{company|}}} | {{{company}}} | {{BASEPAGENAME}} }}Games|action=edit}} edit]&#x005d;</span>
{{{{{company}}}Games}}</includeonly>
+
{{{{#if: {{{company|}}}
|}
+
      |{{{company}}}
<div style="clear: both;"></div>
+
      |{{BASEPAGENAME}}}}Games}}</includeonly>
<includeonly>[[Category:{{{company|Unknown}}}]][[Category:Game Company]]</includeonly>
+
</div>
<noinclude>{{documentation}}</noinclude>
+
<includeonly>[[Category:{{#if: {{{category|}}}
 +
                            |{{{category}}}
 +
                            | {{#if:{{{company|}}}
 +
                                    |{{{company}}} Games
 +
                                    |{{BASEPAGENAME}} Games
 +
                              }}
 +
                        }}]]
 +
[[Category:Game Company]]</includeonly>
 +
<noinclude>{{Clr}}{{documentation}}</noinclude>

Latest revision as of 18:43, 29 November 2021

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