Difference between revisions of "Template:MediaCitation"

From BIONICLEsector01
(Update to use ref tags. I assigned titles italics (or not) pretty arbitrarily. Feel free to change them as needed)
(Add noepisodenameperiod parameter)
 
Line 1: Line 1:
 
<includeonly>{{#tag:ref
 
<includeonly>{{#tag:ref
|{{#if: {{{episodenumber|{{{2|}}}}}}|{{#if: {{{episodename|}}}|"{{{episodetype|Episode}}} {{{episodenumber|{{{2|}}}}}}: {{{episodename}}}."|"{{{episodetype|Episode}}} {{{episodenumber|{{{2|}}}}}}."}}|{{#if: {{{episodename|}}}|"{{{episodename}}}."|}}}}
+
|{{#if: {{{episodenumber|{{{2|}}}}}}|{{#if: {{{episodename|}}}|"{{{episodetype|Episode}}} {{{episodenumber|{{{2|}}}}}}: {{{episodename}}}{{#if: {{{noepisodenameperiod|}}}||.}}"|"{{{episodetype|Episode}}} {{{episodenumber|{{{2|}}}}}}."}}|{{#if: {{{episodename|}}}|"{{{episodename}}}{{#if: {{{noepisodenameperiod|}}}||.}}"|}}}}
  
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
Line 69: Line 69:
 
|<code>episodename</code> '''(optional)'''
 
|<code>episodename</code> '''(optional)'''
 
|The name of the episode to cite in the work.
 
|The name of the episode to cite in the work.
 +
 +
Default: nothing
 +
|-
 +
|<code>noepisodenameperiod</code> '''(optional)'''
 +
|Give this parameter any value if <code>episodename</code> ends in punctuation. This will tell the template not to place a period after <code>episodename</code>.
  
 
Default: nothing
 
Default: nothing
Line 105: Line 110:
 
* start time and end time{{MediaCitation|B:MoL|starttime=3:03|endtime=3:11}}
 
* start time and end time{{MediaCitation|B:MoL|starttime=3:03|endtime=3:11}}
 
* episode number and episode name{{MediaCitation|TSftMoL|episodenumber=5|episodename=Nuju's Finding}}
 
* episode number and episode name{{MediaCitation|TSftMoL|episodenumber=5|episodename=Nuju's Finding}}
 +
* episode number and episode name ending in punctuation{{MediaCitation|BOA|episodenumber=4|episodename=Le-Koro Liberated!|noepisodenameperiod=true}}
 
* using the same ref multiple times{{MediaCitation|BOA|episodenumber=2}}
 
* using the same ref multiple times{{MediaCitation|BOA|episodenumber=2}}
  
 
{{reflist}}
 
{{reflist}}
 
</noinclude>
 
</noinclude>

Latest revision as of 19:39, 22 May 2020

Documentation

This template produces citations for miscellaneous works including video games, animations, and CDs.

Parameters

Parameter Function
(first parameter) The abbreviation representing the piece of media being cited.
(second parameter) (optional) Behaves the same as episodenumber. (This is used for backwards compatibility.)
episodenumber (optional) The number of the episode to cite in the work.

Default: nothing

episodename (optional) The name of the episode to cite in the work.

Default: nothing

noepisodenameperiod (optional) Give this parameter any value if episodename ends in punctuation. This will tell the template not to place a period after episodename.

Default: nothing

episodetype (optional) The term used for divisions of the work. For example, some works may be divided into "Books" instead of "Episodes," so you could set episodetype to Book and the template would display "Book" wherever "Episode" would usually go.

Default: Episode

time (optional) The timestamp to cite in the work.

If citing a time interval, use starttime and endtime instead.

Default: nothing

starttime (optional) The start time of the time interval to cite in the work.

If citing just one time, use time instead.

Default: nothing

endtime (optional; required if starttime is specified) The end time of the time interval to cite in the work.

If citing just one time, use time instead.

Default: nothing

Examples

  • episode number[1]
  • episode number (using 2nd parameter)[2]
  • time[3]
  • start time and end time[4]
  • episode number and episode name[5]
  • episode number and episode name ending in punctuation[6]
  • using the same ref multiple times[1]
  1. 1.0 1.1 "Episode 2." Bohrok Online Animations.
  2. "Episode 3." Bohrok-Kal Online Animations.
  3. BIONICLE 3: Web of Shadows, 1:01:30.
  4. BIONICLE: Mask of Light, 3:03-3:11.
  5. "Episode 5: Nuju's Finding." The Search for the Mask of Light.
  6. "Episode 4: Le-Koro Liberated!" Bohrok Online Animations.