Template:Infobox: Difference between revisions

From /lit/ Wiki
Jump to navigationJump to search
imported>Default
mNo edit summary
 
imported>Asnow89
Replaced with updated version from draft template
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:300px; background-color:#FFF;"
<infobox>
|-
<data source="Box title"><label>Box title</label><default>No Title</default></data>
! colspan="2" style="background-color:#3366CC; color:#FFFFFF; font-size:120%; padding:1em;" | {{{Box title|No Title}}}
<image source="image"/>
{{#if: {{{image|}}}|
<data source="Row 1 title"><label>Row 1 title</label><default>No Title</default></data>
{{!}}-
<data source="Row 1 info"><label>'''{{{Row 1 title|No Title}}}'''</label><default>No information</default></data>
{{!}} colspan="2" style="text-align:center;" {{!}} [[{{{image}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
<data source="Row 2 title"><label>Row 2 title</label></data>
|
<data source="Row 2 info"><label>'''{{{Row 2 title}}}'''</label><default>No information</default></data>
<data source="Row 3 title"><label>Row 3 title</label></data>
<data source="Row 3 info"><label>'''{{{Row 3 title}}}'''</label><default>No information</default></data>
<data source="Row 4 title"><label>Row 4 title</label></data>
<data source="Row 4 info"><label>'''{{{Row 4 title}}}'''</label><default>No information</default></data>
<data source="Row 5 title"><label>Row 5 title</label></data>
<data source="Row 5 info"><label>'''{{{Row 5 title}}}'''</label><default>No information</default></data>
<data source="Row 6 title"><label>Row 6 title</label></data>
<data source="Row 6 info"><label>'''{{{Row 6 title}}}'''</label><default>No information</default></data>
<data source="Row 7 title"><label>Row 7 title</label></data>
<data source="Row 7 info"><label>'''{{{Row 7 title}}}'''</label><default>No information</default></data>
<data source="Row 8 title"><label>Row 8 title</label></data>
<data source="Row 8 info"><label>'''{{{Row 8 title}}}'''</label><default>No information</default></data>
<data source="Row 9 title"><label>Row 9 title</label></data>
<data source="Row 9 info"><label>'''{{{Row 9 title}}}'''</label><default>No information</default></data>
<data source="Row 10 title"><label>Row 10 title</label></data>
<data source="Row 10 info"><label>'''{{{Row 10 title}}}'''</label><default>No information</default></data>
<data source="Row 11 title"><label>Row 11 title</label></data>
</infobox>
<noinclude>
== Usage & preview ==
Type in this:
 
<pre>
{{Infobox
|Box title=
|image=
|imagewidth=
|caption=
|Row 1 title=
|Row 1 info=
|Row 2 title=
|Row 2 info=
|Row 3 title=
|Row 3 info=
|Row 4 title=
|Row 4 info=
|Row 5 title=
|Row 5 info=
|Row 6 title=
|Row 6 info=
|Row 7 title=
|Row 7 info=
|Row 8 title=
|Row 8 info=
|Row 9 title=
|Row 9 info=
|Row 10 title=
|Row 10 info=
|Row 11 title=
}}
}}
|-
 
| style="width:30%;" |
</pre>
'''{{{Row 1 title|No Title}}}'''
 
| style="width:70%;" |
to see this:
{{{Row 1 info|No information}}}
 
{{#if: {{{Row 2 title|}}}|
{{Infobox
{{!}}-
|Box title=This is a test
{{!}}
|image=This is a test
'''{{{Row 2 title}}}'''
|imagewidth=This is a test
{{!}}
|caption=This is a test
{{{Row 2 info|No information}}}
|Row 1 title=This is a test
{{#if: {{{Row 3 title|}}}|
|Row 1 info=This is a test
{{!}}-
|Row 2 title=This is a test
{{!}}
|Row 2 info=This is a test
'''{{{Row 3 title}}}'''
|Row 3 title=This is a test
{{!}}
|Row 3 info=This is a test
{{{Row 3 info|No information}}}
|Row 4 title=This is a test
{{#if: {{{Row 4 title|}}}|
|Row 4 info=This is a test
{{!}}-
|Row 5 title=This is a test
{{!}}
|Row 5 info=This is a test
'''{{{Row 4 title}}}'''
|Row 6 title=This is a test
{{!}}
|Row 6 info=This is a test
{{{Row 4 info|No information}}}
|Row 7 title=This is a test
{{#if: {{{Row 5 title|}}}|
|Row 7 info=This is a test
{{!}}-
|Row 8 title=This is a test
{{!}}
|Row 8 info=This is a test
'''{{{Row 5 title}}}'''
|Row 9 title=This is a test
{{!}}
|Row 9 info=This is a test
{{{Row 5 info|No information}}}
|Row 10 title=This is a test
{{#if: {{{Row 6 title|}}}|
|Row 10 info=This is a test
{{!}}-
|Row 11 title=This is a test
{{!}}
'''{{{Row 6 title}}}'''
{{!}}
{{{Row 6 info|No information}}}
{{#if: {{{Row 7 title|}}}|
{{!}}-
{{!}}
'''{{{Row 7 title}}}'''
{{!}}
{{{Row 7 info|No information}}}
{{#if: {{{Row 8 title|}}}|
{{!}}-
{{!}}
'''{{{Row 8 title}}}'''
{{!}}
{{{Row 8 info|No information}}}
{{#if: {{{Row 9 title|}}}|
{{!}}-
{{!}}
'''{{{Row 9 title}}}'''
{{!}}
{{{Row 9 info|No information}}}
{{#if: {{{Row 10 title|}}}|
{{!}}-
{{!}}
'''{{{Row 10 title}}}'''
{{!}}
{{{Row 10 info|No information}}}
{{#if: {{{Row 11 title|}}}|
{{!}}-
{{!}} colspan="2" style="text-align:center; background:#AAAAAA;" {{!}}
'''Too many parameters'''
|
}}
}}
|
 
}}
 
|
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
}}
</noinclude>
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|}<noinclude><br style="clear:both;"/>
{{documentation}}</noinclude>

Revision as of 20:55, 20 July 2015

<infobox> <label>Box title</label><default>No Title</default> <image source="image"/> <label>Row 1 title</label><default>No Title</default> <label>No Title</label><default>No information</default> <label>Row 2 title</label> <label>{{{Row 2 title}}}</label><default>No information</default> <label>Row 3 title</label> <label>{{{Row 3 title}}}</label><default>No information</default> <label>Row 4 title</label> <label>{{{Row 4 title}}}</label><default>No information</default> <label>Row 5 title</label> <label>{{{Row 5 title}}}</label><default>No information</default> <label>Row 6 title</label> <label>{{{Row 6 title}}}</label><default>No information</default> <label>Row 7 title</label> <label>{{{Row 7 title}}}</label><default>No information</default> <label>Row 8 title</label> <label>{{{Row 8 title}}}</label><default>No information</default> <label>Row 9 title</label> <label>{{{Row 9 title}}}</label><default>No information</default> <label>Row 10 title</label> <label>{{{Row 10 title}}}</label><default>No information</default> <label>Row 11 title</label> </infobox>

Usage & preview

Type in this:

{{Infobox
|Box title=
|image=
|imagewidth=
|caption=
|Row 1 title=
|Row 1 info=
|Row 2 title=
|Row 2 info=
|Row 3 title=
|Row 3 info=
|Row 4 title=
|Row 4 info=
|Row 5 title=
|Row 5 info=
|Row 6 title=
|Row 6 info=
|Row 7 title=
|Row 7 info=
|Row 8 title=
|Row 8 info=
|Row 9 title=
|Row 9 info=
|Row 10 title=
|Row 10 info=
|Row 11 title=
}}

to see this:

<infobox> <label>Box title</label><default>No Title</default> <image source="image"/> <label>Row 1 title</label><default>No Title</default> <label>This is a test</label><default>No information</default> <label>Row 2 title</label> <label>This is a test</label><default>No information</default> <label>Row 3 title</label> <label>This is a test</label><default>No information</default> <label>Row 4 title</label> <label>This is a test</label><default>No information</default> <label>Row 5 title</label> <label>This is a test</label><default>No information</default> <label>Row 6 title</label> <label>This is a test</label><default>No information</default> <label>Row 7 title</label> <label>This is a test</label><default>No information</default> <label>Row 8 title</label> <label>This is a test</label><default>No information</default> <label>Row 9 title</label> <label>This is a test</label><default>No information</default> <label>Row 10 title</label> <label>This is a test</label><default>No information</default> <label>Row 11 title</label> </infobox>


Click here to refresh the preview above