|
|
(4 intermediate revisions by one user not shown) |
Line 1: |
Line 1: |
− | {| class="infobox" style="font-size:89%; width:300px; background-color:#FFFFFF;" | + | {| class="infobox" style="font-size:89%; width:300px; background-color:#FFF;" |
| |- | | |- |
| ! class="color1" colspan="2" style="font-size:120%; padding:1em;" | {{{title|No Title}}} | | ! class="color1" colspan="2" style="font-size:120%; padding:1em;" | {{{title|No Title}}} |
Line 35: |
Line 35: |
| {{!}}- | | {{!}}- |
| {{!}} '''{{{T10}}}''' {{!}}{{!}} {{{C10|No information}}} | | {{!}} '''{{{T10}}}''' {{!}}{{!}} {{{C10|No information}}} |
− | }}{{#if: {{{T11|}}}| <br />
| |
− | {{!}}-
| |
− | {{!}} '''{{{T11}}}''' {{!}}{{!}} {{{C11|No information}}}
| |
− | }}{{#if: {{{T12|}}}| <br />
| |
− | {{!}}-
| |
− | {{!}} '''{{{T12}}}''' {{!}}{{!}} {{{C12|No information}}}
| |
− | }}{{#if: {{{T13|}}}| <br />
| |
− | {{!}}-
| |
− | {{!}} '''{{{T13}}}''' {{!}}{{!}} {{{C13|No information}}}
| |
− | }}{{#if: {{{T14|}}}| <br />
| |
− | {{!}}-
| |
− | {{!}} '''{{{T14}}}''' {{!}}{{!}} {{{C14|No information}}}
| |
− | }}{{#if: {{{T15|}}}| <br />
| |
− | {{!}}-
| |
− | {{!}} '''{{{T15}}}''' {{!}}{{!}} {{{C15|No information}}}
| |
− | }}{{#if: {{{T16|}}}| <br />
| |
− | {{!}}-
| |
− | {{!}} '''{{{T16}}}''' {{!}}{{!}} {{{C16|No information}}}
| |
− | }}{{#if: {{{T17|}}}| <br />
| |
− | {{!}}-
| |
− | {{!}} '''{{{T17}}}''' {{!}}{{!}} {{{C17|No information}}}
| |
− | }}{{#if: {{{T10|}}}| <br />
| |
− | {{!}}-
| |
− | {{!}} '''{{{T18}}}''' {{!}}{{!}} {{{C18|No information}}}
| |
− | }}{{#if: {{{T18|}}}| <br />
| |
− | {{!}}-
| |
− | {{!}} '''{{{T19}}}''' {{!}}{{!}} {{{C19|No information}}}
| |
− | }}{{#if: {{{T20|}}}| <br />
| |
− | {{!}}-
| |
− | {{!}} '''{{{T20}}}''' {{!}}{{!}} {{{C20|No information}}}
| |
− | }}{{#if: {{{T21|}}}| <br />
| |
− | {{!}}-
| |
− | {{!}} '''{{{T21}}}''' {{!}}{{!}} {{{C21|No information}}}
| |
| }} | | }} |
| |}<noinclude><br style="clear:both;"/>{{documentation}}</noinclude> | | |}<noinclude><br style="clear:both;"/>{{documentation}}</noinclude> |
| | | |
− | {{SPW|is not on|name=Infobox advanced}}
| + | [[Category:Delete]] |
− | ==Description==
| + | |
− | *This template produces a [[Help:Infobox|infobox]]-style template, without parameters being lost if a title is left out. It also has easier-to-use names.
| + | |
− | *You may want to copy and modify this to create a specific infobox (e.g. character infobox).
| + | |
− | | + | |
− | ==Dependencies==
| + | |
− | *This template requires an "infobox" CSS element, and a {{t|!}} template, both of which are also required by the original.
| + | |
− | *This template requires [[Help:Parser functions|parser functions]] to be enabled (Wikia default: on).
| + | |
− | | + | |
− | ==Syntax==
| + | |
− | <pre>
| + | |
− | {{Infobox advanced
| + | |
− | |title =
| + | |
− | |image = [optional]
| + | |
− | |imagewidth = [defaults to 250]
| + | |
− | |caption = [optional]
| + | |
− | |T1 =
| + | |
− | |C1 =
| + | |
− | |T2 = [optional]
| + | |
− | |C2 = [optional]
| + | |
− | |T3 = [optional]
| + | |
− | |C3 = [optional]
| + | |
− | |T4 = [optional]
| + | |
− | |C4 = [optional]
| + | |
− | |T5 = [optional]
| + | |
− | |C5 = [optional]
| + | |
− | |T6 = [optional]
| + | |
− | |C6 = [optional]
| + | |
− | |T7 = [optional]
| + | |
− | |C7 = [optional]
| + | |
− | |T8 = [optional]
| + | |
− | |C8 = [optional]
| + | |
− | |T9 = [optional]
| + | |
− | |C9 = [optional]
| + | |
− | |T10 = [optional]
| + | |
− | |C10 = [optional]
| + | |
− | }}
| + | |
− | </pre>
| + | |
− | | + | |
− | ===Notes===
| + | |
− | * Keeping the '''title''' empty will result in displaying '''No title'''
| + | |
− | * If you don't want to display image, just keep '''image''' and '''imagewidth''' empty.
| + | |
− | * Keeping the '''T1''' empty will result in displaying '''No title'''.
| + | |
− | * Keeping any '''C_''' parameter empty will result in displaying '''No information'''.
| + | |
− | * Keeping the '''Row (any below row 1) title''' empty will result in that row not being displayed.
| + | |
− | * Max rows for information: 10.
| + | |
− | | + | |
− | ==Sample output==
| + | |
− | {{Infobox advanced
| + | |
− | |Box title = Info Title
| + | |
− | |image = Image:Example.jpg
| + | |
− | |imagewidth = 120
| + | |
− | |caption = A flower
| + | |
− | |T1 = Title row 1
| + | |
− | |C1 = Info row 1
| + | |
− | |T2 = Title row 2
| + | |
− | |C2 = Info row 2
| + | |
− | |T3 = Title row 3
| + | |
− | |C3 = Info row 3
| + | |
− | |T4 = Title row 4
| + | |
− | |C4 = Info row 4
| + | |
− | |T5 = Title row 5
| + | |
− | |C5 = Info row 5
| + | |
− | |T6 = Title row 6
| + | |
− | |C6 = Info row 6
| + | |
− | |T7 = Title row 7
| + | |
− | |C7 = Info row 7
| + | |
− | |T8 = Title row 8
| + | |
− | |C8 = Info row 8
| + | |
− | |T9 = Title row 9
| + | |
− | |C9 = Info row 9
| + | |
− | |T10 = Title row 10
| + | |
− | |C10 = Info row 10
| + | |
− | }}
| + | |
− | Complete Infobox:<br />
| + | |
− | <code>
| + | |
− | '''<nowiki>{{</nowiki>Infobox advanced'''<br />
| + | |
− | '''|'''Box title = Info Title<br />
| + | |
− | '''|'''image = Image:Example.jpg<br />
| + | |
− | '''|'''imagewidth = 120<br />
| + | |
− | '''|'''caption = A flower<br />
| + | |
− | '''|'''T1 = Title row 1<br />
| + | |
− | '''|'''C1 = Info row 1<br />
| + | |
− | '''|'''T2 = Title row 2<br />
| + | |
− | '''|'''C2 = Info row 2<br />
| + | |
− | '''|'''T3 = Title row 3<br />
| + | |
− | '''|'''C3 = Info row 3<br />
| + | |
− | '''|'''T4 = Title row 4<br />
| + | |
− | '''|'''C4 = Info row 4<br />
| + | |
− | '''|'''T5 = Title row 5<br />
| + | |
− | '''|'''C5 = Info row 5<br />
| + | |
− | '''|'''T6 = Title row 6<br />
| + | |
− | '''|'''C6 = Info row 6<br />
| + | |
− | '''|'''T7 = Title row 7<br />
| + | |
− | '''|'''C7 = Info row 7<br />
| + | |
− | '''|'''T8 = Title row 8<br />
| + | |
− | '''|'''C8 = Info row 8<br />
| + | |
− | '''|'''T9 = Title row 9<br />
| + | |
− | '''|'''C9 = Info row 9<br />
| + | |
− | '''|'''T10 = Title row 10<br />
| + | |
− | '''|'''C10 = Info row 10<br />
| + | |
− | '''<nowiki>}}</nowiki>'''
| + | |
− | </code>
| + | |
− | | + | |
− | <br style="clear:both; margin-bottom:3em;"/>
| + | |
− | | + | |
− | {{Infobox advanced
| + | |
− | |Box title = Info Title
| + | |
− | |T1 = Title row 1
| + | |
− | |C1 = Info row 1
| + | |
− | |T2 = Title row 2
| + | |
− | |C2 = Info row 2
| + | |
− | |T3 = Title row 3
| + | |
− | |C3 = Info row 3
| + | |
− | |T4 = Title row 4
| + | |
− | |C4 = Info row 4
| + | |
− | |T5 = Title row 5
| + | |
− | |C5 = Info row 5
| + | |
− | |T6 = Title row 6
| + | |
− | |C6 = Info row 6
| + | |
− | |T7 = Title row 7
| + | |
− | |C7 = Info row 7
| + | |
− | |T8 = Title row 8
| + | |
− | |C8 = Info row 8
| + | |
− | |T9 = Title row 9
| + | |
− | |C9 = Info row 9
| + | |
− | |T10 = Title row 10
| + | |
− | |C10 = Info row 10
| + | |
− | }}
| + | |
− | Infobox '''Image''' omitted :<br />
| + | |
− | <code>
| + | |
− | '''<nowiki>{{</nowiki>Infobox advanced'''<br />
| + | |
− | '''|'''Box title = Info Title<br />
| + | |
− | '''|'''T1 = Title row 1<br />
| + | |
− | '''|'''C1 = Info row 1<br />
| + | |
− | '''|'''T2 = Title row 2<br />
| + | |
− | '''|'''C2 = Info row 2<br />
| + | |
− | '''|'''T3 = Title row 3<br />
| + | |
− | '''|'''C3 = Info row 3<br />
| + | |
− | '''|'''T4 = Title row 4<br />
| + | |
− | '''|'''C4 = Info row 4<br />
| + | |
− | '''|'''T5 = Title row 5<br />
| + | |
− | '''|'''C5 = Info row 5<br />
| + | |
− | '''|'''T6 = Title row 6<br />
| + | |
− | '''|'''C6 = Info row 6<br />
| + | |
− | '''|'''T7 = Title row 7<br />
| + | |
− | '''|'''C7 = Info row 7<br />
| + | |
− | '''|'''T8 = Title row 8<br />
| + | |
− | '''|'''C8 = Info row 8<br />
| + | |
− | '''|'''T9 = Title row 9<br />
| + | |
− | '''|'''C9 = Info row 9<br />
| + | |
− | '''|'''T10 = Title row 10<br />
| + | |
− | '''|'''C10 = Info row 10<br />
| + | |
− | '''<nowiki>}}</nowiki>'''
| + | |
− | </code>
| + | |
− | | + | |
− | <br style="clear:both; margin-bottom:3em;"/>
| + | |
− | | + | |
− | {{Infobox advanced
| + | |
− | |Box title = Info Title
| + | |
− | |T1 = Title row 1
| + | |
− | |C1 = Info row 1
| + | |
− | |T2 = Title row 2
| + | |
− | |C2 = Info row 2
| + | |
− | |T3 = Title row 3
| + | |
− | |C3 = Info row 3
| + | |
− | }}
| + | |
− | Infobox '''Image''' omitted and displaying only 3 rows of information:<br />
| + | |
− | <code>
| + | |
− | '''<nowiki>{{</nowiki>Infobox advanced'''<br />
| + | |
− | '''|'''Box title = Info Title<br />
| + | |
− | '''|'''T1 = Title row 1<br />
| + | |
− | '''|'''C1 = Info row 1<br />
| + | |
− | '''|'''T2 = Title row 2<br />
| + | |
− | '''|'''C2 = Info row 2<br />
| + | |
− | '''|'''T3 = Title row 3<br />
| + | |
− | '''|'''C3 = Info row 3<br />
| + | |
− | '''<nowiki>}}</nowiki>'''
| + | |
− | </code>
| + | |
− | | + | |
− | <br style="clear:both; margin-bottom:3em;"/>
| + | |
− | | + | |
− | {{Infobox advanced
| + | |
− | |Box title = Info Title
| + | |
− | |T1 = Title row 1
| + | |
− | |C1 = Info row 1
| + | |
− | |T2 = Title row 2
| + | |
− | |C2 = Info row 2
| + | |
− | |T3 = Title row 3
| + | |
− | |C3 = Info row 3
| + | |
− | |C4 = Info row 4
| + | |
− | |T5 = Title row 5
| + | |
− | |C5 = Info row 5
| + | |
− | |T6 = Title row 6
| + | |
− | |C6 = Info row 6
| + | |
− | }}
| + | |
− | Infobox '''Image''' and '''title row 4''' omited:<br />
| + | |
− | Result: Row 4 will not be displayed.<br />
| + | |
− | <code>
| + | |
− | '''<nowiki>{{</nowiki>Infobox advanced'''<br />
| + | |
− | '''|'''Box title = Info Title<br />
| + | |
− | '''|'''T1 = Title row 1<br />
| + | |
− | '''|'''C1 = Info row 1<br />
| + | |
− | '''|'''T2 = Title row 2<br />
| + | |
− | '''|'''C2 = Info row 2<br />
| + | |
− | '''|'''T3 = Title row 3<br />
| + | |
− | '''|'''C3 = Info row 3<br />
| + | |
− | '''|'''C4 = Info row 4<br />
| + | |
− | '''|'''T5 = Title row 5<br />
| + | |
− | '''|'''C5 = Info row 5<br />
| + | |
− | '''|'''T6 = Title row 6<br />
| + | |
− | '''|'''C6 = Info row 6<br />
| + | |
− | '''<nowiki>}}</nowiki>'''
| + | |
− | </code>
| + | |