Template:Infobox Demo: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
m (Protected "Template:Infobox Demo": Robot: Protecting all pages from category templates (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
No edit summary
Line 4: Line 4:
! colspan="3" class=wh style="font-size:150%"| {{{name|{{PAGENAME}}}}}
! colspan="3" class=wh style="font-size:150%"| {{{name|{{PAGENAME}}}}}
|-
|-
{{#if:{{{image|}}}|{{!}}class="info-both" colspan="2"{{!}}{{infobox image|{{{image}}}|{{#if:{{{caption|}}}|{{{caption}}}|}}}}}}{{#set:Has image=File:{{{image|}}} }}
{{#if:{{{image|}}}|{{!}}class="info-pic" colspan="2"{{!}}[[file:{{{image}}}]]{{#if:{{{image|}}}|{{#set:Has image=File:{{{image|}}}}}|}}}}
|-
{{#if:{{{image2|}}}|{{!}}class="info-pic2" colspan="2"{{!}}[[file:{{{image2}}}]]{{#if:{{{image2|}}}|{{#set:Has image=File:{{{image2|}}}}}|}}}}
|-
{{#if:{{{timelord|}}}|{{!}}class="info-both" colspan="2"{{!}}{{{timelord}}}{{#if:{{{timelord|}}}|{{#set:Has image=Template:{{{timelord|}}}|}} }}}}
|-
|-
{{#if:{{{aka|}}}|{{!}}class="info-left"{{!}}Main aliases:}}
{{#if:{{{aka|}}}|{{!}}class="info-left"{{!}}Main aliases:}}

Revision as of 02:10, 4 March 2014

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.