Template:Infobox Object: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(adding hidden field to "origin")
No edit summary
(67 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{|
<infobox theme="infobox">
|}
<title source="name"><default>{{da smw|{{PAGENAME}}}}</default></title>
{| border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 .5em 1em; width:250px; background:Whitesmoke; border-collapse:collapse; border:1px solid #999; font-size:smaller; line-height:1.5; "
<image source="image">
<caption source="caption">
<default>{{#if:{{{image|}}}|{{#set:Has image=File:{{{image|}}}}}|}}</default>
</caption>
</image>
<image source="image2">
<caption source="caption">
<default>{{#if:{{{image2|}}}|{{#set:Has image=File:{{{image2|}}}}}|}}</default>
</caption>
</image>
<data source="aka"><label>Main aliases:</label></data>
<data source="type"><label>Type:</label></data>
<data source="location"><label>Location:</label></data>
<data source="origin"><label>Place of origin:</label></data>
<data source="made by"><label>Made by:</label></data>
<data source="used by"><label>Used by:</label></data>
<data source="first mention"><label>First mentioned in:</label><format>''[[first mention::{{{first mention}}}|{{da smw|{{{first mention}}}}}]]''</format></data>
<data source="first mention cs"><label>First mentioned in:</label><format>{{cite source|{{{first mention cs}}}}}{{#set:first mention={{{first mention cs}}}}}</format></data>
<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>
<data source="only"><label>Appearance:</label><format>''[[first appearance::{{{only}}}|{{da smw|{{{only}}}}}]]''</format></data>
<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>
<data source="actor"><label>Main actor:</label><format>[[actor::{{{actor}}}|{{da smw|{{{actor}}}}}]]</format></data>
    <data source="main actor"><label>Main TV actor:</label><format>[[main TV actor::{{{main actor}}}|{{da smw|{{{main actor}}}}}]]</format></data>
    <data source="voice actor"><label>Main voice actor:</label><format>[[main voice actor::{{{voice actor}}}|{{da smw|{{{voice actor}}}}}]]</format></data>
    <data source="other actor"><label>Other actors:</label><format>[[other actor::{{{other actor}}}]]{{#if:{{{other actor2|}}}|, [[other actor::{{{other actor2}}}]]}}{{#if:{{{other actor3|}}}|, [[other actor::{{{other actor3}}}]]}}{{#if:{{{other actor4|}}}|, [[other actor::{{{other actor4}}}]]}}{{#if:{{{other actor5|}}}|, [[other actor::{{{other actor5}}}]]}}{{#if:{{{other actor6|}}}|, [[other actor::{{{other actor6}}}]]}}{{#if:{{{other actor7|}}}|, [[other actor::{{{other actor7}}}]]}}{{#if:{{{other actor8|}}}|, [[other actor::{{{other actor8}}}]]}}{{#if:{{{other actor9|}}}|, [[other actor::{{{other actor9}}}]]}}{{#if:{{{other actor10|}}}|, [[other actor::{{{other actor10}}}]]}}{{#if:{{{other actor11|}}}|, [[other actor::{{{other actor11}}}]]}}{{#if:{{{other actor12|}}}|, [[other actor::{{{other actor12}}}]]}}</format></data>
    <data source="other voice actor"><label>Other voice actors:</label></data>


| bgcolor=white align="center" colspan="2" | {{{image|No image available}}}
    <group>
|- valign="top"
      <header>Official trailer</header>
| align="center" colspan=2 bgcolor="Slategray" style="border-bottom:0px solid gray; font-size:larger; color:Whitesmoke;" | '''{{{object name}}}'''
      <data source="trailer"><format>{{video|{{{trailer}}}|250px|center}}</format></data>
|-
    </group>
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" width="80pt" | '''Type:'''
    <group>
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{type}}}
      <header>{{{clip name|Memorable moment}}}</header>
|- class{{{origin}}}="hiddenStructure" style="vertical-align: top;"
      <data source="clip"><format>{{video|{{{clip}}}|250px|center}}</format></data>
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Created by:'''
</group>
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{origin}}}
    <group>
|- class{{{appearances}}}="hiddenStructure" style="vertical-align: top;"
      <header>{{{clip2 name|Another memorable moment}}}</header>
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Appearances:'''
      <data source="clip2"><format>{{video|{{{clip2}}}|250px|center}}</format></data>
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{appearances}}}
</group>
|- valign="top"
    <group>
|}
      <header>{{{clip3 name|One more memorable moment}}}</header>
<noinclude>
      <data source="clip3"><format>{{video|{{{clip3}}}|250px|center}}</format></data>
==Usage==
</group>
Copy and paste '''all''' of the text below onto whichever article page it is needed for (even if some fields are not needed copy '''all''' of the text).
    <group>
 
      <header>{{{fullvid name|Full video}}}</header>
<pre>
      <data source="fullvid"><format>{{video|{{{fullvid}}}|250px|center}}</format></data>
{{Infobox Object
</group>
|object name  =
    <group>
|type          =
      <header>{{{bts name|Behind the scenes video}}}</header>
|origin        =
      <data source="bts"><format>{{video|{{{bts}}}|250px|center}}</format></data>
|appearances  =
</group>
}}
    <group>
</pre>
      <header>More behind the scenes stuff</header>
 
      <data source="bts2"><format>{{video|{{{bts2}}}|250px|center}}</format></data>
==Description of fields==
</group>
<pre>
<group>
{{Infobox Object
<header>Another behind the scenes moment</header>
|object name   = Object's name
      <data source="bts3"><format>{{video|{{{bts3}}}|250px|center}}</format></data>
|type          = Type of object it is
</group>
|origin        = Where the object is from
<group layout="horizontal">
|appearances  = Stories it has appeared in
      <header>Leitmotif</header>
}}
  <data source="leitmotif"><label>{{{leitmotif name|}}}</label><format>{{{leitmotif}}}</format></data>
</pre>
</group>
 
</infobox><noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude>
[[Category:Infoboxes|Object]]</noinclude>

Revision as of 19:59, 19 February 2024

Instructions for {{Infobox Object}}
{{Infobox Object}} is the infobox for in-universe objects.

Usage

Cut and paste the entire framework seen below into your article.

{{Infobox Object
|name          = 
|aka           =
|image         = 
|type          = 
|origin        =
|made by       =
|used by       =
|first mention =
|first         = 
|only          =
|appearances   =  
|clip          =
|clip2         =
|clip3         =
}}