Template:Infobox Demo: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "<includeonly><div id="infobox-demo"> {| class="infobox-interior" |- ! colspan="3" class=wh style="font-size:150%"| {{{name|{{PAGENAME}}}}} |- {{#if:{{{image|}}}|{{!}}class="i...")
 
(Infobox updated using the portable infobox migration tool)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div id="infobox-demo">  
<infobox theme="infobox">
{|  class="infobox-interior"
    <title source="name"><default>''{{dab away|{{PAGENAME}}}}''</default></title>
|-
<image source="image">
! colspan="3" class=wh style="font-size:150%"| {{{name|{{PAGENAME}}}}}
<caption source="caption">
|-
<default>{{#if:{{{image|}}}|{{#set:Has image=File:{{{image|}}}}}|}}</default>
{{#if:{{{image|}}}|{{!}}class="info-both" colspan="2"{{!}}{{infobox image|{{{image}}}|{{#if:{{{caption|}}}|{{{caption}}}|}}}}}}{{#set:Has image=File:{{{image|}}} }}
</caption>
|-
</image>
{{#if:{{{aka|}}}|{{!}}class="info-left"{{!}}Main aliases:}}
<image source="image2">
{{#if:{{{aka|}}}|{{!}}class="info-right"{{!}}{{{aka}}}}}
<caption source="caption2">
|-
<default>{{#if:{{{image2|}}}|{{#set:Has image=File:{{{image2|}}}}}|}}</default>
{{ #if: {{{alias|}}}|{{!}}class="info-left"{{!}}Main aliases:}}
</caption>
{{ #if: {{{alias|}}}|{{!}}class="info-right"{{!}}{{{alias}}}}}
</image>
|-
<image source="timelord">
{{ #if: {{{type|}}}|{{!}}class="info-left"{{!}}Type:}}
<caption source="caption3">
{{ #if: {{{type|}}}|{{!}}class="info-right"{{!}}{{{type}}}}}
<default>{{#if:{{{timelord|}}}|{{#set:Has image=File:{{{timelord|}}}}}|}}</default>
|-
</caption>
{{ #if: {{{origin|}}}|{{!}}class="info-left"{{!}}Place of origin:}}
</image>
{{ #if: {{{origin|}}}|{{!}}class="info-right"{{!}}{{{origin}}}}}
 
|-
<!-- Data -->
{{ #if: {{{made by|}}}|{{!}}class="info-left"{{!}}Made by:}}
<data source="aka"><label>Main aliases:</label></data>
{{ #if: {{{made by|}}}|{{!}}class="info-right"{{!}}{{{made by}}}}}
<data source="alias"><label>Main aliases:</label></data>
|-
<data source="type"><label>Type:</label></data>
{{ #if: {{{used by|}}}|{{!}}class="info-left"{{!}}Used by:}}
<data source="origin"><label>Place of origin:</label></data>
{{ #if: {{{used by|}}}|{{!}}class="info-right"{{!}}{{{used by}}}}}
<data source="made by"><label>Made by:</label></data>
|-
<data source="used by"><label>Used by:</label></data>
{{ #if: {{{first|}}}|{{!}}class="info-left"{{!}}First seen in:}}
<data source="first"><label>First seen in:</label></data>
{{ #if: {{{first|}}}|{{!}}class="info-right"{{!}}''{{dab away|{{{first}}}}}''}}
<data source="only"><label>Appearance:</label></data>
|-
<data source="appearances"><label>Appearances:</label></data>
{{#if:{{{only|}}}|{{!}}class="info-left"{{!}}Appearance:}}
</infobox>
{{#if:{{{only|}}}|{{!}}class="info-right"{{!}}''{{dab away|{{{only}}}}}''}}
<noinclude>[[category:infoboxes]]{{documentation}}</noinclude>
|-
{{#if:{{{appearances|}}}|{{!}}class="info-left"{{!}}Appearances:}}
{{#if:{{{appearances|}}}|{{!}}class="info-right"{{!}}{{{appearances}}}}}
|-
|}</div></includeonly><noinclude>{{documentation}}[[Category:Infoboxes|{{PAGENAME}}]]</noinclude>

Latest revision as of 18:29, 24 May 2017

Instructions for {{Infobox Demo}}
{{Infobox Demo}} is a version of the basic infobox structure which can be used in instructional situations to showcase two instances of the infobox side-by-side. This happens because it does not automatically {{clear}} — unlike the "real" infoboxes.

It is based on {{Infobox Object}}, so it does not include any of the navigational variables.

One page that uses this template extensively is T:GTI.