|
|
| 第1行: |
第1行: |
| <div class="infoTop {{{class|}}}" style="max-width:{{{width|100%}}};border-left:10px solid {{{color|#36c}}};background:{{{backgroundColor|#f8f9fa}}};padding:10px 12px;margin:8px 0;"> | | <div class="info-box-stack {{{class|}}}" |
| <div class="infoTopContent" style="display:flex;align-items:center; background-color:{{{backgroundColor|#f8f9fa}}}; border-style: none;"> | | style="max-width:{{{width|}}}; border-left-color:{{{color|}}}; background-color:{{{backgroundColor|}}}; {{{style|}}}"> |
| | |
| | <div class="info-content"> |
| | <div style="margin-right:10px; line-height:0; max-width:50px;"> |
| | {{#if:{{{leftimage|{{{图片|}}}}}}|{{{leftimage|{{{图片}}}}}}|[[File:Icon-info.png|{{#if:{{{smallimage|}}}|25px|40px}}]]}} |
| | </div> |
|
| |
|
| <!-- 左侧图标 -->
| | <div style="flex:1; min-width:0;"> |
| <div class="infoTopIcon" style="margin-right:10px;line-height:0;max-width:50px;{{{icon-style|}}}"> | | {{#if:{{{title|{{{标题|}}}}}}| |
| {{#if:{{{leftimage|{{{图片|}}}}}}|{{{leftimage|{{{图片}}}}}}|[[File:Icon-info.png|{{#if:{{{smallimage|}}}|25px|40px}}|link={{{link|}}}]]}} | | <div style="font-weight:bold; margin-bottom:4px;">{{{title|{{{标题}}}}}}</div> |
| | }} |
| | <div style="line-height:1.45;"> |
| | {{{text|{{{content|{{{1|{{{内容|'''提示内容'''}}}}}}}}}}}} |
| | </div> |
| | </div> |
| | </div> |
| </div> | | </div> |
|
| |
| <!-- 右侧内容 -->
| |
| <div class="infoTopContentWrapper" style="flex:1;min-width:0;">
| |
|
| |
| <!-- 标题 -->
| |
| {{#if:{{{title|{{{标题|}}}}}}|
| |
| <div class="infoTopTitle" style="font-weight:bold;margin-bottom:4px;{{{title-style|text-align:left;}}}">
| |
| {{{title|{{{标题}}}}}}
| |
| </div>
| |
| }}
| |
|
| |
| <!-- 正文 -->
| |
| <div class="infoTopText" style="line-height:1.45;{{{text-style|}}}{{{content-style|}}}">
| |
| {{#vardefine:infotext|{{{text|{{{content|{{{1|{{{内容|'''警告!你还没有添加任何内容'''}}}}}}}}}}}}}}
| |
| {{#var:infotext}}
| |
| </div>
| |
|
| |
| <!-- 底部附加文字 -->
| |
| {{#if:{{{below|}}}|
| |
| <div class="infoTopBelow" style="margin-top:4px;font-size:85%;opacity:0.85;{{{below-style|}}}">
| |
| {{{below}}}
| |
| </div>
| |
| }}
| |
|
| |
| </div>
| |
| </div>
| |
| </div>
| |
|
| |
| <noinclude>{{Documentation}}[[分类:元模板]]</noinclude>
| |