Template:ModuleInfobox: Difference between revisions
m (So many checks) |
m (removed double extra ending curly braces) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
| title = {{{ name | {{SUBPAGENAME}}}}} | | title = {{{ name | {{SUBPAGENAME}}}}} | ||
| 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=]] }} }} }} }} }} }} }} | | 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: All Modules]][[Category:Base Modules]] | | Base = Base {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Base Modules]] }} | ||
| Expansion = Expansion {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Expansion Packs]] | | Expansion = Expansion {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Expansion Packs]] }} | ||
| Reliant = Reliant {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Reliant Modules]] | | Reliant = Reliant {{#if: {{{retired|}}} | | [[Category: All Modules]][[Category:Reliant Modules]] }} | ||
| Stand Alone = Stand Alone {{#if: {{{retired|}}}| | [[Category: All Modules]] | | Stand Alone = Stand Alone {{#if: {{{retired|}}}| | [[Category: All Modules]] [[Category:Stand Alone Modules]] }} | ||
| Library = Library [[Category: All Modules]][[Category: Library]] | |||
| Resource | |||
| Resource Pack = Resource Pack [[Category: Resource Packs]] | |||
| ''unknown'' | |||
}} | }} | ||
| label3 = Created by | | label3 = Created by | ||
Line 24: | Line 27: | ||
| label8 = Compatible MC Versions | | label8 = Compatible MC Versions | ||
| data8 = {{#if: {{{retired|}}} | {{#ifeq: {{{retired|}}} | true | ''none'' | Retired since {{{retired}}} }} | {{{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 38: | Line 47: | ||
"icon": { | "icon": { | ||
"label": "Icon", | "label": "Icon", | ||
"suggested": true, | |||
"description": "Icon", | "description": "Icon", | ||
"example": "Custom Crafters.svg", | "example": "Custom Crafters.svg", |
Latest revision as of 19:35, 13 October 2024
[[File:{{{icon}}}]] | |
Module Type | {{{type}}} |
---|---|
Created by | creator |
Last Updated by | updater |
Required Modules | {{{requires}}} |
Complementary Modules | {{{complementary}}} |
Incompatible Modules | {{{incompatible}}} |
Compatible MC Versions | {{{versions}}} |
Module Type | unknown |
---|---|
Created by | unknown |
Compatible MC Versions | unknown |
This is an example Module Infobox, showing all available parameters.
Below that is the default Infobox, if no parameters are set.
The title, type, creator, and versions parameters should always be set.
"title" - name of the module
"type" - module type (Stand Alone, Base, Expansion, Reliant)
"creator" - original creator of the module
"versions" - the MC versions that the latest module version works with
The "icon" parameter should refer to the image file stored on the wiki. Icons should be named the same as the module name in snake_case (e.g. custom_crafters.png)
If the module doesn't have an image, do not fill in the "icon" parameter. It will default to the GM4 logo if unset.
The "updater" parameter is used only if the latest version of the module was modified by a specific user such that performance or mechanics were changed. This parameter should be the same as displayed on the module download page.
The "requires" parameter should be set if the module is a reliant module or expansion pack, and should link to the page of the base module.
The "complementary" parameter should be set to whatever modules are listed on the download page as a complementary module. Any listed module should be linked to their respective page.
The "incompatible" parameter should be set only if there are modules that conflict with other modules, though this case is very rare, and is more of a remnant before Gamemode 4 became heavily focused on compatibility.
The above documentation is transcluded from Template:ModuleInfobox/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
The infoxbox on the right of module pages
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Name
| Line | deprecated |
Icon | icon | Icon
| File | deprecated |
Type | type | Module Type (Base, Expansion, Reliant, Discontinued)
| Line | suggested |
Creator | creator | List of authors upon release/initial publish
| Line | suggested |
Updater | updater | List of everyone who has updated the module by a significant amount
| Line | suggested |
Requires | requires | List of modules required for this module to function
| Line | suggested |
Complementary | complementary | A list of complementary modules
| Line | suggested |
Incompatible | incompatible | A list of incompatible modules | Line | optional |
Versions | versions | The range of versions that this module has ever supported
| Line | suggested |
Retired | retired | Module retirement version
| Line | optional |