Template:Group: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
|- | |- | ||
!colspan=2 style="padding-bottom:1px; padding-left:20px; padding-right:20px"|General | !colspan=2 style="padding-bottom:1px; padding-left:20px; padding-right:20px"|General | ||
|- | |||
<!-- | |||
|- | |||
!style="background:#EFEFEF; width:100px"|Abbreviation | |||
|style="background:white; width:200px; text-align:left;"|{{{abbreviation}}} | |||
|- | |||
!style="background:#EFEFEF; width:100px"|Description | |||
|style="background:white; width:200px; text-align:left;"|{{{description}}} | |||
|- | |- | ||
!style="background:#EFEFEF; width:100px"|Allies | !style="background:#EFEFEF; width:100px"|Allies | ||
Line 21: | Line 29: | ||
|style="background:white; width:200px; text-align:left;"|{{{enemies}}} | |style="background:white; width:200px; text-align:left;"|{{{enemies}}} | ||
|- | |- | ||
!style="background:#EFEFEF; width:100px"| | --> | ||
{{#if:{{{abbreviation|}}}| | |||
{{!}}style="background:#EFEFEF; width:100px"{{!}}Abbreviation | |||
{{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{abbreviation}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{description|}}}| | |||
{{!}}style="background:#EFEFEF; width:100px"{{!}}Description | |||
{{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{description}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{allies|}}}| | {{#if:{{{allies|}}}| | ||
{{!}}style="background:#EFEFEF; width:100px"{{!}}Allies | {{!}}style="background:#EFEFEF; width:100px"{{!}}Allies | ||
Line 34: | Line 50: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{disbanded|}}}| | ||
{{!}}style="background:#EFEFEF; width:100px"{{!}} | {{!}}style="background:#EFEFEF; width:100px"{{!}}Disbanded | ||
{{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{ | {{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{disbanded}}} | ||
{{!}}- | |||
}} | |||
{{#if:{{{created|}}}| | |||
{{!}}style="background:#EFEFEF; width:100px"{{!}}Created | |||
{{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{created}}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 47: | Line 68: | ||
{{Location | {{Location | ||
| title=Example | | title=Example | ||
| image=Example | | image=Example.png | ||
| caption=Example | | caption=Example | ||
| abbreviation=Example | |||
| description=Example | |||
| allies=Example | | allies=Example | ||
| enemies=Example | | enemies=Example | ||
| | | created=Jan 01, 2000 | ||
| disbanded=Example | |||
}} | }} | ||
</pre> | </pre> | ||
Line 58: | Line 82: | ||
"params": { | "params": { | ||
"title": { | "title": { | ||
" | "type": "string", | ||
" | "required": true | ||
}, | }, | ||
"image": { | "image": { | ||
"type": "wiki-file-name", | |||
"type": "wiki-file-name" | "required": true | ||
}, | }, | ||
"caption": { | "caption": { | ||
"type": "string" | "type": "string" | ||
}, | |||
"abbreviation": { | |||
"type": "string" | |||
}, | |||
"description": { | |||
"type": "string", | |||
"required": true | |||
}, | }, | ||
"allies": { | "allies": { | ||
"type": "wiki-page-name" | |||
"type": " | |||
}, | }, | ||
"enemies": { | "enemies": { | ||
" | "type": "wiki-page-name" | ||
"type": " | }, | ||
"disbanded": { | |||
"type": "date" | |||
}, | }, | ||
" | "created": { | ||
"type": "date" | |||
"type": " | |||
} | } | ||
}, | }, | ||
"sets": [] | "sets": [], | ||
"paramOrder": [ | |||
"title", | |||
"image", | |||
"caption", | |||
"abbreviation", | |||
"description", | |||
"allies", | |||
"enemies", | |||
"created", | |||
"disbanded" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 00:55, 27 August 2023
| |||
|
Example usage:
{{Location | title=Example | image=Example.png | caption=Example | abbreviation=Example | description=Example | allies=Example | enemies=Example | created=Jan 01, 2000 | disbanded=Example }}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
title | title | no description | String | required |
image | image | no description | File | required |
caption | caption | no description | String | optional |
abbreviation | abbreviation | no description | String | optional |
description | description | no description | String | required |
allies | allies | no description | Page name | optional |
enemies | enemies | no description | Page name | optional |
created | created | no description | Date | optional |
disbanded | disbanded | no description | Date | optional |