Template:Infobox Location: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(adding video abilities)
No edit summary
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><div id="infobox-exterior">  
<infobox theme="infobox">
{|  class="infobox-interior"
<title source="name"><default>{{da smw|{{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}}}|}}}}}}
</caption>
|-
</image>
{{#if:{{{aka|}}}|{{!}}class="info-left"{{!}}Also called:}}
<image source="image2">
{{#if:{{{aka|}}}|{{!}}class="info-right"{{!}}{{{aka}}}}}
<caption source="caption2">
|-
<default>{{#if:{{{image2|}}}|{{#set:Has image=File:{{{image2|}}}}}|}}</default>
{{ #if: {{{type|}}}|{{!}}class="info-left"{{!}}Type:}}
</caption>
{{ #if: {{{type|}}}|{{!}}class="info-right"{{!}}{{{type}}}}}
</image>
|-
<data source="aka"><label>Also called:</label></data>
{{ #if: {{{location|}}}|{{!}}class="info-left"{{!}}Location:}}
<data source="type"><label>Type:</label></data>
{{ #if: {{{location|}}}|{{!}}class="info-right"{{!}}{{{location}}}}}
    <data source="location"><label>Location:</label></data>
|-
<data source="moons"><label>Moons:</label></data>
{{ #if: {{{moons|}}}|{{!}}class="info-left"{{!}}Moons:}}
    <data source="made by"><label>Made by:</label></data>
{{ #if: {{{moons|}}}|{{!}}class="info-right"{{!}}{{{moons}}}}}
<data source="natives"><label>Natives:</label></data>
|-
<data source="first mention"><label>First mentioned in:</label><format>''[[first mention::{{{first mention}}}|{{da smw|{{{first mention}}}}}]]''</format></data>
{{ #if: {{{natives|}}}|{{!}}class="info-left"{{!}}Natives:}}
<data source="first mention cs"><label>First mentioned in:</label><format>{{cite source|{{{first mention cs}}}}}{{#set:first mention={{{first mention cs}}}}}</format></data>
{{ #if: {{{natives|}}}|{{!}}class="info-right"{{!}}{{{natives}}}}}
<data source="first"><label>First appearance:</label><format>''[[first appearance::{{{first}}}|{{da smw|{{{first}}}}}]]''</format></data>
|-
<data source="first cs"><label>First appearance:</label><format>{{cite source|{{{first cs}}}}}{{#set:first appearance={{{first cs}}}}}</format></data>
{{ #if: {{{first|}}}|{{!}}class="info-left"{{!}}First seen in:}}
<data source="only"><label>Appearance:</label><format>''[[first appearance::{{{only}}}|{{da smw|{{{only}}}}}]]''</format></data>
{{ #if: {{{first|}}}|{{!}}class="info-right"{{!}}''{{dab away|{{{first}}}}}''}}
<data source="only cs"><label>Appearance:</label><format>{{cite source|{{{only cs}}}}}{{#set:first appearance={{{only cs}}}}}</format></data>
|-
<data source="appearances"><label>Appearances:</label></data>
{{ #if: {{{first mention|}}}|{{!}}class="info-left"{{!}}First mentioned in:}}
    <group>
{{ #if: {{{first mention|}}}|{{!}}class="info-right"{{!}}''{{dab away|{{{first mention}}}}}''}}
      <header>Official trailer</header>
|-
      <data source="trailer"><format>{{video|{{{trailer}}}|250px|center}}</format></data>
{{#if:{{{only|}}}|{{!}}class="info-left"{{!}}Appearance:}}
    </group>
{{#if:{{{only|}}}|{{!}}class="info-right"{{!}}''{{dab away|{{{only}}}}}''}}
    <group>
|-
      <header>{{{clip name|Memorable moment}}}</header>
{{#if:{{{appearances|}}}|{{!}}class="info-left"{{!}}Appearances:}}
      <data source="clip"><format>{{video|{{{clip}}}|250px|center}}</format></data>
{{#if:{{{appearances|}}}|{{!}}class="info-right"{{!}}{{{appearances}}}}}
</group>
|-
    <group>
|-
      <header>{{{clip2 name|Another memorable moment}}}</header>
{{#if:{{{trailer|}}}|!colspan="3"{{!}}Official trailer|}}
      <data source="clip2"><format>{{video|{{{clip2}}}|250px|center}}</format></data>
|-
</group>
{{#if:{{{trailer|}}}|{{!}}class="info-both" colspan="2" style="margin-top:3px;"{{!}}[[File:{{{trailer}}}|250px]] }}
    <group>
|-
      <header>{{{clip3 name|One more memorable moment}}}</header>
{{#if:{{{clip|}}}|!colspan="3"{{!}}Memorable moment|}}
      <data source="clip3"><format>{{video|{{{clip3}}}|250px|center}}</format></data>
|-
</group>
{{#if:{{{clip|}}}|{{!}}class="info-both" colspan="2" style="margin-top:3px;"{{!}}[[File:{{{clip}}}|250px]] }}
    <group>
|-
      <header>{{{fullvid name|Full video}}}</header>
{{#if:{{{clip2|}}}|!colspan="3"{{!}}Another memorable moment|}}
      <data source="fullvid"><format>{{video|{{{fullvid}}}|250px|center}}</format></data>
|-
</group>
{{#if:{{{clip2|}}}|{{!}}class="info-both" colspan="2" style="margin-top:3px;"{{!}}[[File:{{{clip2}}}|250px]] }}
    <group>
|-
      <header>{{{bts name|Behind the scenes video}}}</header>
{{#if:{{{clip3|}}}|!colspan="3"{{!}}One more memorable moment|}}
      <data source="bts"><format>{{video|{{{bts}}}|250px|center}}</format></data>
|-
</group>
{{#if:{{{clip3|}}}|{{!}}class="info-both" colspan="2" style="margin-top:3px;"{{!}}[[File:{{{clip3}}}|250px]] }}
    <group>
|-
      <header>More behind the scenes stuff</header>
{{#if:{{{fullvid|}}}|!colspan="3"{{!}}Full video|}}
      <data source="bts2"><format>{{video|{{{bts2}}}|250px|center}}</format></data>
|-
</group>
{{#if:{{{fullvid|}}}|{{!}}class="info-both" colspan="2" style="margin-top:3px;"{{!}}[[File:{{{fullvid}}}|250px]] }}
<group>
|-
<header>Another behind the scenes moment</header>
{{#if:{{{bts|}}}|!colspan="3"{{!}}Behind the scenes video|}}
      <data source="bts3"><format>{{video|{{{bts3}}}|250px|center}}</format></data>
|-
</group>
{{#if:{{{bts|}}}|{{!}}class="info-both" colspan="2" style="margin-top:3px;"{{!}}[[File:{{{bts}}}|250px]] }}
<group layout="horizontal">
|}</div></includeonly><noinclude>{{documentation}}[[Category:Infoboxes|{{PAGENAME}}]]</noinclude>
        <header>Leitmotif</header>
  <data source="leitmotif"><label>{{{leitmotif name|}}}</label><format>{{{leitmotif}}}</format></data>
</group>
</infobox>
<noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude>

Latest revision as of 19:56, 19 February 2024

Instructions for {{Infobox Location}}
{{Infobox Location}} can be used for a variety of different locations, from individual buildings to whole galaxies.

Usage

How you use the template depends on the type of location you're dealing with: