Template:Infobox: Difference between revisions
(Added infobox category) Tag: sourceedit |
(Infobox updated using the portable infobox migration tool) |
||
Line 1: | Line 1: | ||
< |
<infobox> |
||
<title source="title"><default>''Unknown''</default></title> |
|||
<image source="image"/> |
|||
<data source="imagecaption"><label>imagecaption</label></data> |
|||
<data source="first"><label>first</label><default>''Unknown''</default></data> |
|||
<data source="second"><label>second</label><default>''Unknown''</default></data> |
|||
<data source="third"><label>third</label><default>''Unknown''</default></data> |
|||
<data source="fourth"><label>Fourth</label></data> |
|||
<data source="fifth"><label>Fifth</label></data> |
|||
<data source="sixth"><label>Sixth</label></data> |
|||
</infobox> |
|||
<noinclude> |
|||
== Usage & preview == |
|||
Type in this: |
|||
<pre> |
|||
|- |
|||
{{Infobox |
|||
! class="wikia-infobox-header" colspan="2" | {{{title|''Unknown''}}} |
|||
|title= |
|||
|image= |
|||
|imagewidth= |
|||
⚫ | |||
|first= |
|||
|second= |
|||
|third= |
|||
|fourth= |
|||
|fifth= |
|||
|sixth= |
|||
⚫ | |||
</pre> |
|||
|- |
|||
{{#if: {{{image|}}} | |
|||
{{!}} class="wikia-infobox-image" colspan="2" {{!}} [[File:{{{image}}}|{{{imagewidth|210}}}px|{{{imagecaption|}}}]] |
|||
⚫ | |||
to see this: |
|||
|- |
|||
⚫ | |||
{{!}} class="wikia-infobox-caption" colspan="2" {{!}} {{{imagecaption}}} |
|||
⚫ | |||
{{Infobox |
|||
|- |
|||
|title=This is a test |
|||
! colspan="2" | <div class="wikia-infobox-section-header">Some attributes</div> |
|||
|image=This is a test |
|||
|imagewidth=This is a test |
|||
|imagecaption=This is a test |
|||
|first=This is a test |
|||
|second=This is a test |
|||
|third=This is a test |
|||
|fourth=This is a test |
|||
|fifth=This is a test |
|||
|sixth=This is a test |
|||
⚫ | |||
|- |
|||
! First |
|||
| {{{first|''Unknown''}}} |
|||
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above] |
|||
|- |
|||
⚫ | |||
! Second |
|||
| {{{second|''Unknown''}}} |
|||
|- |
|||
! Third |
|||
| {{{third|''Unknown''}}} |
|||
|- |
|||
! colspan="2" | <div class="wikia-infobox-section-header">Other attributes</div> |
|||
|- |
|||
{{#if: {{{fourth|}}} | |
|||
! Fourth |
|||
{{!}} {{{fourth}}} |
|||
| }} |
|||
|- |
|||
{{#if: {{{fifth|}}} | |
|||
! Fifth |
|||
{{!}} {{{fifth}}} |
|||
| }} |
|||
|- |
|||
{{#if: {{{sixth|}}} | |
|||
! Sixth |
|||
{{!}} {{{sixth}}} |
|||
| }} |
|||
|- style="font-size:0; line-height:0;" |
|||
! style="width:50%; padding:0" | |
|||
! style="width:50%; padding:0" | |
|||
|}</onlyinclude><noinclude><br style="clear:both;"/> |
|||
⚫ | |||
[[Category:Infoboxes]] |
Revision as of 11:15, 1 August 2015
<infobox> <title source="title"><default>Unknown</default></title> <image source="image"/> <label>imagecaption</label> <label>first</label><default>Unknown</default> <label>second</label><default>Unknown</default> <label>third</label><default>Unknown</default> <label>Fourth</label> <label>Fifth</label> <label>Sixth</label> </infobox>
Usage & preview
Type in this:
{{Infobox |title= |image= |imagewidth= |imagecaption= |first= |second= |third= |fourth= |fifth= |sixth= }}
to see this:
<infobox> <title source="title"><default>Unknown</default></title> <image source="image"/> <label>imagecaption</label> <label>first</label><default>Unknown</default> <label>second</label><default>Unknown</default> <label>third</label><default>Unknown</default> <label>Fourth</label> <label>Fifth</label> <label>Sixth</label> </infobox>