Template:InfoBox: Difference between revisions

From Ro'vali Wiki
Jump to navigation Jump to search
init, trying out templates
 
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 3: Line 3:
{
{
"params": {
"params": {
"Title": {
"aliases": [
"title"
],
"example": "Aerogel Spear",
"type": "string",
"default": "MISSING TITLE"
},
"Image": {
"Image": {
"type": "url",
"type": "string"
"autovalue": "google.com"
},
"Info1Label": {
"default": "LABEL 1"
},
"Info1Value": {
"type": "string",
"default": "VALUE 1"
},
"Info2Label": {
"type": "string",
"default": "LABEL 2"
},
"Info2Value": {
"default": "VALUE 2"
},
"Info3Label": {
"type": "string",
"default": "LABEL 3"
},
"Info3Value": {
"default": "VALUE 3"
}
}
},
},
"maps": {
"maps": {
"Title": {}
"Title": {}
}
},
"description": "General infobox for infomation about unique things that doesn't match any other qualities",
"paramOrder": [
"Title",
"Image",
"Info1Label",
"Info1Value",
"Info2Label",
"Info2Value",
"Info3Label",
"Info3Value"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
{| class="wikitable" style="float:right; margin:0 0 1em 1em; width:300px;"
|+
! colspan="2" | {{{Title}}}
|-
| colspan="2" style="padding: 0;" | [[File:{{{Image}}}|300px]]
|-
{{#if:{{{Info1Label}}}|
! style="border-right: 0px; text-align:left" | {{{Info1Label}}}
| style="border-left: 0px; text-align:left" | {{{Info1Value}}}
|-
}}
{{#if:{{{Info2Label}}}|
! style="border-right: 0px; text-align:left" | {{{Info2Label}}}
| style="border-left: 0px; text-align:left" | {{{Info2Value}}}
|-
}}
{{#if:{{{Info3Label}}}|
! style="border-right: 0px; text-align:left" | {{{Info3Label}}}
| style="border-left: 0px; text-align:left" | {{{Info3Value}}}
|-
}}
|}

Latest revision as of 21:42, 19 April 2025

General infobox for infomation about unique things that doesn't match any other qualities

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
TitleTitle title

no description

Default
MISSING TITLE
Example
Aerogel Spear
Stringoptional
ImageImage

no description

Stringoptional
Info1LabelInfo1Label

no description

Default
LABEL 1
Unknownoptional
Info1ValueInfo1Value

no description

Default
VALUE 1
Stringoptional
Info2LabelInfo2Label

no description

Default
LABEL 2
Stringoptional
Info2ValueInfo2Value

no description

Default
VALUE 2
Unknownoptional
Info3LabelInfo3Label

no description

Default
LABEL 3
Stringoptional
Info3ValueInfo3Value

no description

Default
VALUE 3
Unknownoptional


{{{Title}}}
[[File:{{{Image}}}|300px]]
style="border-right: 0px; text-align:left" style="border-right: 0px; text-align:left" style="border-right: 0px; text-align:left"