Template:Infobox: Difference between revisions

add newline
Trying to implement an modular infobox
Tag: Replaced
 
(86 intermediate revisions by 25 users not shown)
Line 1: Line 1:
{| class="infobox bordered" style="width: 25em; text-align: left; font-size: 90%;"
<includeonly>{{infobox start|{{{class|}}}}}
|-
{{infobox header
| colspan="2" style="text-align:center; font-size: large;" | '''{{{name}}}'''
| name = {{{name|{{PAGENAME}}}}}
|-
| wideimage = {{{image|{{{name|{{PAGENAME}}}}}.png}}}
| colspan="2" style="text-align:center;" | [[Image:{{{image}}}|300px| ]]<br>{{{caption}}}
| description = {{{description|}}}
|-
}}
! Data 1:
| {{{data1}}}
|-
! Data 2:
| {{{data2|''this text displayed if data2 not defined''}}}
|-
! Data 3 (data hidden if data3 empty or not defined):
| {{{data3|}}}
|-
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
|}
<noinclude>
<!-- TO MAKE A NEW TEMPLATE: copy the source up to, but not including, the "noinclude" line into a new page. -->


<br style="clear:both" />
{{infobox section|{{#if:{{{section1|}}}|{{{section1}}}|Infos}}}}
== Usage ==
{{infobox row|{{{info1|}}}|{{{info1value|}}}|{{{info1value|}}}}}
Copy the source of this template (available from the '''view source''' link) and
{{infobox section|{{{section2}}}|{{{section2|}}}}}
paste it into a new blank page.  Only the part up to, but not including, the tag
{{infobox row|{{{info2|}}}|{{{info2value|}}}|{{{info2value|}}}}}
<code>&lt;noinclude></code> is necessary.
{{infobox section|{{{section3}}}|{{{section3|}}}}}
 
{{infobox row|{{{info3|}}}|{{{info3value|}}}|{{{info3value|}}}}}
==See also==
{{infobox section|{{{section4}}}|{{{section4|}}}}}
*[[Wikipedia:Infobox]]
{{infobox row|{{{info4|}}}|{{{info4value|}}}|{{{info4value|}}}}}
 
{{infobox section|{{{section5}}}|{{{section5|}}}}}
[[Category:infobox templates| ]]
{{infobox row|{{{info5|}}}|{{{info5value|}}}|{{{info5value|}}}}}
[[ar:قالب:قالب معلومات]]
{{infobox section|{{{section6}}}|{{{section6|}}}}}
[[fa:الگو:دادان]]
{{infobox row|{{{info6|}}}|{{{info6value|}}}|{{{info6value|}}}}}
[[fr:Modèle:Infobox]]
{{infobox section|{{{section7}}}|{{{section7|}}}}}
[[zh:Template:Infobox]]
{{infobox row|{{{info7|}}}|{{{info7value|}}}|{{{info7value|}}}}}
[[ia:Patrono:Infobox]]
{{infobox section|{{{section8}}}|{{{section8|}}}}}
</noinclude>
{{infobox row|{{{info8|}}}|{{{info8value|}}}|{{{info8value|}}}}}
{{infobox section|{{{section9}}}|{{{section9|}}}}}
{{infobox row|{{{info9|}}}|{{{info9value|}}}|{{{info9value|}}}}}
{{infobox section|{{{section10}}}|{{{section10|}}}}}
{{infobox row|{{{info10|}}}|{{{info10value|}}}|{{{info10value|}}}}}
{{infobox end}}</includeonly><noinclude>
{{doc}}
[[Category:Infobox templates]]</noinclude>