From UnwelcomeGuests
Jump to: navigation, search
(choice parameter)
m
Line 49: Line 49:
 
|image_caption={{{image_caption}}}
 
|image_caption={{{image_caption}}}
 
}} }}<br/>
 
}} }}<br/>
<table style="border-collapse: separate; border-spacing: 0; border-width: 1px; border-style: solid; border-color: #873200; padding: 0; color:#{{{textcolor}}};" cellpadding="1"><tr><td style="background-color:#cc6622; border-style: solid; border-width: 0 0 1px 0">{{#if: {{{choice|}}}|[[image:star.png|link=Editor's Choice|title=This is a choice episode|alt=Editor's Choice]]|}} {{#if: {{{date|}}} |'''<big>⌚</big> {{#time: D j F Y | {{{date}}}}}''' | <font color="red">Missing 'date'</font/> }}&nbsp; {{#if: {{{contributors|}}} | [[:Category:Speaker | <big>☻</big>]] '''{{{contributors|}}}'''|}}{{#if: {{{possible_contributors|}}} | <br/> <font color="black">[[:Category:Speaker | <big>☺</big>?]] {{{possible_contributors|}}} </font> |}}</td></tr><tr><td style="padding:12px; background-color:#ffffcc;">{{#if: {{{number|}}} | <mp3>{{{number}}}</mp3><br /> <small>[http://www.unwelcomeguests.net/archive/ug{{{number}}}-hour1mix.mp3 Download Hour1]  [http://www.unwelcomeguests.net/archive/ug{{{number}}}-hour2mix.mp3 Download Hour2]</small>|}}
+
<table style="border-collapse: separate; border-spacing: 0; border-width: 1px; border-style: solid; border-color: #873200; padding: 0; color:#{{{textcolor}}};" cellpadding="1"><tr><td style="background-color:#cc6622; border-style: solid; border-width: 0 0 1px 0">{{#if: {{{choice|}}}|[[image:star.png|link=Editor's Choice|alt=This is a choice episode]]|}} {{#if: {{{date|}}} |'''<big>⌚</big> {{#time: D j F Y | {{{date}}}}}''' | <font color="red">Missing 'date'</font/> }}&nbsp; {{#if: {{{contributors|}}} | [[:Category:Speaker | <big>☻</big>]] '''{{{contributors|}}}'''|}}{{#if: {{{possible_contributors|}}} | <br/> <font color="black">[[:Category:Speaker | <big>☺</big>?]] {{{possible_contributors|}}} </font> |}}</td></tr><tr><td style="padding:12px; background-color:#ffffcc;">{{#if: {{{number|}}} | <mp3>{{{number}}}</mp3><br /> <small>[http://www.unwelcomeguests.net/archive/ug{{{number}}}-hour1mix.mp3 Download Hour1]  [http://www.unwelcomeguests.net/archive/ug{{{number}}}-hour2mix.mp3 Download Hour2]</small>|}}
 
{{#if: {{{summary|}}} | ''{{{summary|}}}'' | <font color="red">Missing 'summary'</font/>}}</td></tr></table>{{#if: {{{description|}}} | {{{description|}}} |}}{{#if: {{{music|}}} | <br />''<font color="#88cc55">Music: {{{music|}}}''</font> |}}{{#if: {{{credits|}}} | <br />''<font color="#888800">{{{credits|}}}''</font>|}}{{#if: {{{note|}}} | <br />''<font color="#cc5588">{{{note|}}}''</font> |}}{{DiscussInvite}}{{#if:{{{rebroadcast|}}} | <br />''<font color="#cc8855">This episode rebroadcasts content from {{{rebroadcast|}}}.''</font> |}}{{#if: {{{prebroadcast|}}} | <br />''<font color="#cc8855">Some of this episode's content is repeated in episode {{{prebroadcast|}}}.''</font> |}}{{#if: {{{similar|}}} | <br />''<font color="#8855cc">{{{similar}}}.''</font>|}}{{#if: {{{content|}}} | {{#if: {{{possible_content|}}} |''<br/>Content:''|}}{{ContentTable| content={{{content}}} | textcolor=000}} |}}{{#if: {{{possible_content|}}} | {{#if: {{{content|}}} || <br/>}} <font color="#888888">''Possible Content:</font> {{ContentTable| content={{{possible_content}}} | textcolor=cd6521}} |}}{{#if: {{{possible_music|}}} | <br />''Possible Music: {{{possible_music|}}}'' |}}<center><small>{{#if: {{{number|}}} | <big><big><big>{{#ifexpr: ({{{number}}}>1) | '''[[{{#expr:({{{number}}}-1)}} | {{#expr:({{{number}}}-1)}}&nbsp;⇦]]''' </big></big></big> &nbsp; &nbsp; &nbsp; |<small>}} To link to this episode, please use the short, permanent URL:</small> <span class="plainlinks"><font face="courier">'''http://UnwelcomeGuests.net/{{{number}}}'''</font></span> <big><big> &nbsp; &nbsp; &nbsp; '''<!--  
 
{{#if: {{{summary|}}} | ''{{{summary|}}}'' | <font color="red">Missing 'summary'</font/>}}</td></tr></table>{{#if: {{{description|}}} | {{{description|}}} |}}{{#if: {{{music|}}} | <br />''<font color="#88cc55">Music: {{{music|}}}''</font> |}}{{#if: {{{credits|}}} | <br />''<font color="#888800">{{{credits|}}}''</font>|}}{{#if: {{{note|}}} | <br />''<font color="#cc5588">{{{note|}}}''</font> |}}{{DiscussInvite}}{{#if:{{{rebroadcast|}}} | <br />''<font color="#cc8855">This episode rebroadcasts content from {{{rebroadcast|}}}.''</font> |}}{{#if: {{{prebroadcast|}}} | <br />''<font color="#cc8855">Some of this episode's content is repeated in episode {{{prebroadcast|}}}.''</font> |}}{{#if: {{{similar|}}} | <br />''<font color="#8855cc">{{{similar}}}.''</font>|}}{{#if: {{{content|}}} | {{#if: {{{possible_content|}}} |''<br/>Content:''|}}{{ContentTable| content={{{content}}} | textcolor=000}} |}}{{#if: {{{possible_content|}}} | {{#if: {{{content|}}} || <br/>}} <font color="#888888">''Possible Content:</font> {{ContentTable| content={{{possible_content}}} | textcolor=cd6521}} |}}{{#if: {{{possible_music|}}} | <br />''Possible Music: {{{possible_music|}}}'' |}}<center><small>{{#if: {{{number|}}} | <big><big><big>{{#ifexpr: ({{{number}}}>1) | '''[[{{#expr:({{{number}}}-1)}} | {{#expr:({{{number}}}-1)}}&nbsp;⇦]]''' </big></big></big> &nbsp; &nbsp; &nbsp; |<small>}} To link to this episode, please use the short, permanent URL:</small> <span class="plainlinks"><font face="courier">'''http://UnwelcomeGuests.net/{{{number}}}'''</font></span> <big><big> &nbsp; &nbsp; &nbsp; '''<!--  
 
Compare the current time (in Unix seconds) with 7 days (7*24*60*60) after the date of this show.
 
Compare the current time (in Unix seconds) with 7 days (7*24*60*60) after the date of this show.
 
     Link either to the next published show, or the "Next week's show" link.   
 
     Link either to the next published show, or the "Next week's show" link.   
 
--> {{#ifexpr: ({{#time: U}} > {{#expr: 604800 + {{#time: U | {{{date|}}}}} }}) | [[{{#expr:({{{number}}}+1)}} |⇨&nbsp;{{#expr:({{{number}}}+1)}}]] | [[Next week's show | Next&nbsp;⇨]] }}'''</big></big> | This is an episode plan, which is likely to change before being released.</small> }}{{#ifexpr: (0{{{number}}}>1) |</center>|}}</includeonly>
 
--> {{#ifexpr: ({{#time: U}} > {{#expr: 604800 + {{#time: U | {{{date|}}}}} }}) | [[{{#expr:({{{number}}}+1)}} |⇨&nbsp;{{#expr:({{{number}}}+1)}}]] | [[Next week's show | Next&nbsp;⇨]] }}'''</big></big> | This is an episode plan, which is likely to change before being released.</small> }}{{#ifexpr: (0{{{number}}}>1) |</center>|}}</includeonly>

Revision as of 10:18, 18 July 2012

Unwelcome Guests Template:Episode page:

This template manages the layout of an episode.

The main thing to be careful of when editing show source files is not to mess up the curly brackets '{' and '}'.

The different sections of the template begin with a '|' character. i.e.
|number=For episodes, which episode number (will be blank for plans)
|date=When this episode was released (or when the plan was posted)
|title=Short, catchy description
|subtitle=Expansion on/explanation of the description
|image=A unique name of the image for this episode
|summary=About 5 lines of text to give an overview of this episode
|description=More text to tell in detail what this episode contains, which points it makes, etc.
|credits=A line of thanks to anyone other than the contributors who have helped make this episode possible
|content= A list of content items, as {{mp3}}, {{mp4}}, {{pdf}} or {{ppt}} templates
|contributors= A list of names of speakers on this show, as internal links
The less common sections are:

|choice=Set =1 if this episode features in Editor's Choice
|image_caption=Possible text to appear under the image
|music=A list of names, as internal links (this will be blank if the episode has no music content)
|similar=Links to other related shows
|note=Anything else (usually this will be blank)
|rebroadcast=A number of an earlier episode if it contains a significant part of it (usually this will be blank)
|prebroadcast=A number of an later episode that repeats a significant part of it (usually this will be blank)

Episode plans will have the following extra sections:
|possible_content= A list of suggested content items
|possible_contributors= A list of names of suggested speakers on this episode, as internal links
|possible_music= A list of names of suggested music contributors, as internal links