模板:Infobox:修订间差异

来自迷你世界维基
无编辑摘要
无编辑摘要
 
(未显示同一用户的12个中间版本)
第1行: 第1行:
{| class="modern-infobox infobox"
{| class="infobox" style="font-size: 16px; float: {{{float|right}}}; background-color: #f8f9fa; width: auto; max-width: 320px; color: #212529; border-radius: 12px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); border-spacing: 0; overflow: hidden;"
|-
|-
! colspan="2" class="modern-infobox-header" | {{{Box title|No Title}}}
! colspan="2" style="background: linear-gradient(135deg, #6f42c1, #4a148c); color: white; font-size: 1.25em; padding: 1em; text-align: center; border: none;" | {{{Box title|No Title}}}
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
{{!}}-
{{!}}-
{{!}} colspan="2" class="modern-infobox-image" {{!}} [[File:{{{image}}}|{{{imagewidth|250}}}px]]
{{!}} colspan="2" style="text-align:center; padding: 15px; background-color: #ffffff;" {{!}} [[File:{{{image}}}|{{{imagewidth|280}}}px]]<br/><span style="color: #6c757d; font-size: 0.9em;">{{{caption| }}}</span>
{{#if: {{{caption|}}}|
|
{{!}}<div class="modern-infobox-caption">{{{caption}}}</div>
}}
}}
}}
<!-- Row 1 (Always displayed) -->
|-
|-
| class="modern-infobox-label" | '''{{{Row 1 title|No Title}}}'''
| style="width:35%; padding: 12px 15px; border-bottom: 1px solid #dee2e6; font-weight: bold;" |
| class="modern-infobox-data" | {{{Row 1 info|No information}}}
'''{{{Row 1 title|No Title}}}'''
 
| style="width:65%; padding: 12px 15px; border-bottom: 1px solid #dee2e6;" |
<!-- Conditional Rows Below -->
{{{Row 1 info|No information}}}
{{#if: {{{Row 2 title|}}}|
{{#if: {{{Row 2 title|}}}|
  {{!}}-
{{!}}-
  {{!}} class="modern-infobox-label" {{!}} '''{{{Row 2 title}}}'''
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6; font-weight: bold;" {{!}}
  {{!}} class="modern-infobox-data" {{!}} {{{Row 2 info|No information}}}
'''{{{Row 2 title}}}'''
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6;" {{!}}
{{{Row 2 info|No information}}}
{{#if: {{{Row 3 title|}}}|
{{!}}-
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6; font-weight: bold;" {{!}}
'''{{{Row 3 title}}}'''
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6;" {{!}}
{{{Row 3 info|No information}}}
{{#if: {{{Row 4 title|}}}|
{{!}}-
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6; font-weight: bold;" {{!}}
'''{{{Row 4 title}}}'''
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6;" {{!}}
{{{Row 4 info|No information}}}
{{#if: {{{Row 5 title|}}}|
{{!}}-
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6; font-weight: bold;" {{!}}
'''{{{Row 5 title}}}'''
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6;" {{!}}
{{{Row 5 info|No information}}}
{{#if: {{{Row 6 title|}}}|
{{!}}-
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6; font-weight: bold;" {{!}}
'''{{{Row 6 title}}}'''
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6;" {{!}}
{{{Row 6 info|No information}}}
{{#if: {{{Row 7 title|}}}|
{{!}}-
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6; font-weight: bold;" {{!}}
'''{{{Row 7 title}}}'''
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6;" {{!}}
{{{Row 7 info|No information}}}
{{#if: {{{Row 8 title|}}}|
{{!}}-
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6; font-weight: bold;" {{!}}
'''{{{Row 8 title}}}'''
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6;" {{!}}
{{{Row 8 info|No information}}}
{{#if: {{{Row 9 title|}}}|
{{!}}-
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6; font-weight: bold;" {{!}}
'''{{{Row 9 title}}}'''
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6;" {{!}}
{{{Row 9 info|No information}}}
{{#if: {{{Row 10 title|}}}|
{{!}}-
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6; font-weight: bold;" {{!}}
'''{{{Row 10 title}}}'''
{{!}} style="padding: 12px 15px; border-bottom: 1px solid #dee2e6;" {{!}}
{{{Row 10 info|No information}}}
{{#if: {{{Row 11 title|}}}|
{{!}}-
{{!}} colspan="2" style="text-align:center; background:#e9ecef; color: #dc3545; padding: 10px; font-weight: bold;" {{!}}
'''Too many parameters'''
|
}}
}}
{{#if: {{{Row 3 title|}}}|
|
  {{!}}-
  {{!}} class="modern-infobox-label" {{!}} '''{{{Row 3 title}}}'''
  {{!}} class="modern-infobox-data" {{!}} {{{Row 3 info|No information}}}
}}
}}
{{#if: {{{Row 4 title|}}}|
|
  {{!}}-
  {{!}} class="modern-infobox-label" {{!}} '''{{{Row 4 title}}}'''
  {{!}} class="modern-infobox-data" {{!}} {{{Row 4 info|No information}}}
}}
}}
{{#if: {{{Row 5 title|}}}|
|
  {{!}}-
  {{!}} class="modern-infobox-label" {{!}} '''{{{Row 5 title}}}'''
  {{!}} class="modern-infobox-data" {{!}} {{{Row 5 info|No information}}}
}}
}}
{{#if: {{{Row 6 title|}}}|
|
  {{!}}-
  {{!}} class="modern-infobox-label" {{!}} '''{{{Row 6 title}}}'''
  {{!}} class="modern-infobox-data" {{!}} {{{Row 6 info|No information}}}
}}
}}
{{#if: {{{Row 7 title|}}}|
|
  {{!}}-
  {{!}} class="modern-infobox-label" {{!}} '''{{{Row 7 title}}}'''
  {{!}} class="modern-infobox-data" {{!}} {{{Row 7 info|No information}}}
}}
}}
{{#if: {{{Row 8 title|}}}|
|
  {{!}}-
  {{!}} class="modern-infobox-label" {{!}} '''{{{Row 8 title}}}'''
  {{!}} class="modern-infobox-data" {{!}} {{{Row 8 info|No information}}}
}}
}}
{{#if: {{{Row 9 title|}}}|
|
  {{!}}-
  {{!}} class="modern-infobox-label" {{!}} '''{{{Row 9 title}}}'''
  {{!}} class="modern-infobox-data" {{!}} {{{Row 9 info|No information}}}
}}
}}
{{#if: {{{Row 10 title|}}}|
|
  {{!}}-
  {{!}} class="modern-infobox-label" {{!}} '''{{{Row 10 title}}}'''
  {{!}} class="modern-infob ox-data" {{!}} {{{Row 10 info|No information}}}
}}
}}
 
|
<!-- Too many parameters warning -->
{{#if: {{{Row 11 title|}}}|
  {{!}}-
  {{!}} colspan="2" class="modern-infobox-footer" {{!}} '''参数过多'''
}}
}}
|}
|}

2025年10月2日 (四) 14:25的最新版本

No Title

No Title

No information