Template:Infobox: Difference between revisions

From TestWiki
Content added Content deleted
m (1 revision imported)
m (Changed protection level for "Template:Infobox": Degrade to template permission per request, in line with WP:PP ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
Line 1: Line 1:
{{#invoke:Infobox|infobox}}<noinclude>
{| div style=" width:300px; <!--
--> background-color: #f9f9f9; <!--
--> border-spacing: 3px; <!--
--> border: 1px solid #aaa; <!--
--> color: black; <!--
--> /* @noflip */ <!--
--> margin: 0.5em 0 0.5em 1em; <!--
--> padding: 0.2em; <!--
--> /* @noflip */ <!--
--> float: right; <!--
--> /* @noflip */ <!--
--> clear: right; <!--
--> font-size: 88%; <!--
--> line-height: 1.5em;"
|-
! colspan="2" style="background-color:#1133bb; color:#FFFFFF; font-size:120%; padding:0.5em;" | {{{Box title|No Title}}}
{{#if: {{{image|}}}|
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} [[{{{image}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
|
}}
|-
| style="width:30%;" |
'''{{{Row 1 title|No Title}}}'''
| style="width:70%;" |
{{{Row 1 info|No information}}}
{{#if: {{{Row 2 title|}}}|
{{!}}-
{{!}}
'''{{{Row 2 title}}}'''
{{!}}
{{{Row 2 info|No information}}}
{{#if: {{{Row 3 title|}}}|
{{!}}-
{{!}}
'''{{{Row 3 title}}}'''
{{!}}
{{{Row 3 info|No information}}}
{{#if: {{{Row 4 title|}}}|
{{!}}-
{{!}}
'''{{{Row 4 title}}}'''
{{!}}
{{{Row 4 info|No information}}}
{{#if: {{{Row 5 title|}}}|
{{!}}-
{{!}}
'''{{{Row 5 title}}}'''
{{!}}
{{{Row 5 info|No information}}}
{{#if: {{{Row 6 title|}}}|
{{!}}-
{{!}}
'''{{{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'''
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|}<noinclude><br style="clear:both;"/>


{{documentation}}

<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
Usage:
<nowiki>{{infobox </nowiki>
|Box title = BOX TITLE
|image = Image:Example.jpg
|imagewidth = [defaults to 250]
|caption = Bob the Flower
|Row 1 title = Row 1 title
|Row 1 info = Row 1 info
|Row 2 title = ((empty/undefined will not show that line))
|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 =
}}
<br />
<br />
Notes
* Keeping the Box Title empty will result in displaying No title
* If you don't want to display image, just keep Image file Name and Image Size empty.
* Keeping the Row 1 title empty will result in displaying No title.
* Keeping the Row (any row) info empty will result in displaying No information.
* Keeping the Row (any below row 1) title empty will result in that row and the rest of the rows below it will not be displayed.
* Max row for information: 10 rows.
<br />
<br />
<br /><br />



[[Category:infobox]]
</noinclude>
</noinclude>

Revision as of 21:41, 15 February 2017