|
|
(27 intermediate revisions by 8 users not shown) |
Line 1: |
Line 1: |
| {|Border="1" align="right" cellspacing="0" cellpadding="3" style="border: 1px solid #7a7a7a; float: right; width: 300px; background: #ffffff; margin: 0px 0px 15px 15px; border-collapse: collapse;" | | <!-- COPY THIS CODING BELOW TO CREATE A NEW INFOBOX TEMPLATE --> |
| | {|class="infobox" style="border-color:#A9A9A9" width="350px" |
| |- | | |- |
| |height="32" colspan="2" align="center" style="background: {{{background color|#D1BEF4}}};"| | | |colspan="2" style="text-align:center; color:black; background:#A9A9A9; border-top-left-radius:0.5em; border-top-right-radius:0.5em"|<big>'''{{{boxtitle}}}'''</big> |
| <div style="top:+0.2em;font-size: 105%">'''''{{{Box title|No Title}}}'''''</div>
| |
| {{#if: {{{Image file|}}}|
| |
| {{!}}-
| |
| {{!}}colspan="2" align="center" valign="top" style="background: #FFFFFF;"{{!}}
| |
| [[Image:{{{Image file}}}|{{{Image size}}}px]]
| |
| |
| |
| }}
| |
| |- | | |- |
| |height="32" Width="30%" valign="top" style="background: {{{background color|#D1BEF4}}};"| | | |colspan="2" style="text-align:center"|{{{image}}} |
| <div style="top:+0.2em;font-size: 95%">'''{{{Row 1 title|No Title}}}'''</div>
| | |- |
| |valign="top" style="background: #FFFFFF;"| | | |colspan="2" style="text-align:center; color:black; background:#A9A9A9"|'''{{{boxtitle}}}''' |
| <div style="top:+0.2em;font-size: 95%">{{{Row 1 info|No information}}}</div>
| | |- |
| {{#if: {{{Row 2 title|}}}|
| | |style="background:#A9A9A9"|{{{option1}}} |
| {{!}}-
| | |style="background:#A9A9A9"|{{{info1}}} |
| {{!}}height="32" Width="30%" valign="top" style="background: {{{background color|#D1BEF4}}};"{{!}}
| | |- |
| <div style="top:+0.2em;font-size: 95%">'''{{{Row 2 title}}}'''</div>
| | |style="background:#A9A9A9"|{{{option2}}} |
| {{!}}valign="top" style="background: #FFFFFF;"{{!}}
| | |style="background:#A9A9A9"|{{{info2}}} |
| <div style="top:+0.2em;font-size: 95%">{{{Row 2 info|No information}}}</div>
| | |- |
| {{#if: {{{Row 3 title|}}}|
| | |style="background:#A9A9A9"|{{{option3}}} |
| {{!}}-
| | |style="background:#A9A9A9"|{{{info3}}} |
| {{!}}height="32" Width="30%" valign="top" style="background: {{{background color|#D1BEF4}}};"{{!}}
| | |- |
| <div style="top:+0.2em;font-size: 95%">'''{{{Row 3 title}}}'''</div>
| | |style="background:#A9A9A9"|{{{option4}}} |
| {{!}}valign="top" style="background: #FFFFFF;"{{!}}
| | |style="background:#A9A9A9"|{{{info4}}} |
| <div style="top:+0.2em;font-size: 95%">{{{Row 3 info|No information}}}</div>
| | |- |
| {{#if: {{{Row 4 title|}}}|
| | |style="background:#A9A9A9"|{{{option5}}} |
| {{!}}-
| | |style="background:#A9A9A9"|{{{info5}}} |
| {{!}}height="32" Width="30%" valign="top" style="background: {{{background color|#D1BEF4}}};"{{!}}
| | |- |
| <div style="top:+0.2em;font-size: 95%">'''{{{Row 4 title}}}'''</div>
| | |style="background:#A9A9A9"|{{{option6}}} |
| {{!}}valign="top" style="background: #FFFFFF;"{{!}}
| | |style="background:#A9A9A9"|{{{info6}}} |
| <div style="top:+0.2em;font-size: 95%">{{{Row 4 info|No information}}}</div>
| | |- |
| {{#if: {{{Row 5 title|}}}|
| | |style="background:#A9A9A9"|{{{option7}}} |
| {{!}}-
| | |style="background:#A9A9A9"|{{{info7}}} |
| {{!}}height="32" Width="30%" valign="top" style="background: {{{background color|#D1BEF4}}};"{{!}}
| | |- |
| <div style="top:+0.2em;font-size: 95%">'''{{{Row 5 title}}}'''</div>
| | |style="background:#A9A9A9"|{{{option8}}} |
| {{!}}valign="top" style="background: #FFFFFF;"{{!}}
| | |style="background:#A9A9A9"|{{{info8}}} |
| <div style="top:+0.2em;font-size: 95%">{{{Row 5 info|No information}}}</div>
| | |- |
| {{#if: {{{Row 6 title|}}}|
| | |style="background:#A9A9A9"|{{{option9}}} |
| {{!}}-
| | |style="background:#A9A9A9"|{{{info9}}} |
| {{!}}height="32" Width="30%" valign="top" style="background: {{{background color|#D1BEF4}}};"{{!}}
| | |- |
| <div style="top:+0.2em;font-size: 95%">'''{{{Row 6 title}}}'''</div>
| | |style="background:#A9A9A9; border-bottom-left-radius:0.5em"|{{{option10}}} |
| {{!}}valign="top" style="background: #FFFFFF;"{{!}}
| | |style="background:#A9A9A9; border-bottom-right-radius:0.5em"|{{{info10}}} |
| <div style="top:+0.2em;font-size: 95%">{{{Row 6 info|No information}}}</div>
| |
| {{#if: {{{Row 7 title|}}}|
| |
| {{!}}-
| |
| {{!}}height="32" Width="30%" valign="top" style="background: {{{background color|#D1BEF4}}};"{{!}}
| |
| <div style="top:+0.2em;font-size: 95%">'''{{{Row 7 title}}}'''</div>
| |
| {{!}}valign="top" style="background: #FFFFFF;"{{!}}
| |
| <div style="top:+0.2em;font-size: 95%">{{{Row 7 info|No information}}}</div>
| |
| {{#if: {{{Row 8 title|}}}|
| |
| {{!}}-
| |
| {{!}}height="32" Width="30%" valign="top" style="background: {{{background color|#D1BEF4}}};"{{!}}
| |
| <div style="top:+0.2em;font-size: 95%">'''{{{Row 8 title}}}'''</div>
| |
| {{!}}valign="top" style="background: #FFFFFF;"{{!}}
| |
| <div style="top:+0.2em;font-size: 95%">{{{Row 8 info|No information}}}</div>
| |
| {{#if: {{{Row 9 title|}}}|
| |
| {{!}}-
| |
| {{!}}height="32" Width="30%" valign="top" style="background: {{{background color|#D1BEF4}}};"{{!}}
| |
| <div style="top:+0.2em;font-size: 95%">'''{{{Row 9 title}}}'''</div>
| |
| {{!}}valign="top" style="background: #FFFFFF; border: 1px solid #aaaaaa"{{!}}
| |
| <div style="top:+0.2em;font-size: 95%">{{{Row 9 info|No information}}}</div>
| |
| {{#if: {{{Row 10 title|}}}|
| |
| {{!}}-
| |
| {{!}}height="32" Width="30%" valign="top" style="background: {{{background color|#D1BEF4}}};"{{!}}
| |
| <div style="top:+0.2em;font-size: 95%">'''{{{Row 10 title}}}'''</div>
| |
| {{!}}valign="top" style="background: #FFFFFF;"{{!}}
| |
| <div style="top:+0.2em;font-size: 95%">{{{Row 10 info|No information}}}</div>
| |
| {{#if: {{{Row 11 title|}}}|
| |
| {{!}}- | |
| {{!}}height="32" colspan="2" align="center" valign="top" style="background: #aaaaaa;"{{!}} | |
| Too many parameters
| |
| |
| |
| }}
| |
| |
| |
| }}
| |
| |
| |
| }}
| |
| |
| |
| }}
| |
| |
| |
| }}
| |
| |
| |
| }}
| |
| |
| |
| }}
| |
| |
| |
| }}
| |
| |
| |
| }}
| |
| |
| |
| }} | |
| |} | | |} |
| <noinclude> | | <!-- COPY THIS CODING ABOVE TO CREATE A NEW INFOBOX TEMPLATE --><noinclude> |
| | | This Template is the basis for all Infobox Templates in the KHWiki Mainspace. In short, Infobox templates should closely model this template's appearance with minimal variances. |
| | |
| | |
| | |
| | |
| ==Usage==
| |
| Syntax:<br>
| |
| <code>'''<nowiki>{{</nowiki>Infobox'''<br />
| |
| '''|'''Box title = <br />
| |
| '''|'''Image file = <br />
| |
| '''|'''Image size = <br />
| |
| '''|'''Row 1 title = <br />
| |
| '''|'''Row 1 info = <br />
| |
| '''|'''Row 2 title = <br />
| |
| '''|'''Row 2 info = <br />
| |
| '''|'''Row 3 title = <br />
| |
| '''|'''Row 3 info = <br />
| |
| '''|'''Row 4 title = <br />
| |
| '''|'''Row 4 info = <br />
| |
| '''|'''Row 5 title = <br />
| |
| '''|'''Row 5 info = <br />
| |
| '''|'''Row 6 title = <br />
| |
| '''|'''Row 6 info = <br />
| |
| '''|'''Row 7 title = <br />
| |
| '''|'''Row 7 info = <br />
| |
| '''|'''Row 8 title = <br />
| |
| '''|'''Row 8 info = <br />
| |
| '''|'''Row 9 title = <br />
| |
| '''|'''Row 9 info = <br />
| |
| '''|'''Row 10 title = <br />
| |
| '''|'''Row 10 info = <br />
| |
| '''<nowiki>}}</nowiki>'''</code>
| |
| | |
| 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.
| |
| | |
| Usage examples are here: [[Wikia:template talk:Infobox]].
| |
|
| |
|
| To use this template, you must manually copy both: template:infobox and [[template:!]] to your wiki.
| | When copying the coding of this Template to create a new Infobox template: |
| | *Delete codings that are not needed. |
| | *The bottommost coding is the recommended bottommost part for the Infobox |
|
| |
|
| {{wikia|template}} | | You may also use it to create a KHWiki Infobox in your user page. Advanced help is recommended. |
| [[Category:Templates|{{PAGENAME}}]] | | {{delete|unused}} |
| [[Category:Infoboxes|{{PAGENAME}}]] | | [[Category:Templates]] |
| </noinclude> | | [[Category:Infoboxes]]</noinclude> |