Template:Group: Difference between revisions

From gm_construct 13 beta
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": {
"Image": {
"title": {
"type": "string",
"required": true
},
"image": {
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true
"required": true
},
"caption": {
"type": "string"
},
"abbreviation": {
"type": "string"
},
"description": {
"type": "string",
"required": true
},
"allies": {
"type": "wiki-page-name"
},
"enemies": {
"type": "wiki-page-name"
},
},
"Description": {
"disbanded": {
"required": true,
"type": "date"
"suggested": true
},
},
"Name": {},
"created": {
"Abbreviation": {}
"type": "date"
}
},
},
"description": "Group Template",
"sets": [],
"paramOrder": [
"paramOrder": [
"Image",
"title",
"Name",
"image",
"Abbreviation",
"caption",
"Description"
"abbreviation",
"description",
"allies",
"enemies",
"created",
"disbanded"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 00:55, 27 August 2023

{{{title}}}
[[File:{{{image}}}|250px|center]]

{{{caption}}}

General


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.

Template parameters

ParameterDescriptionTypeStatus
titletitle

no description

Stringrequired
imageimage

no description

Filerequired
captioncaption

no description

Stringoptional
abbreviationabbreviation

no description

Stringoptional
descriptiondescription

no description

Stringrequired
alliesallies

no description

Page nameoptional
enemiesenemies

no description

Page nameoptional
createdcreated

no description

Dateoptional
disbandeddisbanded

no description

Dateoptional