Template:Infobox mod: Difference between revisions
No edit summary |
Add optional translations row |
||
| (One intermediate revision by one other user not shown) | |||
| Line 14: | Line 14: | ||
{{ #if: {{{discord|}}} | {{infobox row|label=Discord|field={{{discord}}} }} }} | {{ #if: {{{discord|}}} | {{infobox row|label=Discord|field={{{discord}}} }} }} | ||
{{ #if: {{{sources|}}} | {{infobox row|label=Sources|field={{{sources}}} }} }} | {{ #if: {{{sources|}}} | {{infobox row|label=Sources|field={{{sources}}} }} }} | ||
{{ #if: {{{translations|}}} | {{infobox row|label=Translations|field={{{translations}}} }} }} | |||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
| Line 19: | Line 20: | ||
{ | { | ||
"params": { | "params": { | ||
"image": {}, | "image": { | ||
"type": "wiki-file-name" | |||
}, | |||
"author": {}, | "author": {}, | ||
"contributors": {}, | "contributors": {}, | ||
| Line 29: | Line 32: | ||
"curseforge": {}, | "curseforge": {}, | ||
"discord": {}, | "discord": {}, | ||
"sources": {} | "sources": {}, | ||
} | "translations": {}, | ||
"title": {} | |||
}, | |||
"paramOrder": [ | |||
"title", | |||
"image", | |||
"author", | |||
"contributors", | |||
"latest_release", | |||
"initial_release", | |||
"modloader", | |||
"minecraft_version", | |||
"modrinth", | |||
"curseforge", | |||
"discord", | |||
"sources", | |||
"translations" | |||
] | |||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> | ||