Difference between revisions of "VideoName"

From Sega Retro

Line 1: Line 1:
<includeonly>{{#ifeq:{{{1|}}}|digitiser|''[[Digitiser]]'' (UK) {{#ifeq:{{{noepisodename|}}}|yes||([[Digitiser/Archive/{{#sub:{{{2|}}}|0|4}}|{{{2|}}}]])}}
+
<includeonly>{{#ifeq:{{{1|}}}|digitiser|''[[Digitiser]]'' (UK) {{#if:{{{2|}}}|([[Digitiser/Archive/{{#sub:{{{2|}}}|0|4}}|{{{2|}}}]])}}
 
|{{#ifeq: {{{novideoname|}}} | yes || {{#cargo_query:
 
|{{#ifeq: {{{novideoname|}}} | yes || {{#cargo_query:
 
tables=videonames
 
tables=videonames

Revision as of 15:37, 4 October 2020


Clock.svg
This task is unfinished
This is a wiki task that requires more thought or peer review. An important issue that needs to be solved, which will appear at the top of Sega Retro:Todo until this message is removed.


This template generates a full name for a video, given a name and an episode number (either a number or a date).

Use

{{VideoName|<name>|<episodeno>|novideoname=|noepisodename=|nopubdate=}}

By default this returns a long string - parts can be omitted using the |no(x) fields.

Examples

Code Result
{{VideoName|gamesmastertv}}
GamesMaster (UK)
{{VideoName|gamesmastertv|1x01}}
GamesMaster (UK) "Series 1, episode 1" (1992-01-07, 24:00)
{{VideoName|gamesmastertv|1x01|novideoname=yes}}
"Series 1, episode 1" (1992-01-07, 24:00)
{{VideoName|gamesmastertv|1x01|noepisodename=yes}}
GamesMaster (UK) 1992-01-07
{{VideoName|gamesmastertv|1x01|nopubdate=yes}}
GamesMaster (UK) "Series 1, episode 1"
{{VideoName|gamesmastertv|1x01|novideoname=yes|nopubdate=yes}}
"Series 1, episode 1"
{{VideoName|gamesmastertv|1x01|novideoname=yes|noepisodename=yes}}
1992-01-07
{{VideoName|gamesmastertv|1x01|noepisodename=yes|nopubdate=yes}}
GamesMaster (UK)
{{VideoName|bums|12}}
{{VideoName|digitiser|1995-01-01}}
Digitiser (UK) (1995-01-01)