Template:Infobox block: Difference between revisions

m Well, it might have been /partially/ my fault... 1% at the most!
No edit summary
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:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | No block image.png{{!}}link=File:{{BASEPAGENAME}}.png}} }}|150px|center]]{{
| imagearea = [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | No block image.png}} }}|link=File:{{#if: {{{image|}}} | {{{image}}} | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png }}|150px|center]]{{
   #if: {{{image2|}}} | <div style="padding-top: 1em">[[File:{{{image2}}}|150px|center]]</div>
   #if: {{{image2|}}} | <div style="padding-top: 1em">[[File:{{{image2}}}|150px|center]]</div>
}}{{
}}{{
   #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">{{Grid|{{{invimage}}}}} | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto">{{Grid|{{BASEPAGENAME}}}} }} }}
   #ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto">{{Grid|{{{invimage}}}}} | {{#ifexist: File:Grid {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | <div style="padding-top: 1em; margin: 0 auto">{{Grid|{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}}} }} }}
   }}{{
   }}{{
   #if: {{{invimage2|}}} | {{Grid|{{{invimage2}}}}}
   #if: {{{invimage2|}}} | {{Grid|{{{invimage2}}}}}
Line 17: Line 17:
   }}{{
   }}{{
   #if: {{{invimage6|}}} | {{Grid|{{{invimage6}}}}}
   #if: {{{invimage6|}}} | {{Grid|{{{invimage6}}}}}
   }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div> }} }} }}
   }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | </div> }} }} }}
| rows =
| rows =
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }}
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }}
Line 79: Line 79:
| footer =
| footer =
{{{notes|}}}
{{{notes|}}}
}}{{#if:{{NAMESPACE}}||[[Category:Blocks]]}}</includeonly><noinclude>
}}{{#if:{{NAMESPACE}}||[[Category:Blocks]]}}{{#if: {{{title|}}} | [[Category:Uses title]]}}</includeonly><noinclude>
{{/doc}}
{{/doc}}
[[Category:Infobox templates|B]][[fr:Modèle:Bloc]]
[[Category:Infobox templates|B]][[fr:Modèle:Bloc]]
</noinclude>
</noinclude>