Template:Infobox Magazine: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
No edit summary
 
(91 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{|
<includeonly><infobox theme="infobox">
|}
<!--  
<div>
{| border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 .5em 1em; width:250px; background:#f1f4fa; border-collapse:collapse; border:1px solid #999; font-size:smaller; line-height:1.5; "


| bgcolor=white align="center" colspan="2" | {{{image}}}
    Using "name2" below in order to ignore a lot of,
|- valign="top"
    but not universal, usage of "name". This variable
| align="center" colspan=2 bgcolor="#0041b7" style="border-bottom:0px solid gray; font-size:larger; color:white;" | '''{{{magazine name}}}'''
    in this infobox has been used variously over Tardis'
|-
    history, and is now used in an odd way to give the
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" width="80pt" | '''Issue Number:'''
    full name of the magazine, but not the issue.
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{issue number}}}
 
|- valign="top"
-->
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Cover Date:'''
 
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{cover date}}}
<title source="name2"><default>{{PAGENAME}}</default></title>
|- valign="top"
 
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Format:'''
<!--
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{format}}}
{{#if:{{{issue count|}}}|{{#if:{{{publication year|}}}|<div style=font-size:80%>{{#ifeq:{{{publication year|}}}|TBA|TBA|[[{{{publication year}}} (releases)|<span style=color:white>{{{publication year}}}</span>]]}}{{#if:{{{publication year2|}}}|-{{#ifeq:{{{publication year2|}}}|present|present|[[{{{publication year2}}} (releases)|<span style=color:white>{{#sub:{{{publication year2}}}|2|2}}</span>]]}}</div>|}}|}}|}}</default></title>
|- valign="top"
-->
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Editor:'''
<image source="image">
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{editor}}}
<caption source="caption">
|- valign="top"
<default>{{#if:{{{image|}}}|{{#set:Has image=File:{{{image|}}}}}|}}</default>
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Publisher:'''
</caption>
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{publisher}}}
</image>
|- valign="top"
<image source="image2">
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Previous Issue:'''
<caption source="caption2">
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{previous issue}}}
<default>{{#if:{{{image2|}}}|{{#set:Has image=File:{{{image2|}}}}}|}}</default>
|- valign="top"
</caption>
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Next Issue:'''
</image>
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{next issue}}}
 
|- valign="top"
<!-- Data -->
|}
 
</div><noinclude>[[Category:Infoboxes|Magazine]]</noinclude>
    <data source="issue count"><format>{{#replace:{{magazine count|{{#replace:{{{issue count}}}|yes|0}}|{{{issue cat|{{#explode:{{{first issue|}}}||0}} issues}}}|{{#if:{{{issue cat2|}}}|{{{issue cat2}}}|}}}} issues|1 issues|1 issue}} {{#if:{{{story count|}}}| comprising {{#replace:{{{story count}}} stories|1 stories|1 story}}|}}</format></data>
 
<data source="uk price"><label>Price (in GBP):</label></data>
<data source="us price"><label>Price (in USD):</label></data>
<data source="other price"><label>Price (in {{{currency}}}):</label></data>
<data source="cover date"><label>Cover date:</label></data>
<data source="release date"><label>Release date:</label></data>
<data source="release date bit"><label>Release date:</label></data>
<data source="format"><label>Format:</label></data>
<data source="editor"><label>Editor:</label></data>
<data source="publisher"><label>Publisher:</label></data>
<data source="collected in"><label>Collected in:</label></data>
<group>
    <header>Details</header>
<data source="fig"><label>[[DWFC figurines|Figurine]]:</label><format>[[DWFC figurine::{{{fig}}}|{{{fig name|{{da smw|{{{fig}}}}}}}}]]''</format></data>
<data source="dvd"><label>DVDs included:</label><format>''[[DVD included::{{{dvd}}}|{{da smw|{{{dvd}}}}}]]''{{#if:{{{dvd2|}}}|, ''[[DVD included::{{{dvd2}}}|{{da smw|{{{dvd2}}}}}]]''}}{{#if:{{{dvd3|}}}|, ''[[DVD included::{{{dvd3}}}|{{da smw|{{{dvd3}}}}}]]''}}</format></data>
<data source="mit"><label>Moment in Time:</label><format>''[[DWFC Moment in Time::{{{mit}}}|{{da smw|{{{mit}}}}}]]''</format></data>
</group>
 
<!-- Video -->
 
      <group>
      <header>Official trailer</header>
      <data source="trailer"><format>{{video|{{{trailer}}}|250px|center}}</format></data>
      </group>
 
      <group>
      <header>Another official trailer</header>
      <data source="trailer2"><format>{{video|{{{trailer2}}}|250px|center}}</format></data>
      </group>
 
      <group>
      <header>{{{clip name|Memorable moment}}}</header>
      <data source="clip"><format>{{video|{{{clip}}}|250px|center}}</format></data>
      </group>
     
      <group>
      <header>{{{clip2 name|Another memorable moment}}}</header>
      <data source="clip2"><format>{{video|{{{clip2}}}|250px|center}}</format></data>
      </group>
     
      <group>
      <header>{{{clip3 name|One more memorable moment}}}</header>
      <data source="clip3"><format>{{video|{{{clip3}}}|250px|center}}</format></data>
        </group>
     
        <group>
        <header>{{{fullvid name|Full video}}}</header>
      <data source="fullvid"><format>{{video|{{{fullvid}}}|250px|center}}</format></data>
    </group>
 
        <group>
        <header>{{{bts name|Behind the scenes video}}}</header>
      <data source="bts"><format>{{video|{{{bts}}}|250px|center}}</format></data>
</group>
 
        <group>
        <header>More behind the scenes stuff</header>
      <data source="bts2"><format>{{video|{{{bts2}}}|250px|center}}</format></data>
</group>
 
<group>
<header>Another behind the scenes moment</header>
      <data source="bts3"><format>{{video|{{{bts3}}}|250px|center}}</format></data>
</group>
 
<group>
        <header>{{#if:{{{fig|}}}|{{{fig name|{{da smw|{{{fig}}}}}}}} figurine|Figurine}}</header>
        <data source="figurine vid"><format>{{video|{{{figurine vid}}}|250px|center}}</format></data>
</group>
 
<!-- Audio -->
 
<group layout="horizontal">
        <header>Official audio trailer</header>
  <data source="soundcloudtrailer"><format>{{soundcloud|{{{soundcloudtrailer}}}}}</format></data>
</group>
 
<group layout="horizontal">
        <header>Another official audio trailer</header>
  <data source="soundcloudtrailer2"><format>{{soundcloud|{{{soundcloudtrailer2}}}}}</format></data>
</group>
<group layout="horizontal">
        <header>Audio clip</header>
  <data source="soundcloudclip"><format>{{soundcloud|{{{soundcloudclip}}}}}</format></data>
</group>
<group layout="horizontal">
        <header>Another audio clip</header>
  <data source="soundcloudclip2"><format>{{soundcloud|{{{soundcloudclip2}}}}}</format></data>
</group>
 
<group layout="horizontal">
        <header>Music suite</header>
  <data source="musicsuite"><format>{{soundcloud|{{{musicsuite}}}}}</format></data>
</group>
 
<group layout="horizontal">
        <header>Music sample</header>
  <data source="sample"><label>{{{sample name|}}}</label><format>{{soundcloud|{{{sample}}}}}</format></data>
</group>
<group layout="horizontal">
        <header>Behind the scenes interview</header>
<data source="soundcloudbts"><format>{{soundcloud|{{{soundcloudbts}}}}}</format></data>
    </group>
<group layout="horizontal">
        <header>Audio commentary</header>
<data source="audio commentary"><format>{{soundcloud|{{{audio commentary}}}}}</format></data>
</group>
 
<group layout="horizontal">
        <header>Full audio</header>
<data source="fullaud"><format>{{soundcloud|{{{fullaud}}}}}</format></data>
</group>
 
<!-- Navigation -->
    <group layout="horizontal">
    <!--
     
      Having header doesn't universally work,
      because {{{series}}} is absent on hundreds
      of magazine pages. But it does exist
      on some pages, so the best thing to do is
      just to eliminate it altogether.
-->
    <header>{{{series}}}</header>
 
    <data source="previous issue"><label>&larr; Previous</label><default><span style="font-size:150%">{{#if:{{{prev override|}}}|{{#ifeq:{{{prev override|}}}|none|none|[[{{{prev override}}}]]}}|
{{#ifeq:{{#expr:{{#explode:{{PAGENAME}}| |1}}-1}}|0|<span style="font-size:80%">first issue</span>|[[{{#explode:{{PAGENAME}}| |0}} {{#expr:{{#explode:{{PAGENAME}}| |1}}-1}}|{{#expr:{{#explode:{{PAGENAME}}| |1}}-1}}]]}}
}}</span></default></data>
    <data source="next issue"><label>Next &rarr;</label><default><span style="font-size:150%">{{#if:{{{next override|}}}|{{#ifeq:{{{next override|}}}|none|none|[[{{{next override}}}]]}}|[[{{#explode:{{PAGENAME}}| |0}} {{#expr:{{#explode:{{PAGENAME}}| |1}}+1}}|{{#expr:{{#explode:{{PAGENAME}}| |1}}+1}}]]}}</span></default></data>
    </group>
 
</infobox></includeonly><noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude>

Latest revision as of 19:57, 19 February 2024

Instructions for {{Infobox Magazine}}
{{Infobox Magazine}} is the primary template on this wiki for magazines. Typically, it's used for any magazine or comic issue that has a number. Titles for such magazines must obey the rules set forth at T:MAGS for this template to work properly.

Usage

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).

  • As of March 2012, this template has no {{{name}}} variable. The title of the infobox is automatically controlled by the template and cannot be overriden. It is always equal to the name of the page for this particular infobox.
  • Because T:MAGS standardised the naming of magazine issues in a mathematically useful way, {{{previous issue}}} and {{{next issue}}} can now be calculated automatically. In those rare cases, as with the special issues of DWM, like DWMS Summer 1982, when issues are not numbered, you must now use {{{prev override}}} and {{{next override}}} to, well, override the automatic links to the surrounding issues.
  • In May 2017, all instances of {{{previous issue}}} and {{{next issue}}} were stripped from the wiki. Please don't re-add, as this will cause inconsistent formatting.
  • This template's navigation section will always consider an "issue 0" an impossibility. In the unlikely event of an actual issue 0, you'll have to use {{{prev override}}} to create a link to it.
{{Infobox Magazine
|image            =
|caption          = 
|image2           =
|caption2         =
|price uk         = 
|price us         = 
|price other      = 
|currency         =
|cover date       = 
|format           = 
|editor           = 
|publisher        = 
}}