Template:Infobox block: Difference between revisions

Naughty bracket!
Linking to the page it's on is really unnessary, since the template will always be included on the page the link would be to (or redirect to), so linking to the image's location is far better.
Line 6: Line 6:
   #if: {{{image3|}}} | <div style="padding-top: 1em">[[File:{{{image3}}}|150px|center]]</div>
   #if: {{{image3|}}} | <div style="padding-top: 1em">[[File:{{{image3}}}|150px|center]]</div>
}}{{
}}{{
   #ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto"><span style="position: relative">[[File:Grid layout None (small).png|link={{ucfirst: {{{invimage}}} }}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage}}} }}.png|link={{ucfirst: {{{invimage}}} }}]]</span></span> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto"><span style="position: relative">[[File:Grid layout None (small).png|link={{ucfirst: {{BASEPAGENAME}} }}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{BASEPAGENAME}} }}.png|link={{ucfirst: {{BASEPAGENAME}} }}]]</span></span> }} }}
   #ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto"><span style="position: relative">[[File:Grid layout None (small).png}}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage}}} }}.png}}]]</span></span> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto"><span style="position: relative">[[File:Grid layout None (small).png}}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{BASEPAGENAME}} }}.png}}]]</span></span> }} }}
   }}{{
   }}{{
   #ifeq: {{lc: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | <span style="position: relative">[[File:Grid layout None (small).png|link={{ucfirst: {{{invimage2}}} }}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png|link={{ucfirst: {{{invimage2}}} }}]]</span></span> }}
   #ifeq: {{lc: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | <span style="position: relative">[[File:Grid layout None (small).png}}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png}}]]</span></span> }}
   }}{{
   }}{{
   #ifeq: {{lc: {{{invimage3}}} }} | none | | {{#if: {{{invimage3|}}} | <span style="position: relative">[[File:Grid layout None (small).png|link={{ucfirst: {{{invimage3}}} }}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage3}}} }}.png|link={{ucfirst: {{{invimage3}}} }}]]</span></span> }}
   #ifeq: {{lc: {{{invimage3}}} }} | none | | {{#if: {{{invimage3|}}} | <span style="position: relative">[[File:Grid layout None (small).png}}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage3}}} }}.png}}]]</span></span> }}
   }}{{
   }}{{
   #ifeq: {{lc: {{{invimage4}}} }} | none | | {{#if: {{{invimage4|}}} | <span style="position: relative">[[File:Grid layout None (small).png|link={{ucfirst: {{{invimage4}}} }}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage4}}} }}.png|link={{ucfirst: {{{invimage4}}} }}]]</span></span> }}
   #ifeq: {{lc: {{{invimage4}}} }} | none | | {{#if: {{{invimage4|}}} | <span style="position: relative">[[File:Grid layout None (small).png}}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage4}}} }}.png}}]]</span></span> }}
   }}{{
   }}{{
   #ifeq: {{lc: {{{invimage5}}} }} | none | | {{#if: {{{invimage5|}}} | <span style="position: relative">[[File:Grid layout None (small).png|link={{ucfirst: {{{invimage5}}} }}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage5}}} }}.png|link={{ucfirst: {{{invimage5}}} }}]]</span></span> }}
   #ifeq: {{lc: {{{invimage5}}} }} | none | | {{#if: {{{invimage5|}}} | <span style="position: relative">[[File:Grid layout None (small).png}}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage5}}} }}.png}}]]</span></span> }}
   }}{{
   }}{{
   #ifeq: {{lc: {{{invimage6}}} }} | none | | {{#if: {{{invimage6|}}} | <span style="position: relative">[[File:Grid layout None (small).png|link={{ucfirst: {{{invimage6}}} }}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage6}}} }}.png|link={{ucfirst: {{{invimage6}}} }}]]</span></span> }}
   #ifeq: {{lc: {{{invimage6}}} }} | none | | {{#if: {{{invimage6|}}} | <span style="position: relative">[[File:Grid layout None (small).png}}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage6}}} }}.png}}]]</span></span> }}
   }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div> }} }} }}
   }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div> }} }} }}
| rows =
| rows =