Template:Infobox block: Difference between revisions

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.
Wow, how is the template still functioning at all with all these extra brackets in?
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}}]]<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: {{{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}}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png}}]]</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}}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage3}}} }}.png}}]]</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}}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage4}}} }}.png}}]]</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}}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage5}}} }}.png}}]]</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}}]]<span style="position:absolute; left: 2px; top: -7px">[[File:Grid {{ucfirst: {{{invimage6}}} }}.png}}]]</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 =