Template:RadioShow

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m
m
 
(57 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 +
__NOEDITSECTION__
 
[[RadioShow|<< back to the RadioShow page]]
 
[[RadioShow|<< back to the RadioShow page]]
{| align="right" cellpadding="0" cellspacing="5" style="position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; border: 1px solid #aaa; background: #fff; float: right; clear: right; width: 20em"
+
{{#ifeq: "abc{{{podcastmp3|}}}" | "abc" | n/a | {{{podcastmp3|}}} }}
| align="center" colspan="2" style="background-color: white; text-align: center;" |
+
{| class="" cellpadding="2" cellspacing="0" <!--
{| width="100%"
+
--> style="float: right; width: 300px; margin: 0 0 1em 1em; border: 2px solid #AAAAAA; background-color: #FFFFFF"
|- class="ext-header"
+
|+ '''[[Form:RadioShow|Add a new RadioShow]]'''
! style="padding: 7px; font-size: 1.5em; color: white; background: #000066" align="center" | [[Image:Radio.png|left|40px]] {{PAGENAME}}
+
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Topic:
+
! colspan="2" <!-- This is the header
 +
--> style="padding-top: 0.5em; color: white; background-color: #AAAAAA" <!--
 +
--> | [[Image:Radio.png|link=|left|40px]] <span style="font-size: 150%;">{{#if:{{{topic|}}}|{{{topic}}}|{{PAGENAME}} }}</span>
 
|-
 
|-
| [[ShowTopic::{{{topic|}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:RadioShow#Participants|Participants]]''': || {{#arraymap: {{{participants|}}}|,|x|[[Has Member::User:x|x]]}}
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Participants:
+
| style="padding: 0 7px;"  | '''[[Template:RadioShow#Time of Recording|Recording]]''': || [[RecordingDate::{{{recording|}}}]]
 
|-
 
|-
| {{#arraymap: {{{participants|}}}|,|x|[[Person::User:x|x]]|,}}  
+
| style="padding: 0 7px;"  | '''[[Template:RadioShow#Time of Broadcast|Broadcast]]''': || [[BroadcastDate::{{{broadcast|}}}]]
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Time of Recording:
+
| style="padding: 0 7px;" | '''[[Template:RadioShow#Time of Podcast Release|Podcast Release]]''': || [[PodcastReleaseDate::{{{podcastrelease|}}}]]
 
|-
 
|-
| [[RecordingDate::{{{recording|}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:RadioShow#Podcast|Podcast]]''': || {{#ifexist: File:{{{podcast}}} | [[File:{{{podcast}}}|noicon]] }}  <br/> {{#ifeq: "x{{{podcastmp3|}}}" | "x" | n/a | {{#tag:flashmp3 |{{{podcastmp3}}} }}  }}
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Time of Broadcast:
+
| colspan="2" style="padding: 0.5em; color: white; background-color: #AAAAAA" | <span style="font-size: 120%;">Tools</span>
 
|-
 
|-
| [[BroadcastDate::{{{broadcast|}}}]]
+
| style="padding: 0 7px;" | '''[[Template:RadioShow#Songs|Songs]]''': || <!--
|-
+
  --> {{#ask:[[Has object type::radiosong]] [[Has title::+]]
! style="padding: 0 7px; background: #CCCCFF" | Time of Podcast Release:
+
|?Has radioshow=Show
|-
+
|?Has artist=Artist
| [[PodcastReleaseDate::{{{podcastrelease|}}}]]
+
|?Has title=Title
|-
+
|?Has duration=Duration
! style="padding: 0 7px; background: #CCCCFF" | Podcast:
+
|?Has license=License
|-
+
|?Has website=Website
| style="text-align: center;" | {{#ifexist: File:{{{podcast}}} | [[File:{{{podcast}}}|noicon]] }}
+
|-
+
| style="text-align: center;" | {{#ifexist: File:{{{podcastmp3}}} |  <flashmp3>{{{podcastmp3}}}</flashmp3> }}
+
|-
+
! style="padding: 0 7px; background: #CCCCFF" | Songs:
+
|-
+
| {{#ask:[[Category:RadioShow]] [[SongTitle::+]]
+
|mainlabel=Show
+
|?SongArtist=Artist
+
|?SongTitle=Title
+
|?SongDuration=Duration
+
|?SongLicense=License
+
|?ArtistWebsite=Website
+
 
|format=broadtable
 
|format=broadtable
|offset=0
+
|limit=0
|limit=-1
+
|headers=show
 +
|mainlabel=-
 +
|link=all
 
|searchlabel=See list of all songs
 
|searchlabel=See list of all songs
 +
|class=sortable wikitable smwtable
 
}}
 
}}
|}
+
|-
 +
| style="padding: 0 7px;"  | '''[[Template:RadioShow#QrCode|QrCode]]''': || {{#qrcode:}}
 
|}
 
|}
 
<!-- *** Let's automate the semantic info *** -->
 
<!-- *** Let's automate the semantic info *** -->
 
[[Category:RadioShow]]
 
[[Category:RadioShow]]
<!-- Unfortunately [[Podcast::File:{{{podcast}}}|noicon]] is incompatible with ogghandler -->
+
{{#ifexist: File:{{{podcastmp3}}} | [[Has Mp3Podcast::{{{podcastmp3}}}| ]] }}
<!-- Also, ifexist doesn't work on [[x]] but only on x, which sucks -->
+
{{#ifexist: File:{{{podcast}}} | [[Has OggPodcast::{{{podcast}}}| ]] }}
{{#ifexist: File:{{{podcast}}} | [[Podcast::File:{{{podcast}}}| ]] }}
+
{{#set:  
{{#ifexist: File:{{{podcastmp3}}} | [[Mp3 Podcast::File:{{{podcast}}}| ]] }}
+
| Has Topic={{{topic|}}}
{{#ifexist: File:{{{podcast}}} | [[PodcastName::{{{podcast}}}| ]] }}
+
| Has date={{{broadcast|}}}  
 +
| StartDate={{{broadcast|}}}  
 +
| EndDate={{#time: Y-m-d H:i | {{{broadcast}}} + 1 hour }}
 +
| Is Recurring=no
 +
| Has location=Radio ARA, Luxembourg
 +
}}
 
<!-- Semantic end-->
 
<!-- Semantic end-->
</includeonly>
 
  
 +
==Structure==
 +
* [[RadioJingle|Jingle]]
 +
* '''Intro: Preview of today's show'''
 +
* '''Review and Outlook: The Hacker [[Calendar]], what Conventions and Events are upcoming?'''
 +
{{#if: {{{broadcast|}}} |
 +
{{#ask: [[Category:Event]] [[Is Recurring::no]]
 +
[[EndDate::>{{{broadcast}}}]]
 +
| ?StartDate=From
 +
| ?EndDate=Till
 +
| ?Location
 +
| sort=StartDate
 +
| limit=6
 +
| format=ul
 +
}}
 +
| <div style="margin:10px;color:red">'''You haven't set a broadcasting date, thus I can't show you a calendar!'''</div> }}
 +
<hr>
 +
* '''Hacker News'''
 +
** If applicable: New [[Projects]] at the space.
 +
** If applicable: Upcoming [[Workshops]].
 +
** Tool news (cf. Linux Magazin)</includeonly>
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
Copy and paste this code or simply use the [[Form:RadioShow]] to add your show.<br/>
+
Please use the [[Form:RadioShow|RadioShow form]] to add a show.
<br/>
+
<pre>
+
{{RadioShow
+
| topic=
+
| participants = <comma separated list of participants>
+
| recording=date
+
| broadcast=date
+
| podcastrelease=date
+
| podcast = <filename.ogg>
+
| podcastmp3 = <filename.mp3>
+
}}
+
</pre>
+
 
</noinclude>
 
</noinclude>

Latest revision as of 16:04, 8 December 2013


[edit] Usage

Please use the RadioShow form to add a show.

Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools