Difference between revisions of "Template:Gamecompany"
From Hgames Wiki
(now including {{CompanyTop}}) |
(optimizing) |
||
Line 1: | Line 1: | ||
− | + | <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|}}}}} | |
− | |||
---- | ---- | ||
− | <includeonly>'''Featured games:'''<span class="plainlinks" style="font-size:80%; float:right; color: | + | <includeonly>'''Featured games:''' <span class="plainlinks" style="font-size:80%; float:right; color: #00f;">[[{{fullurle:Template:{{#if: {{{company|}}} | {{{company}}} | {{BASEPAGENAME}} }}Games|action=edit}} edit]]</span> |
{{{{#if: {{{company|}}} | {{{{#if: {{{company|}}} | ||
|{{{company}}} | |{{{company}}} | ||
|{{BASEPAGENAME}}}}Games}}</includeonly> | |{{BASEPAGENAME}}}}Games}}</includeonly> | ||
− | + | </div> | |
<includeonly>[[Category:{{#if: {{{category|}}} | <includeonly>[[Category:{{#if: {{{category|}}} | ||
|{{{category}}} | |{{{category}}} |
Latest revision as of 18:43, 29 November 2021
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?)