Difference between revisions of "Template:Infobox"

From Sinden Lightgun
Jump to navigation Jump to search
Line 1: Line 1:
<div class="infobox">
+
<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-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
+
<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-image">[[File:{{{image}}}|300px]]</div>}}
+
{{{text|TEST}}}
<table>{{#if:{{{param1|}}}|<tr>
+
</div><noinclude>
    <th>Parameter 1</th>
+
{{documentation|content=
    <td>{{{param1}}}</td>
+
 
</tr>}}{{#if:{{{param2|}}}|<tr>
+
<templatedata>
    <th>Parameter 2</th>
+
{
    <td>{{{param2}}}</td>
+
"params": {
</tr>}}{{#if:{{{param3|}}}|<tr>
+
"accentcolor": {
    <th>Parameter 3</th>
+
"label": {
    <td>{{{param3}}}</td>
+
"en": "Accent color",
</tr>}}{{#if:{{{param4|}}}|<tr>
+
"de": "Akzentfarbe"
    <th>Parameter 4</th>
+
},
    <td>{{{param4}}}</td>
+
"description": {
</tr>}}{{#if:{{{param5|}}}|<tr>
+
"en": "HEX color code",
    <th>Parameter 5</th>
+
"de": "HEX Farbcode"
    <td>{{{param5}}}</td>
+
},
</tr>}}</t
+
"example": "#0174DF",
 +
"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