Difference between revisions of "Template:Gamecompany"
From Hgames Wiki
m (missed "All Pages" Category link for ParserFunctions) |
(optimizing) |
||
(One intermediate revision by one other user not shown) | |||
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|}}}|{{{company}}}|{{BASEPAGENAME}}}}Games}}</includeonly> | + | {{{{#if: {{{company|}}} |
− | + | |{{{company}}} | |
− | <includeonly>[[Category:{{#if: {{{category|}}}|{{{category}}}| {{#if:{{{company|}}}|{{{company}}} Games|{{BASEPAGENAME}} Games}}}}]][[Category:Game Company]]</includeonly> | + | |{{BASEPAGENAME}}}}Games}}</includeonly> |
− | <noinclude> | + | </div> |
− | {{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
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?)