Template:Infobox block: Difference between revisions
No edit summary |
Add animation. |
||
| Line 1: | Line 1: | ||
<includeonly>{{infobox common | <includeonly>{{infobox common | ||
| title = {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | | title = {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | ||
| imagearea = [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | No block image.png}} }}|{{#ifeq: {{NAMESPACE}} | {{ns:10}} || link=File:{{#if: {{{image|}}} | {{{image}}} | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png }} }}|150px|center]]{{ | | imagearea = {{#if: {{#pos: {{{image}}} | ; }} | <div class="animated"><!-- Animated, up to 16 frames | ||
--><div class="active">[[File:{{#explode: {{{image}}} | ; }}|150px|center]]</div><!-- 1st frame | |||
-->[[File:{{#explode: {{{image}}} | ; | 1 }}|150px|center]]<!-- 2nd frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 2 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 2 }}|150px|center]] }}<!-- 3rd frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 3 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 3 }}|150px|center]] }}<!-- 4th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 4 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 4 }}|150px|center]] }}<!-- 5th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 5 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 5 }}|150px|center]] }}<!-- 6th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 6 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 6 }}|150px|center]] }}<!-- 7th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 7 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 7 }}|150px|center]] }}<!-- 8th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 8 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 8 }}|150px|center]] }}<!-- 9th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 9 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 9 }}|150px|center]] }}<!-- 10th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 10 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 10 }}|150px|center]] }}<!-- 11th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 11 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 11 }}|150px|center]] }}<!-- 12th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 12 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 12 }}|150px|center]] }}<!-- 13th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 13 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 13 }}|150px|center]] }}<!-- 14th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 14 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 14 }}|150px|center]] }}<!-- 15th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 15 }} |<!-- | |||
-->[[File:{{#explode: {{{image}}} | ; | 15 }}|150px|center]] }}<!-- 16th frame | |||
-->{{#if: {{#explode: {{{image}}} | ; | 16 }} | [[Category:Too many frames]] }}<!-- More frames than supported | |||
--></div><!-- | |||
-->| [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | No block image.png}} }}|{{#ifeq: {{NAMESPACE}} | {{ns:10}} || link=File:{{#if: {{{image|}}} | {{{image}}} | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png }} }}|150px|center]] }}<!-- Not animated | |||
-->{{#if: {{{image2|}}} | {{#if: {{#pos: {{{image2}}} | ; }} | <div class="animated" style="padding-top: 1em"><!-- Animated, up to 16 frames | |||
--><div class="active">[[File:{{#explode: {{{image2}}} | ; }}|150px|center]]</div><!-- 1st frame | |||
-->[[File:{{#explode: {{{image2}}} | ; | 1 }}|150px|center]]<!-- 2nd frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 2 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 2 }}|150px|center]] }}<!-- 3rd frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 3 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 3 }}|150px|center]] }}<!-- 4th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 4 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 4 }}|150px|center]] }}<!-- 5th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 5 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 5 }}|150px|center]] }}<!-- 6th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 6 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 6 }}|150px|center]] }}<!-- 7th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 7 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 7 }}|150px|center]] }}<!-- 8th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 8 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 8 }}|150px|center]] }}<!-- 9th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 9 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 9 }}|150px|center]] }}<!-- 10th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 10 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 10 }}|150px|center]] }}<!-- 11th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 11 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 11 }}|150px|center]] }}<!-- 12th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 12 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 12 }}|150px|center]] }}<!-- 13th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 13 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 13 }}|150px|center]] }}<!-- 14th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 14 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 14 }}|150px|center]] }}<!-- 15th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 15 }} |<!-- | |||
-->[[File:{{#explode: {{{image2}}} | ; | 15 }}|150px|center]] }}<!-- 16th frame | |||
-->{{#if: {{#explode: {{{image2}}} | ; | 16 }} | [[Category:Too many frames]] }}<!-- More frames than supported | |||
--></div><!-- | |||
-->| <div style="padding-top: 1em">[[File:{{{image2}}}|150px|center]]</div> }} | |||
}}{{ | }}{{ | ||
#if: {{{image3|}}} | {{#if: {{#pos: {{{image3}}} | ; }} | <div class="animated" style="padding-top: 1em"><!-- Animated, up to 16 frames | |||
--><div class="active">[[File:{{#explode: {{{image3}}} | ; }}|150px|center]]</div><!-- 1st frame | |||
-->[[File:{{#explode: {{{image3}}} | ; | 1 }}|150px|center]]<!-- 2nd frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 2 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 2 }}|150px|center]] }}<!-- 3rd frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 3 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 3 }}|150px|center]] }}<!-- 4th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 4 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 4 }}|150px|center]] }}<!-- 5th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 5 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 5 }}|150px|center]] }}<!-- 6th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 6 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 6 }}|150px|center]] }}<!-- 7th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 7 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 7 }}|150px|center]] }}<!-- 8th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 8 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 8 }}|150px|center]] }}<!-- 9th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 9 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 9 }}|150px|center]] }}<!-- 10th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 10 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 10 }}|150px|center]] }}<!-- 11th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 11 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 11 }}|150px|center]] }}<!-- 12th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 12 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 12 }}|150px|center]] }}<!-- 13th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 13 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 13 }}|150px|center]] }}<!-- 14th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 14 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 14 }}|150px|center]] }}<!-- 15th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 15 }} |<!-- | |||
-->[[File:{{#explode: {{{image3}}} | ; | 15 }}|150px|center]] }}<!-- 16th frame | |||
-->{{#if: {{#explode: {{{image3}}} | ; | 16 }} | [[Category:Too many frames]] }}<!-- More frames than supported | |||
--></div><!-- | |||
-->| <div style="padding-top: 1em">[[File:{{{image3}}}|150px|center]]</div> }} | |||
}}{{ | }}{{ | ||
#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto">{{Grid2|{{{invimage}}}|link=none}} | {{#ifexist: File:Grid {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | <div style="padding-top: 1em; margin: 0 auto">{{Grid2|{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}|link=none}} }} }} | #ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto">{{Grid2|{{{invimage}}}|link=none}} | {{#ifexist: File:Grid {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | <div style="padding-top: 1em; margin: 0 auto">{{Grid2|{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}|link=none}} }} }} | ||