Template:ModuleInfobox: Difference between revisions

m
So many checks
(Icon checks for root pages if subpage image doesn't exist)
m (So many checks)
Line 6: Line 6:
   | label2 = Module Type
   | label2 = Module Type
   | data2 = {{ #switch: {{{type|}}}
   | data2 = {{ #switch: {{{type|}}}
| Base = Base {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Base Modules]] {{#ifeq: {{#sub:{{{name}}} |-6}} | Shamir | [[Category:Metallurgy]] | }} }}
| Base = Base {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Base Modules]] {{#ifeq: {{#sub:{{{name | {{SUBPAGENAME}} }}} |-6}} | Shamir | [[Category:Metallurgy]] | }} }}
| Expansion = Expansion {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Expansion Packs]] {{#ifeq: {{#sub:{{{name}}}|-6}} | Shamir | [[Category:Metallurgy]] | }} }}
| Expansion = Expansion {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Expansion Packs]] {{#ifeq: {{#sub:{{{name | {{SUBPAGENAME}} }}}|-6}} | Shamir | [[Category:Metallurgy]] | }} }}
| Reliant = Reliant {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Reliant Modules]] {{#ifeq: {{#sub: {{{name}}} |-6}} | Shamir | [[Category:Metallurgy]] | }} }}
| Reliant = Reliant {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Reliant Modules]] {{#ifeq: {{#sub: {{{name | {{SUBPAGENAME}}}}} |-6}} | Shamir | [[Category:Metallurgy]] | }} }}
| Stand Alone = Stand Alone {{#if: {{{retired|}}}| | [[Category: All Modules]] {{#ifeq: {{#sub:{{{name}}} |-6}} | Shamir | [[Category:Metallurgy]] | }} [[Category:Stand Alone Modules]] }}
| Stand Alone = Stand Alone {{#if: {{{retired|}}}| | [[Category: All Modules]] {{#ifeq: {{#sub:{{{name | {{SUBPAGENAME}} }}} |-6}} | Shamir | [[Category:Metallurgy]] | }} [[Category:Stand Alone Modules]] }}
|''unknown''
|''unknown''
}}
}}
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits