Template:ModuleInfobox: Difference between revisions

m
removed double extra ending curly braces
m (Added image stuff as ''default'')
m (removed double extra ending curly braces)
 
(12 intermediate revisions by 3 users not shown)
Line 2: Line 2:
{{Infobox
{{Infobox
   | title = {{{ name | {{SUBPAGENAME}}}}}
   | title = {{{ name | {{SUBPAGENAME}}}}}
   | image = {{{ image | {{#ifexist: File:{{SUBPAGENAME}}.svg | [[File:{{SUBPAGENAME}}.svg|150px|link=]] | {{#ifexist: File:{{SUBPAGENAME}}.png | [[File:{{SUBPAGENAME}}.png|150px|link]] | [[File:{{#setmainimage: {{{icon|gm4_logo.svg}}} }} |150px|link=]] }} }} }}}
   | image = {{#ifexist: File:{{{icon}}} | [[File:{{{icon}}}|150px|link=]] | {{#ifexist: File:{{SUBPAGENAME}}.svg | [[File:{{SUBPAGENAME}}.svg|150px|link=]] | {{#ifexist: File:{{SUBPAGENAME}}.png | [[File:{{SUBPAGENAME}}.png|150px|link]] | {{#ifexist: File:{{#titleparts: {{FULLPAGENAME}} | -1 | -2 }}.svg | [[File:{{#titleparts: {{FULLPAGENAME}} | -1 | -2 }}.svg|150px|link=]] | {{#ifexist: File:{{#titleparts: {{FULLPAGENAME}} | -1 | -2 }}.png | [[File:{{#titleparts: {{FULLPAGENAME}} | -1 | -2 }}.png|150px|link=]] | {{#ifexist: File:{{#titleparts: {{FULLPAGENAME}} | -2 | -3 }}.svg | [[File:{{#titleparts: {{FULLPAGENAME}} | -2 | -3 }}.svg|150px|link=]] | {{#ifexist: File:{{#titleparts: {{FULLPAGENAME}} | -2 | -3 }}.png | [[File:{{#titleparts: {{FULLPAGENAME}} | -2 | -3 }}.png|150px|link=]] | [[File:{{#setmainimage: gm4_logo.svg }} |150px|link=]] }} }} }} }} }} }} }}
  | header1 = --------------------
  | header1 = <hr>
   | label2 = Module Type
   | label2 = Module Type
   | data2 = {{ #switch: {{{type|}}}
   | data2 = {{ #switch: {{{type|}}}
| Base = Base {{#if: {{{retired|}}} | | [[Category:Base Modules]] {{#ifeq: {{#sub:{{{name}}} |-6}} | Shamir | [[Category:Metallurgy]] | }} }}
| Base = Base {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Base Modules]] }}
| Expansion = Expansion {{#if: {{{retired|}}} | | [[Category:Expansion Packs]] {{#ifeq: {{#sub:{{{name}}}|-6}} | Shamir | [[Category:Metallurgy]] | }} }}
| Expansion = Expansion {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Expansion Packs]] }}
| Reliant = Reliant {{#if: {{{retired|}}} | | [[Category:Reliant Modules]] {{#ifeq: {{#sub: {{{name}}} |-6}} | Shamir | [[Category:Metallurgy]] | }} }}
| Reliant = Reliant {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Reliant Modules]] }}
| Stand Alone = Stand Alone {{#if: {{{retired|}}}|| {{#ifeq: {{#sub:{{{name}}} |-6}} | Shamir | [[Category:Metallurgy]] | }} [[Category:Stand Alone Modules]] }}
| Stand Alone = Stand Alone {{#if: {{{retired|}}}| | [[Category: All Modules]] [[Category:Stand Alone Modules]] }}
|''unknown''
    | Library = Library [[Category: All Modules]][[Category: Library]]
| Resource
    | Resource Pack = Resource Pack [[Category: Resource Packs]]
    | ''unknown''
}}
}}
   | label3 = Created by
   | label3 = Created by
Line 23: Line 26:
   | data7 = {{{incompatible|}}}
   | data7 = {{{incompatible|}}}
   | label8 = Compatible MC Versions
   | label8 = Compatible MC Versions
   | data8 = {{#if: {{{retired|}}} | ''none'' | {{{versions|''unknown''}}} }}
   | data8 = {{#if: {{{retired|}}} | {{#ifeq: {{{retired|}}} | true | ''none'' | Retired since {{{retired}}} }} | {{{versions|''unknown''}}} }}
  | label9 = Resource Pack
  | data9 = {{#switch: {{{resource|}}}
| Required = Required [[Category: Resource Pack Compatible]] [[Category: Resource Pack Required]]
    | Optional = Optional [[Category: Resource Pack Compatible]]
    |
    }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
Line 34: Line 43:
"example": "Custom Crafters",
"example": "Custom Crafters",
"type": "line",
"type": "line",
"required": true
"deprecated": "Will automatically enter based on page name"
},
},
"icon": {
"icon": {
"label": "Icon",
"label": "Icon",
"suggested": true,
"description": "Icon",
"description": "Icon",
"example": "Custom Crafters.svg",
"example": "Custom Crafters.svg",
"type": "wiki-file-name",
"type": "wiki-file-name",
"default": "gm4_logo.svg",
"default": "gm4_logo.svg",
"suggested": true
"deprecated": "Upload a .svg or .png titled the module name, with title case on every word"
},
},
"type": {
"type": {
Line 48: Line 58:
"description": "Module Type (Base, Expansion, Reliant, Discontinued)",
"description": "Module Type (Base, Expansion, Reliant, Discontinued)",
"example": "Expansion",
"example": "Expansion",
"type": "line"
"type": "line",
"suggested": true
},
},
"retired": {
"retired": {
"label": "Retired",
"label": "Retired",
"description": "Retired module status",
"description": "Module retirement version",
"example": "true",
"example": "1.14",
"type": "boolean"
"type": "line"
},
},
"creator": {
"creator": {
Line 61: Line 72:
"example": "Bloo___, Misode, and SpecialBuilder32",
"example": "Bloo___, Misode, and SpecialBuilder32",
"type": "line",
"type": "line",
"required": true
"suggested": true
},
},
"updater": {
"updater": {
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,711

edits