Difference between revisions of "Template:Cite core"

From The Infosphere, the Futurama Wiki
Jump to navigation Jump to search
m (Removing deprecated parameters.)
m (New method, hopefully it didn't break entirely.)
Line 1: Line 1:
<includeonly><cite style="font-style: normal;">{{#if:{{{quote|}}}|<span style="font-style: italic;">"{{{quote}}}"</span>{{#if:{{{quote author|}}}|&#32;&mdash; {{{quote author}}}|}}<br />|}}{{#if:{{{author|}}}|{{{author}}}{{#if:{{{date|}}}|&#32;({{datestamp|{{{date}}}}})|}}.|}}{{#if:{{{firstname|}}}{{{surname|}}}|{{{surname}}}, {{{firstname}}}{{#if:{{{date|}}}|&#32;({{datestamp|{{{date}}}}})|}}.|}} {{#if:{{{url|}}}|[{{{url}}} {{#if:{{{publisher|}}}|"{{{title|No title}}}"|{{{title}}}}}]}}{{#if:{{{format|}}}|&#32;({{{format}}})|}}{{#if:{{{game commentary|}}}|[[Commentary:Futurama (video game)|Commentary for the game]]|}}{{#if:{{{episode|}}}|{{#ifeq:{{{forcommentary|no}}}|yes|[[Commentary:{{#ifeq:{{{foranimatic|no}}}|yes|Animatic:}}{{{episode}}}|Commentary]] for {{#ifeq:{{{foranimatic|no}}}|yes|animatic of}}&#32;}}{{#ifeq:{{{foranimatic|no}}}|yes|[[Animatic:{{{episode}}}|Animatic]] for&#32;}}"[[{{{episode}}}]]"|}}{{#if:{{{film|}}}|{{#ifeq:{{{forcommentary|no}}}|yes|[[Commentary:{{#ifeq:{{{foranimatic|no}}}|yes|Animatic:}}{{{film}}}|Commentary]] for {{#ifeq:{{{foranimatic|no}}}|yes|animatic of}}&#32;}}{{#ifeq:{{{foranimatic|no}}}|yes|[[Animatic:{{{film}}}|Animatic]] for&#32;}}''[[{{{film|}}}]]''|}}{{#if:{{{dvd location|}}}|{{{dvd location}}}|}}{{#if:{{{dvd which|}}}|&#32;on {{{dvd which}}}{{#if:{{{disc which}}}|, disc {{{disc which}}}|}}|{{#if:{{{dvd film|}}}|&#32;on [[{{{dvd film}}}#The DVD|''{{{dvd film}}}''{{'}}s DVD]]|}}}}. {{#if:{{{publisher|}}}|''{{{publisher}}}''.|{{#if:{{{site|}}}|({{{site}}})|}}}} {{#if:{{{author|}}}{{{firstname|}}}{{{surname|}}}||{{#if:{{{date|}}}|{{datestamp|{{{date}}}}}.|}}}} {{#if:{{{accessdate|}}}|Retrieved on {{datestamp|{{{accessdate}}}}}.|}}</cite></includeonly><noinclude>{{documentation}}</noinclude>
<includeonly><cite style="font-style: normal;"><!--
Quote:
-->{{#if:{{{quote|}}}|<span style="font-style: italic;">"{{{quote}}}"</span>{{#if:{{{quote author|}}}|&#32;&mdash; {{{quote author}}}|}}<br />|}}<!--
Author/speaker:
-->{{#if:{{{author|{{{speaker|}}}}}}|{{{author|{{{speaker}}}}}}<!--
Date applied to the author,
-->{{#if:{{{date|}}}|&#32;({{datestamp|{{{date}}}}})|}}.|}}{{#if:{{{firstname|}}}{{{surname|}}}|{{{surname}}}, {{{firstname}}}{{#if:{{{date|}}}|&#32;({{datestamp|{{{date}}}}})|}}.|}} <!--
URL:
-->{{#if:{{{url|}}}|[{{{url}}} {{#if:{{{publisher|}}}|"{{{title|No title}}}"|{{{title}}}}}]}}<!--
Game commentary (to be replaced):
-->{{#if:{{{format|}}}|&#32;({{{format}}})|}}{{#if:{{{game commentary|}}}|[[Commentary:Futurama (video game)|Commentary for the game]]|}}<!--
Episodes/films/comics:
-->{{#if:{{{url|}}}||{{#if:{{{title|}}}|{{#ifeq:{{{forcommentary|no}}}|yes|[[Commentary:{{#ifeq:{{{foranimatic|no}}}|yes|Animatic:}}{{{title}}}|Commentary]] for {{#ifeq:{{{foranimatic|no}}}|yes|animatic of}}&#32;}}{{#ifeq:{{{foranimatic|no}}}|yes|[[Animatic:{{{title}}}|Animatic]] for&#32;}}for {{#ifeq:{{{isepisode|no}}}|yes|"[[{{{title}}}]]"}}{{#ifeq:{{{isfilm|no}}}|yes|''[[{{{title}}}]]''}}{{#ifeq:{{{iscomic|no}}}|yes|"[[{{{title}}}]]"}}|{{#ifeq:{{{isgame|no}}}|yes|{{{#ifeq:{{{forcommentary|no}}}|yes|[[Commentary:Futurama (video game)|Commentary]] for&#32;}}[[Futurama (video game)|the game]]}}}}}}<!--
OLD WAY
-->{{#if:{{{episode|}}}|{{#ifeq:{{{forcommentary|no}}}|yes|[[Commentary:{{#ifeq:{{{foranimatic|no}}}|yes|Animatic:}}{{{episode}}}|Commentary]] for {{#ifeq:{{{foranimatic|no}}}|yes|animatic of}}&#32;}}{{#ifeq:{{{foranimatic|no}}}|yes|[[Animatic:{{{episode}}}|Animatic]] for&#32;}}"[[{{{episode}}}]]"|}}{{#if:{{{film|}}}|{{#ifeq:{{{forcommentary|no}}}|yes|[[Commentary:{{#ifeq:{{{foranimatic|no}}}|yes|Animatic:}}{{{film}}}|Commentary]] for {{#ifeq:{{{foranimatic|no}}}|yes|animatic of}}&#32;}}{{#ifeq:{{{foranimatic|no}}}|yes|[[Animatic:{{{film}}}|Animatic]] for&#32;}}''[[{{{film|}}}]]''|}}<!--
DVD:
-->{{#if:{{{dvd location|}}}|{{{dvd location}}}|}}{{#if:{{{dvd which|}}}|&#32;on {{{dvd which}}}{{#if:{{{disc which}}}|, disc {{{disc which}}}|}}|{{#if:{{{dvd film|}}}|&#32;on [[{{{dvd film}}}#The DVD|''{{{dvd film}}}''{{'}}s DVD]]|}}}}. <!--
Publisher details:
-->{{#if:{{{publisher|}}}|''{{{publisher}}}''.|{{#if:{{{site|}}}|({{{site}}})|}}}} <!--
Date if no author:
-->{{#if:{{{author|}}}{{{firstname|}}}{{{surname|}}}||{{#if:{{{date|}}}|{{datestamp|{{{date}}}}}.|}}}} <!--
Access date:
-->{{#if:{{{accessdate|}}}|Retrieved on {{datestamp|{{{accessdate}}}}}.|}}</cite></includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 15:27, 25 February 2010

Documentation for {{cite core}}

Use

For use with the cite templates, this builds up the basis for all cite templates, so there is a unified standard beyond all cite templates.

Usage

This template comes with a lot of built-in parameters. If none are supplied, it will at its present state, simply return a full-stop ('.').

quote
A quotation related to the cite.
quote author
An author to the quotation (author/speaker) is assumed when they are the same person.
author/speaker
The author/speaker of a news story, commentary, etc.
firstname
Instead of author/speaker, the first name (along with surname) can be used.
surname
The surname of the author/speaker; see firstname.
date
The date of related to the city, in format YYYY-MM-DD.
accessdate
The date of access to the website in question, so users may reflect on last time the link was certain to work, in format YYYY-MM-DD.
url
The URL to a news story, etc.
title
The title to the URL or to the media, e.g. film or episode or comic
publisher
The publisher of a news article.
site
The site being linked to.
format
The format of the link, e.g. an image
isgame
(Values: yes/no, Default: no) Determine whether it is about the game (can be used together with forcommentary).
isepisode
(Values: yes/no, Default: no) Determine whether it is about an episode (must be used together with title and can be used together with forcommentary and foranimatic).
isfilm
(Values: yes/no, Default: no) Determine whether it is about a film (must be used together with title and can be used together with forcommentary and foranimatic).
forcommentary
(Values: yes/no, Default: no) Determine whether the links are for a commentary (can be used together with foranimatic, though commentary have precedence over animatics).
foranimatic
(Values: yes/no, Default: no) Determine whether the links are for an animatic episode/film/etc.
dvd location
The location of something on a DVD, e.g. DVD menu.
dvd volume
Which DVD volume, e.g. One.
dvd disc
The disc within a volume the episode/content is located.
dvd special
Which DVD special, e.g. Monster Robot Maniac Fun Collection.
dvd film
The DVD of a film, where the content is located.

Examples

Some text.<ref>{{cite core |title=Title|url=https://example.org/ }}</ref>

Some text.[1]

  1. ^ Title.