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 |
||
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"|Type | |||
|style="background:white; width:200px; text-align:left;"|{{{type}}} | |||
|- | |||
{{#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:{{{date of creation|}}}| | |||
{{!}}style="background:#EFEFEF; width:100px"{{!}}Date of creation | |||
{{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{date of creation}}} | |||
{{!}}- | |||
}} | |||
|} | |||
|} | |||
<noinclude> | <noinclude> | ||
Example usage: | |||
<pre> | |||
{{Location | |||
| title=Example | |||
| image=Example | |||
| caption=Example | |||
| type=Example | |||
| allies=Example | |||
| enemies=Example | |||
| date of creation=Example | |||
}} | |||
</pre> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "title": { | ||
" | "suggested": true, | ||
" | "type": "string" | ||
}, | }, | ||
" | "image": { | ||
" | "suggested": true, | ||
" | "type": "wiki-file-name" | ||
}, | }, | ||
" | "caption": { | ||
" | "suggested": true, | ||
"type": "string" | |||
}, | |||
"type": { | |||
"suggested": true, | |||
"type": "string", | |||
"default": "Location", | |||
"autovalue": "Location" | |||
}, | |||
"allies": { | |||
"suggested": true, | |||
"type": "string" | |||
}, | |||
"enemies": { | |||
"suggested": true, | |||
"type": "string" | |||
}, | |||
"date of creation": { | |||
"suggested": true, | |||
"type": "string" | |||
} | |||
}, | }, | ||
" | "sets": [] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 03:10, 16 November 2022
| |||||
|
Example usage:
{{Location | title=Example | image=Example | caption=Example | type=Example | allies=Example | enemies=Example | date of creation=Example }}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
title | title | no description | String | suggested |
image | image | no description | File | suggested |
caption | caption | no description | String | suggested |
type | type | no description
| String | suggested |
allies | allies | no description | String | suggested |
enemies | enemies | no description | String | suggested |
date of creation | date of creation | no description | String | suggested |