模板:Multiple image
出自【暗黑百科】DiabloWiki_凯恩之角
(修订版本间的差异)
Chendy1985 (讨论 | 贡献) 小 |
Chendy1985 (讨论 | 贡献) |
||
第1行: | 第1行: | ||
{{#if:{{{image1|}}}{{{image2|}}}{{{image3|}}}{{{image4|}}}{{{image5|}}}{{{image6|}}}{{{image7|}}}{{{image8|}}}{{{image9|}}}{{{image10|}}}|<div class="thumb | {{#if:{{{image1|}}}{{{image2|}}}{{{image3|}}}{{{image4|}}}{{{image5|}}}{{{image6|}}}{{{image7|}}}{{{image8|}}}{{{image9|}}}{{{image10|}}}|<div class="thumb | ||
- | {{#switch: {{{align|}}} | left = tleft | center|centre|none = tnone | right|#default = tright}}" style="width: {{#switch:{{{direction|}}}<!-- | + | {{#switch: {{{align|}}} | left = tleft | center|centre|none = tnone | right|#default = tright}}" style="width: {{#switch:{{{direction|}}} |
- | If stacked vertically, box width = largest width + 12 px (6 px margin on left and right) --> | + | <!-- If stacked vertically, box width = largest width + 12 px (6 px margin on left and right) --> |
| vertical = {{#expr: | | vertical = {{#expr: | ||
{{#if:{{{width|}}} | {{#if:{{{width|}}} | ||
| {{{width}}} | | {{{width}}} | ||
- | | {{Max/27 | {{{width1|}}} | {{{width2|}}} | {{{width3|}}} | {{{width4|}}} | {{{width5|}}} | {{{width6|}}} | {{{width7|}}} | | + | | {{Max/27 | {{{width1|}}} | {{{width2|}}} | {{{width3|}}} | {{{width4|}}} | {{{width5|}}} | {{{width6|}}} | {{{width7|}}} | {{{width8|}}} | {{{width9|}}} | {{{width10|}}} }} |
- | {{{width8|}}} | {{{width9|}}} | {{{width10|}}} }} | + | |
}} | }} | ||
+ 12 | + 12 | ||
第17行: | 第16行: | ||
({{{width}}}+4) | ({{{width}}}+4) | ||
* | * | ||
- | {{Template: | + | {{Template:Image number | {{{image1|}}} | {{{image2|}}} | {{{image3|}}} | {{{image4|}}} | {{{image5|}}} | {{{image6|}}} | |
{{{image7|}}} | {{{image8|}}} | {{{image9|}}} | {{{image10|}}} }} | {{{image7|}}} | {{{image8|}}} | {{{image9|}}} | {{{image10|}}} }} | ||
+ | + | ||
第26行: | 第25行: | ||
of the box) (why not 6px as in other cases?...)--> | of the box) (why not 6px as in other cases?...)--> | ||
|{{#expr: | |{{#expr: | ||
- | {{{width1|0}}}+{{{width2|0}}}+{{{width3|0}}}+{{{width4|0}}}+{{{width5|0}}}+{{{width6|0}}}+{{{width7|0}}}+{{{width8| | + | {{{width1|0}}}+{{{width2|0}}}+{{{width3|0}}}+{{{width4|0}}}+{{{width5|0}}}+{{{width6|0}}}+{{{width7|0}}}+{{{width8|0}}}+{{{width9|0}}}+{{{width10|0}}} |
- | 0}}}+{{{width9|0}}}+{{{width10|0}}} | + | |
+ | + | ||
- | 4 * ({{Template: | + | 4 * ({{Template:Image number | {{{image1|}}} | {{{image2|}}} | {{{image3|}}} | {{{image4|}}} | {{{image5|}}} | {{{image6|}}} | {{{image7|}}} | {{{image8|}}} | {{{image9|}}} | {{{image10|}}} }} - 2) |
- | {{{image6|}}} | {{{image7|}}} | {{{image8|}}} | {{{image9|}}} | {{{image10|}}} }} - 2) | + | |
+ | + | ||
16 | 16 |