Difference between revisions of "Template:Infobox"

From Sinden Lightgun
Jump to navigation Jump to search
Line 1: Line 1:
<div style="background:{{{accentcolor|#0174DF}}}; color:white; width:146px;padding-left:0.5em; margin-left:0.5em; border:.1em solid {{{accentcolor|#0174DF}}};">[[File:OOjs UI icon info.svg|20px]] '''INFORMATION''' </div>
<div class="infobox">
<div style="background:{{{backgroundcolor|transparent}}}; width:{{{width|auto}}}; border-left:1em solid {{{accentcolor|#0174DF}}}; border:.1em solid {{{accentcolor|#0174DF}}}; box-sizing:border-box; padding-left:0.5em; margin-left:0.5em; text-align:{{{textalignment|left}}}; overflow:hidden;">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
{{{text|TEST}}}
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
</div><noinclude>
<table>{{#if:{{{param1|}}}|<tr>
{{documentation|content=
<th>Parameter 1</th>

<td>{{{param1}}}</td>
<templatedata>
</tr>}}{{#if:{{{param2|}}}|<tr>
{
<th>Parameter 2</th>
"params": {
<td>{{{param2}}}</td>
"accentcolor": {
</tr>}}{{#if:{{{param3|}}}|<tr>
"label": {
<th>Parameter 3</th>
"en": "Accent color",
<td>{{{param3}}}</td>
"de": "Akzentfarbe"
</tr>}}{{#if:{{{param4|}}}|<tr>
},
<th>Parameter 4</th>
"description": {
<td>{{{param4}}}</td>
"en": "HEX color code",
</tr>}}{{#if:{{{param5|}}}|<tr>
"de": "HEX Farbcode"
<th>Parameter 5</th>
},
<td>{{{param5}}}</td>
"example": "#0174DF",
</tr>}}</t
"type": "string",
"autovalue": "#0174DF"
},
"backgroundcolor": {
"label": {
"en": "Background color",
"de": "Hintergrund(farbe)"
},
"description": {
"en": "HEX Code or HTML settings",
"de": "HEX Code oder HTML Settings"
},
"example": "transparent",
"type": "string",
"autovalue": "transparent"
},
"width": {
"label": {
"en": "Width",
"de": "Breite"
},
"description": {
"en": "Width of the box",
"de": "Breite der Box"
},
"type": "string",
"autovalue": "auto"
},
"textalignment": {
"label": {
"en": "Text-alignment",
"de": "Textausrichtung"
},
"description": {
"en": "Alginment of the text",
"de": "Ausrichtung des Textes"
},
"example": "center",
"type": "string",
"autovalue": "left"
},
"text": {
"label": {
"en": "Text",
"de": "Text"
},
"description": {
"en": "The text you want to display",
"de": "Anzuzeigender Text"
},
"type": "string",
"autovalue": "",
"required": true,
"suggested": true
}
},
"description": {
"de": "Informations-Infobox",
"en": "Information-Infobox"
}
}
</templatedata>

}}
</noinclude>

Revision as of 12:38, 8 December 2022

OOjs UI icon info.svg INFORMATION

TEST

Template:Documentation