Template:ModuleInfobox: Difference between revisions

m
Just gonna try this out
m (No version if retired, also fixed up previous change)
m (Just gonna try this out)
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>
|title = {{{name|Gamemode 4 Module}}}
{{Infobox
|image = [[File:{{#setmainimage:{{{icon|gm4_logo.svg}}}}}|150px|link=]]
  | title = {{{ name | {{SUBPAGENAME}}}}}
|header1 = --------------------
  | 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=]] }} }} }} }} }} }} }}
|label2 = Module Type
  | header1 = <hr>
|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: All Modules]][[Category:Base Modules]] }}
| Reliant = Reliant {{#ifeq:{{{retired|}}}||[[Category:All Modules]][[Category:Reliant Modules]]}}
| Expansion = Expansion {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Expansion Packs]] }}
| Stand Alone = Stand Alone {{#ifeq:{{{retired|}}}||[[Category:All Modules]][[Category:Stand Alone Modules]]}}
| Reliant = Reliant {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Reliant Modules]] }}
|''unknown''}}
| Stand Alone = Stand Alone {{#if: {{{retired|}}}| | [[Category: All Modules]] [[Category:Stand Alone Modules]] }}
|label3 = Created by
    | Library = Library [[Category: All Modules]][[Category: Library]]
|data3 = {{{creator|''unknown''}}}
|''unknown''
|label4 = Last Updated by
}}
|data4 = {{{updater|}}}
  | label3 = Created by
|label5 = Required Modules
  | data3 = {{{creator|''unknown''}}}
|data5 = {{{requires|}}}
  | label4 = Last Updated by
|label6 = Complementary Modules
  | data4 = {{{updater|}}}
|data6 = {{{complementary|}}}
  | label5 = Required Modules
|label7 = Incompatible Modules
  | data5 = {{{requires|}}}
|data7 = {{{incompatible|}}}
  | label6 = Complementary Modules
|label8 = Compatible MC Versions
  | data6 = {{{complementary|}}}
|data8 = {{#if:{{{retired|}}}|''none''|{{{versions|''unknown''}}}}}
  | label7 = Incompatible Modules
|label9 = Module Status
  | data7 = {{{incompatible|}}}
|data9 = {{#if:{{{retired|}}}|Retired|}}
  | label8 = Compatible MC Versions
  | data8 = {{#if: {{{retired|}}} | {{#ifeq: {{{retired|}}} | true | ''none'' | Retired since {{{retired}}} }} | {{{versions|''unknown''}}} }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
<templatedata>
{
"params": {
"name": {
"label": "Name",
"description": "Name",
"example": "Custom Crafters",
"type": "line",
"deprecated": "Will automatically enter based on page name"
},
"icon": {
"label": "Icon",
"description": "Icon",
"example": "Custom Crafters.svg",
"type": "wiki-file-name",
"default": "gm4_logo.svg",
"deprecated": "Upload a .svg or .png titled the module name, with title case on every word"
},
"type": {
"label": "Type",
"description": "Module Type (Base, Expansion, Reliant, Discontinued)",
"example": "Expansion",
"type": "line",
"suggested": true
},
"retired": {
"label": "Retired",
"description": "Module retirement version",
"example": "1.14",
"type": "line"
},
"creator": {
"label": "Creator",
"description": "List of authors upon release/initial publish",
"example": "Bloo___, Misode, and SpecialBuilder32",
"type": "line",
"suggested": true
},
"updater": {
"label": "Updater",
"description": "List of everyone who has updated the module by a significant amount",
"example": "BluePsychoRanger",
"type": "line",
"suggested": true
},
"requires": {
"label": "Requires",
"description": "List of modules required for this module to function",
"example": "Custom Crafters",
"type": "line",
"suggested": true
},
"complementary": {
"label": "Complementary",
"description": "A list of complementary modules",
"example": "Master Crafting, Record Crafting",
"type": "line",
"suggested": true
},
"incompatible": {
"label": "Incompatible",
"description": "A list of incompatible modules",
"type": "line"
},
"versions": {
"label": "Versions",
"description": "The range of versions that this module has ever supported",
"example": "1.17+",
"type": "line",
"suggested": true
}
},
"paramOrder": [
"name",
"icon",
"type",
"creator",
"updater",
"requires",
"complementary",
"incompatible",
"versions",
"retired"
],
"description": "The infoxbox on the right of module pages"
}
</templatedata></noinclude>
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,637

edits