Template:Infobox Demo: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
(Infobox updated using the portable infobox migration tool)
 
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-pic" colspan="2"{{!}}[[file:{{{image}}}]]{{#if:{{{image|}}}|{{#set:Has image=File:{{{image|}}}}}|}}}}
</caption>
|-
</image>
{{#if:{{{image2|}}}|{{!}}class="info-pic2" colspan="2"{{!}}[[file:{{{image2}}}]]{{#if:{{{image2|}}}|{{#set:Has image=File:{{{image2|}}}}}|}}}}
<image source="image2">
|-
<caption source="caption2">
{{#if:{{{timelord|}}}|{{!}}class="info-both" colspan="2"{{!}}{{{timelord}}}{{#if:{{{timelord|}}}|{{#set:Has image=Template:{{{timelord|}}}|}} }}}}
<default>{{#if:{{{image2|}}}|{{#set:Has image=File:{{{image2|}}}}}|}}</default>
|-
</caption>
{{#if:{{{aka|}}}|{{!}}class="info-left"{{!}}Main aliases:}}
</image>
{{#if:{{{aka|}}}|{{!}}class="info-right"{{!}}{{{aka}}}}}
<image source="timelord">
|-
<caption source="caption3">
{{ #if: {{{alias|}}}|{{!}}class="info-left"{{!}}Main aliases:}}
<default>{{#if:{{{timelord|}}}|{{#set:Has image=File:{{{timelord|}}}}}|}}</default>
{{ #if: {{{alias|}}}|{{!}}class="info-right"{{!}}{{{alias}}}}}
</caption>
|-
</image>
{{ #if: {{{type|}}}|{{!}}class="info-left"{{!}}Type:}}
 
{{ #if: {{{type|}}}|{{!}}class="info-right"{{!}}{{{type}}}}}
<!-- Data -->
|-
<data source="aka"><label>Main aliases:</label></data>
{{ #if: {{{origin|}}}|{{!}}class="info-left"{{!}}Place of origin:}}
<data source="alias"><label>Main aliases:</label></data>
{{ #if: {{{origin|}}}|{{!}}class="info-right"{{!}}{{{origin}}}}}
<data source="type"><label>Type:</label></data>
|-
<data source="origin"><label>Place of origin:</label></data>
{{ #if: {{{made by|}}}|{{!}}class="info-left"{{!}}Made by:}}
<data source="made by"><label>Made by:</label></data>
{{ #if: {{{made by|}}}|{{!}}class="info-right"{{!}}{{{made by}}}}}
<data source="used by"><label>Used by:</label></data>
|-
<data source="first"><label>First seen in:</label></data>
{{ #if: {{{used by|}}}|{{!}}class="info-left"{{!}}Used by:}}
<data source="only"><label>Appearance:</label></data>
{{ #if: {{{used by|}}}|{{!}}class="info-right"{{!}}{{{used by}}}}}
<data source="appearances"><label>Appearances:</label></data>
|-
</infobox>
{{ #if: {{{first|}}}|{{!}}class="info-left"{{!}}First seen in:}}
<noinclude>[[category:infoboxes]]{{documentation}}</noinclude>
{{ #if: {{{first|}}}|{{!}}class="info-right"{{!}}''{{dab away|{{{first}}}}}''}}
|-
{{#if:{{{only|}}}|{{!}}class="info-left"{{!}}Appearance:}}
{{#if:{{{only|}}}|{{!}}class="info-right"{{!}}''{{dab away|{{{only}}}}}''}}
|-
{{#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.