Difference between revisions of "Template:Gamecompany"
From Hgames Wiki
(thanks to parserfunctions, company now defaults to "BASEPAGENAME" and category defaults to "BASEPAGENAME Games") |
m (missed "All Pages" Category link for ParserFunctions) |
||
Line 3: | Line 3: | ||
|<span style="font-size: 1.2em; font-emphasis:bold;">'''{{#if: {{{company|}}}|[[{{{company}}}]]|[[{{BASEPAGENAME}}]]}}'''</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| | + | * [[: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]]}} |}} | * {{#ifexist: {{{modpage}}} | [[{{{modpage}}}|Modding Guide]] | [[{{{modpage}}} modding guide|General Modding Guide]]}} |}} | ||
* [[Help:Tutorial|Wiki tutorial]] | * [[Help:Tutorial|Wiki tutorial]] |
Revision as of 12:09, 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?)