Difference between revisions of "Template:Infobox"

From Morloch Wiki
Jump to: navigation, search
 
Line 1: Line 1:
<div style="background: #ffffff; border: 1px solid #eaeaea; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.05); width: 100%; max-width: 300px; font-size: 90%; margin-bottom: 15px; font-family: sans-serif;">
+
{| class="infobox" style="font-size:89%; width:300px;"
   
+
|-
    <div style="background: linear-gradient(135deg, #4a4a4a 0%, #2b2b2b 100%); color: #ffffff; font-weight: bold; text-align: center; padding: 12px; font-size: 1.1em; border-bottom: 2px solid #333;">
+
! class="color1" colspan="2" style="font-size:120%; padding:1em;" | {{{Box title|No Title}}}
        {{{Box title|No Title}}}
+
{{#if: {{{image|}}}|
    </div>
+
{{!}}-
 
+
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{PAGENAME:{{{image}}}}}|{{{imagewidth|250}}}px|link={{{imglink|}}}]]
    {{#if: {{{image|}}} |
+
|
    <div style="text-align: center; padding: 15px; background-color: #fcfcfc; border-bottom: 1px solid #eaeaea;">
+
}}
        [[File:{{PAGENAME:{{{image}}}}}|{{{imagewidth|250}}}px|link={{{imglink|}}}]]
+
|-
    </div>
+
| style="width:30%;" |
    }}
+
'''{{{Row 1 title|No Title}}}'''
 
+
| style="width:70%;" |
    <div style="display: flex; border-bottom: 1px solid #f0f0f0; align-items: stretch;">
+
{{{Row 1 info|No information}}}
        <div style="flex: 1; background-color: #f8f9fa; padding: 10px 12px; font-weight: bold; color: #555; border-right: 1px solid #f0f0f0; display: flex; align-items: center;">{{{Row 1 title|No Title}}}</div>
+
{{#if: {{{Row 2 title|}}}|
        <div style="flex: 2; padding: 10px 12px; line-height: 1.4; display: flex; align-items: center;">{{{Row 1 info|No information}}}</div>
+
{{!}}-
    </div>
+
{{!}}
 
+
'''{{{Row 2 title}}}'''
    {{#if: {{{Row 2 title|}}} |
+
{{!}}
    <div style="display: flex; border-bottom: 1px solid #f0f0f0; align-items: stretch;">
+
{{{Row 2 info|No information}}}
        <div style="flex: 1; background-color: #f8f9fa; padding: 10px 12px; font-weight: bold; color: #555; border-right: 1px solid #f0f0f0; display: flex; align-items: center;">{{{Row 2 title}}}</div>
+
{{#if: {{{Row 3 title|}}}|
        <div style="flex: 2; padding: 10px 12px; line-height: 1.4; display: flex; align-items: center;">{{{Row 2 info|No information}}}</div>
+
{{!}}-
    </div>
+
{{!}}
    }}
+
'''{{{Row 3 title}}}'''
 
+
{{!}}
    {{#if: {{{Row 3 title|}}} |
+
{{{Row 3 info|No information}}}
    <div style="display: flex; border-bottom: 1px solid #f0f0f0; align-items: stretch;">
+
{{#if: {{{Row 4 title|}}}|
        <div style="flex: 1; background-color: #f8f9fa; padding: 10px 12px; font-weight: bold; color: #555; border-right: 1px solid #f0f0f0; display: flex; align-items: center;">{{{Row 3 title}}}</div>
+
{{!}}-
        <div style="flex: 2; padding: 10px 12px; line-height: 1.4; display: flex; align-items: center;">{{{Row 3 info|No information}}}</div>
+
{{!}}
    </div>
+
'''{{{Row 4 title}}}'''
    }}
+
{{!}}
 
+
{{{Row 4 info|No information}}}
    {{#if: {{{Row 4 title|}}} |
+
{{#if: {{{Row 5 title|}}}|
    <div style="display: flex; border-bottom: 1px solid #f0f0f0; align-items: stretch;">
+
{{!}}-
        <div style="flex: 1; background-color: #f8f9fa; padding: 10px 12px; font-weight: bold; color: #555; border-right: 1px solid #f0f0f0; display: flex; align-items: center;">{{{Row 4 title}}}</div>
+
{{!}}
        <div style="flex: 2; padding: 10px 12px; line-height: 1.4; display: flex; align-items: center;">{{{Row 4 info|No information}}}</div>
+
'''{{{Row 5 title}}}'''
    </div>
+
{{!}}
    }}
+
{{{Row 5 info|No information}}}
 
+
{{#if: {{{Row 6 title|}}}|
    {{#if: {{{Row 5 title|}}} |
+
{{!}}-
    <div style="display: flex; border-bottom: 1px solid #f0f0f0; align-items: stretch;">
+
{{!}}
        <div style="flex: 1; background-color: #f8f9fa; padding: 10px 12px; font-weight: bold; color: #555; border-right: 1px solid #f0f0f0; display: flex; align-items: center;">{{{Row 5 title}}}</div>
+
'''{{{Row 6 title}}}'''
        <div style="flex: 2; padding: 10px 12px; line-height: 1.4; display: flex; align-items: center;">{{{Row 5 info|No information}}}</div>
+
{{!}}
    </div>
+
{{{Row 6 info|No information}}}
    }}
+
{{#if: {{{Row 7 title|}}}|
 
+
{{!}}-
    {{#if: {{{Row 6 title|}}} |
+
{{!}}
    <div style="display: flex; border-bottom: 1px solid #f0f0f0; align-items: stretch;">
+
'''{{{Row 7 title}}}'''
        <div style="flex: 1; background-color: #f8f9fa; padding: 10px 12px; font-weight: bold; color: #555; border-right: 1px solid #f0f0f0; display: flex; align-items: center;">{{{Row 6 title}}}</div>
+
{{!}}
        <div style="flex: 2; padding: 10px 12px; line-height: 1.4; display: flex; align-items: center;">{{{Row 6 info|No information}}}</div>
+
{{{Row 7 info|No information}}}
    </div>
+
{{#if: {{{Row 8 title|}}}|
    }}
+
{{!}}-
 
+
{{!}}
    {{#if: {{{Row 7 title|}}} |
+
'''{{{Row 8 title}}}'''
    <div style="display: flex; border-bottom: 1px solid #f0f0f0; align-items: stretch;">
+
{{!}}
        <div style="flex: 1; background-color: #f8f9fa; padding: 10px 12px; font-weight: bold; color: #555; border-right: 1px solid #f0f0f0; display: flex; align-items: center;">{{{Row 7 title}}}</div>
+
{{{Row 8 info|No information}}}
        <div style="flex: 2; padding: 10px 12px; line-height: 1.4; display: flex; align-items: center;">{{{Row 7 info|No information}}}</div>
+
{{#if: {{{Row 9 title|}}}|
    </div>
+
{{!}}-
    }}
+
{{!}}
 
+
'''{{{Row 9 title}}}'''
    {{#if: {{{Row 8 title|}}} |
+
{{!}}
    <div style="display: flex; border-bottom: 1px solid #f0f0f0; align-items: stretch;">
+
{{{Row 9 info|No information}}}
        <div style="flex: 1; background-color: #f8f9fa; padding: 10px 12px; font-weight: bold; color: #555; border-right: 1px solid #f0f0f0; display: flex; align-items: center;">{{{Row 8 title}}}</div>
+
{{#if: {{{Row 10 title|}}}|
        <div style="flex: 2; padding: 10px 12px; line-height: 1.4; display: flex; align-items: center;">{{{Row 8 info|No information}}}</div>
+
{{!}}-
    </div>
+
{{!}}
    }}
+
'''{{{Row 10 title}}}'''
 
+
{{!}}
    {{#if: {{{Row 9 title|}}} |
+
{{{Row 10 info|No information}}}
    <div style="display: flex; border-bottom: 1px solid #f0f0f0; align-items: stretch;">
+
{{#if: {{{Row 11 title|}}}|
        <div style="flex: 1; background-color: #f8f9fa; padding: 10px 12px; font-weight: bold; color: #555; border-right: 1px solid #f0f0f0; display: flex; align-items: center;">{{{Row 9 title}}}</div>
+
{{!}}-
        <div style="flex: 2; padding: 10px 12px; line-height: 1.4; display: flex; align-items: center;">{{{Row 9 info|No information}}}</div>
+
{{!}} colspan="2" style="text-align:center; background:#AAAAAA;" {{!}}
    </div>
+
'''Too many parameters'''
    }}
+
|
 
+
}}
    {{#if: {{{Row 10 title|}}} |
+
|
    <div style="display: flex; align-items: stretch;">
+
}}
        <div style="flex: 1; background-color: #f8f9fa; padding: 10px 12px; font-weight: bold; color: #555; border-right: 1px solid #f0f0f0; display: flex; align-items: center;">{{{Row 10 title}}}</div>
+
|
        <div style="flex: 2; padding: 10px 12px; line-height: 1.4; display: flex; align-items: center;">{{{Row 10 info|No information}}}</div>
+
}}
    </div>
+
|
    }}
+
}}
 
+
|
    {{#if: {{{Row 11 title|}}} |
+
}}
    <div style="background: #fee2e2; color: #991b1b; text-align: center; padding: 12px; font-weight: bold; border-top: 2px solid #ef4444;">
+
|
        Too many parameters
+
}}
    </div>
+
|
    }}
+
}}
 
+
|
</div>
+
}}
 +
|
 +
}}
 +
|
 +
}}
 +
|}

Latest revision as of 15:42, 1 March 2026

No Title

No Title

No information