Template:Group: Difference between revisions
Jump to navigation
Jump to search
(Created page with " <noinclude> <templatedata> { "params": { "Image": { "type": "wiki-file-name", "suggested": true }, "Description": { "required": true, "suggested": true }, "Name": {}, "Abbreviation": {} }, "description": "Group Template", "paramOrder": [ "Image", "Name", "Abbreviation", "Description" ] } </templatedata> </noinclude>") |
No edit summary |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{|class=infobox style="background:#f8f9fa; border:1px #a2a9b1 solid; float: right; margin-left: 20px; margin-bottom: 20px;" | |||
|-align=center | |||
| | |||
{|width=100% align=right style="background:transparent; font-size:80%" | |||
|-align=center | |||
!<font size=3>{{{title}}}</font> | |||
|-align=center | |||
|[[File:{{{image}}}|250px|center]] | |||
{{#if:{{{caption}}}|''{{{caption}}}''}} | |||
|} | |||
|- | |||
|colspan=2| | |||
{|style="background:#DCDCDC; color:black; font-size:85%; width:290px; padding:2px; text-align:center; margin:auto" cellspacing=1 | |||
|- | |||
!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:white; width:200px; text-align:left;"|{{{allies}}} | |||
|- | |||
!style="background:#EFEFEF; width:100px"|Enemies | |||
|style="background:white; width:200px; text-align:left;"|{{{enemies}}} | |||
|- | |||
--> | |||
{{#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|}}}| | |||
{{!}}style="background:#EFEFEF; width:100px"{{!}}Allies | |||
{{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{allies}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{enemies|}}}| | |||
{{!}}style="background:#EFEFEF; width:100px"{{!}}Enemies | |||
{{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{enemies}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{disbanded|}}}| | |||
{{!}}style="background:#EFEFEF; width:100px"{{!}}Disbanded | |||
{{!}}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}}} | |||
{{!}}- | |||
}} | |||
|} | |||
|} | |||
<noinclude> | <noinclude> | ||
Example usage: | |||
<pre> | |||
{{Location | |||
| title=Example | |||
| image=Example.png | |||
| caption=Example | |||
| abbreviation=Example | |||
| description=Example | |||
| allies=Example | |||
| enemies=Example | |||
| created=Jan 01, 2000 | |||
| disbanded=Example | |||
}} | |||
</pre> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "title": { | ||
"type": "string", | |||
"required": true | |||
}, | |||
"image": { | |||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
" | "required": true | ||
}, | |||
"caption": { | |||
"type": "string" | |||
}, | |||
"abbreviation": { | |||
"type": "string" | |||
}, | |||
"description": { | |||
"type": "string", | |||
"required": true | |||
}, | |||
"allies": { | |||
"type": "wiki-page-name" | |||
}, | |||
"enemies": { | |||
"type": "wiki-page-name" | |||
}, | }, | ||
" | "disbanded": { | ||
" | "type": "date" | ||
}, | }, | ||
" | "created": { | ||
"type": "date" | |||
} | |||
}, | }, | ||
" | "sets": [], | ||
"paramOrder": [ | "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 |