Template:ModuleInfobox: Difference between revisions

m
Why do retired modules still get the all modules category
m (Added auto Shamir category)
m (Why do retired modules still get the all modules category)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{#if: {{{retired|}}} | [[Category: Retired Modules]] | }} [[Category: All Modules]] }}
|title = {{{name|Gamemode 4 Module}}} {{#ifeq:{{#sub:{{{name}}}|-6}}|Shamir|[[Category:Shamirs]]|}}
{{Infobox
|image = [[File:{{#setmainimage:{{{icon|gm4_logo.svg}}}}}|150px|link=]]
| title = {{{name|Gamemode 4 Module}}}
|header1 = --------------------
| image = [[File:{{#setmainimage: {{{icon|gm4_logo.svg}}} }} |150px|link=]]
|label2 = Module Type
| header1 = --------------------
|data2 = {{#switch:{{{type|}}}
| label2 = Module Type
| Base = Base {{#ifeq:{{{retired|}}}||[[Category:All Modules]][[Category:Base Modules]]}}
| data2 = {{ #switch: {{{type|}}}
| Expansion = Expansion {{#ifeq:{{{retired|}}}||[[Category:All Modules]][[Category:Expansion Packs]]}}
| Base = Base {{#if: {{{retired|}}} | | [[Category:Base Modules]] {{#ifeq: {{#sub:{{{name}}} |-6}} | Shamir | [[Category:Shamirs]] | }} }}
| Reliant = Reliant {{#ifeq:{{{retired|}}}||[[Category:All Modules]][[Category:Reliant Modules]]}}
| Expansion = Expansion {{#if: {{{retired|}}} | | [[Category:Expansion Packs]] {{#ifeq:{{#sub:{{{name}}}|-6}}|Shamir|[[Category:Shamirs]] | }} }}
| Stand Alone = Stand Alone {{#ifeq:{{{retired|}}}||[[Category:All Modules]][[Category:Stand Alone Modules]]}}
| Reliant = Reliant {{#if: {{{retired|}}} | | [[Category:Reliant Modules]] {{#ifeq: {{#sub: {{{name}}} |-6}} | Shamir | [[Category:Shamirs]] | }} }}
|''unknown''}}
| Stand Alone = Stand Alone {{#if: {{{retired|}}}|| {{#ifeq: {{#sub:{{{name}}} |-6}} | Shamir | [[Category:Shamirs]] | }} [[Category:Stand Alone Modules]] }}
|label3 = Created by
|''unknown''
|data3 = {{{creator|''unknown''}}}
}}
|label4 = Last Updated by
| label3 = Created by
|data4 = {{{updater|}}}
| data3 = {{{creator|''unknown''}}}
|label5 = Required Modules
| label4 = Last Updated by
|data5 = {{{requires|}}}
| data4 = {{{updater|}}}
|label6 = Complementary Modules
| label5 = Required Modules
|data6 = {{{complementary|}}}
| data5 = {{{requires|}}}
|label7 = Incompatible Modules
| label6 = Complementary Modules
|data7 = {{{incompatible|}}}
| data6 = {{{complementary|}}}
|label8 = Compatible MC Versions
| label7 = Incompatible Modules
|data8 = {{#if:{{{retired|}}}|''none''|{{{versions|''unknown''}}}}}
| data7 = {{{incompatible|}}}
|label9 = Module Status
| label8 = Compatible MC Versions
|data9 = {{#if:{{{retired|}}}|Retired|}}
| data8 = {{#if: {{{retired|}}} | ''none'' | {{{versions|''unknown''}}} }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits