Template:Group: Difference between revisions

From gm_construct 13 beta
Jump to navigation Jump to search
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 15: Line 15:
!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"|Type
<!--
|style="background:white; width:200px; text-align:left;"|{{{type}}}
|-
|-
!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|}}}|
{{#if:{{{allies|}}}|
   {{!}}style="background:#EFEFEF; width:100px"{{!}}Allies
   {{!}}style="background:#EFEFEF; width:100px"{{!}}Allies
Line 28: Line 50:
   {{!}}-
   {{!}}-
}}
}}
{{#if:{{{date of creation|}}}|
{{#if:{{{disbanded|}}}|
   {{!}}style="background:#EFEFEF; width:100px"{{!}}Date of creation
   {{!}}style="background:#EFEFEF; width:100px"{{!}}Disbanded
   {{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{date of creation}}}
   {{!}}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 41: Line 68:
{{Location
{{Location
   | title=Example
   | title=Example
   | image=Example
   | image=Example.png
   | caption=Example
   | caption=Example
   | type=Example
   | abbreviation=Example
  | description=Example
   | allies=Example
   | allies=Example
   | enemies=Example
   | enemies=Example
   | date of creation=Example
   | created=Jan 01, 2000
  | disbanded=Example
}}
}}
</pre>
</pre>
Line 53: Line 82:
"params": {
"params": {
"title": {
"title": {
"suggested": true,
"type": "string",
"type": "string"
"required": true
},
},
"image": {
"image": {
"suggested": true,
"type": "wiki-file-name",
"type": "wiki-file-name"
"required": true
},
},
"caption": {
"caption": {
"suggested": true,
"type": "string"
"type": "string"
},
},
"type": {
"abbreviation": {
"suggested": true,
"type": "string"
},
"description": {
"type": "string",
"type": "string",
"default": "Location",
"required": true
"autovalue": "Location"
},
},
"allies": {
"allies": {
"suggested": true,
"type": "wiki-page-name"
"type": "string"
},
},
"enemies": {
"enemies": {
"suggested": true,
"type": "wiki-page-name"
"type": "string"
},
"disbanded": {
"type": "date"
},
},
"date of creation": {
"created": {
"suggested": true,
"type": "date"
"type": "string"
}
}
},
},
"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

{{{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