Vorlage:Infobox: Unterschied zwischen den Versionen
Erscheinungsbild
Vexlin (Diskussion | Beiträge) create template |
Vexlin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
<!-- | |||
Generic infobox template. | |||
Usage: | |||
{{Infobox | |||
| title = Display title (optional, defaults to page name) | |||
| image = Filename.png (optional) | |||
| imgcap = Image caption (optional) | |||
| label1 = Row 1 label | value1 = Row 1 value | |||
... up to label12 / value12 | |||
}} | |||
--> | |||
<table style="float: right; clear: right; margin: 0 0 1em 1.5em; border: 1px solid #c9a84c; background-color: var(--background-color-neutral-subtle, #fffdf5); color: var(--color-base, inherit); font-size: 0.9em; width: 260px; border-collapse: collapse;"> | |||
<tr> | |||
<th colspan="2" style="background-color: #c9a84c; color: #1a1000; text-align: center; padding: 6px 10px; font-size: 1.05em;">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}</th> | |||
</tr> | |||
{{#if:{{{image|}}}| | |||
<tr> | |||
<td colspan="2" style="text-align: center; padding: 8px;">[[File:{{{image}}}|240px|center]]{{#if:{{{imgcap|}}}|<br/><small>{{{imgcap}}}</small>|}}</td> | |||
</tr> | |||
|}} | |||
{{#if:{{{label1|}}}|<tr><td style="padding: 4px 8px; font-weight: bold; border-top: 1px solid #c9a84c; white-space: nowrap;">{{{label1}}}</td><td style="padding: 4px 8px; border-top: 1px solid #c9a84c;">{{{value1|}}}</td></tr>|}} | |||
{{#if:{{{label2|}}}|<tr><td style="padding: 4px 8px; font-weight: bold; border-top: 1px solid #c9a84c; white-space: nowrap;">{{{label2}}}</td><td style="padding: 4px 8px; border-top: 1px solid #c9a84c;">{{{value2|}}}</td></tr>|}} | |||
{{#if:{{{label3|}}}|<tr><td style="padding: 4px 8px; font-weight: bold; border-top: 1px solid #c9a84c; white-space: nowrap;">{{{label3}}}</td><td style="padding: 4px 8px; border-top: 1px solid #c9a84c;">{{{value3|}}}</td></tr>|}} | |||
{{#if:{{{label4|}}}|<tr><td style="padding: 4px 8px; font-weight: bold; border-top: 1px solid #c9a84c; white-space: nowrap;">{{{label4}}}</td><td style="padding: 4px 8px; border-top: 1px solid #c9a84c;">{{{value4|}}}</td></tr>|}} | |||
{{#if:{{{label5|}}}|<tr><td style="padding: 4px 8px; font-weight: bold; border-top: 1px solid #c9a84c; white-space: nowrap;">{{{label5}}}</td><td style="padding: 4px 8px; border-top: 1px solid #c9a84c;">{{{value5|}}}</td></tr>|}} | |||
{{#if:{{{label6|}}}|<tr><td style="padding: 4px 8px; font-weight: bold; border-top: 1px solid #c9a84c; white-space: nowrap;">{{{label6}}}</td><td style="padding: 4px 8px; border-top: 1px solid #c9a84c;">{{{value6|}}}</td></tr>|}} | |||
{{#if:{{{label7|}}}|<tr><td style="padding: 4px 8px; font-weight: bold; border-top: 1px solid #c9a84c; white-space: nowrap;">{{{label7}}}</td><td style="padding: 4px 8px; border-top: 1px solid #c9a84c;">{{{value7|}}}</td></tr>|}} | |||
{{#if:{{{label8|}}}|<tr><td style="padding: 4px 8px; font-weight: bold; border-top: 1px solid #c9a84c; white-space: nowrap;">{{{label8}}}</td><td style="padding: 4px 8px; border-top: 1px solid #c9a84c;">{{{value8|}}}</td></tr>|}} | |||
{{#if:{{{label9|}}}|<tr><td style="padding: 4px 8px; font-weight: bold; border-top: 1px solid #c9a84c; white-space: nowrap;">{{{label9}}}</td><td style="padding: 4px 8px; border-top: 1px solid #c9a84c;">{{{value9|}}}</td></tr>|}} | |||
{{#if:{{{label10|}}}|<tr><td style="padding: 4px 8px; font-weight: bold; border-top: 1px solid #c9a84c; white-space: nowrap;">{{{label10}}}</td><td style="padding: 4px 8px; border-top: 1px solid #c9a84c;">{{{value10|}}}</td></tr>|}} | |||
{{#if:{{{label11|}}}|<tr><td style="padding: 4px 8px; font-weight: bold; border-top: 1px solid #c9a84c; white-space: nowrap;">{{{label11}}}</td><td style="padding: 4px 8px; border-top: 1px solid #c9a84c;">{{{value11|}}}</td></tr>|}} | |||
{{#if:{{{label12|}}}|<tr><td style="padding: 4px 8px; font-weight: bold; border-top: 1px solid #c9a84c; white-space: nowrap;">{{{label12}}}</td><td style="padding: 4px 8px; border-top: 1px solid #c9a84c;">{{{value12|}}}</td></tr>|}} | |||
</table><noinclude> | |||
== Usage == | |||
<pre> | |||
{{Infobox | |||
| title = Eryndor | |||
| image = Eryndor_map.png | |||
| imgcap = Map of Eryndor | |||
| label1 = World | value1 = [[Eclaryn]] | |||
| label2 = Type | value2 = Continent | |||
| label3 = Regions | value3 = 6 major, 3 minor | |||
}} | |||
</pre> | |||
Supports up to 12 label/value rows. The image and imgcap fields are optional. | |||
</noinclude> | |||
Version vom 4. April 2026, 12:36 Uhr
| Infobox |
|---|
Usage
{{Infobox
| title = Eryndor
| image = Eryndor_map.png
| imgcap = Map of Eryndor
| label1 = World | value1 = [[Eclaryn]]
| label2 = Type | value2 = Continent
| label3 = Regions | value3 = 6 major, 3 minor
}}
Supports up to 12 label/value rows. The image and imgcap fields are optional.