Purpose edit

This template provides a convenient way to produce an external link to an entry at Punknews.org. The template can be used for any link to Punknews.org's website, including the External links section or when citing it as a source.

Usage edit

Vertical layout
{{Punknews
| class      =
| id         =
| label      =
| author     = 
| date       =
| accessdate =
}}
Horizontal layout
{{Punknews |class= |id= |label= |author= |date= |accessdate= }}
Short layout

Valid with these three parameters only:

{{Punknews |<class> |<id> |<label>}}

Parameters edit

Parameter Type Description
class optional Class of information, possible are "article", "review", "bands", "labels", "releasedetail" or "search". Value for this parameter corresponds to part of URL following "www.punknews.org/". If omitted, it defaults to "article".
id mandatory Identification of information. Corresponds to part of URL following "article/", "review/", "bands/", "labels/", "releasedetail/" or "search&q=". For "article", "review" and "releasedetail", the text after the actual id can be omitted. (Example: For http://www.punknews.org/article/48598/media-morning-glory-lifes-a-long-revenge "48598" is sufficient for id).
label or title optional Label to display for the link. If omitted, it defaults to the name of the article where this template is used.
author optional The author's name(s).
date optional Full date when item was publisher. Should not be wikilinked.
accessdate optional Full date when item was accessed. Should not be wikilinked.
pure_url optional Value of "yes" produces no label and no additional text but a "pure" standalone external link. This option is mainly intended for the automated migration of standalone weblinks but can be used when linking to punknews using {{Cite web}}, embedding {{punknews}} in {{Cite web}}. E.g.

{{cite web |url={{Punknews |pure_url=yes |class=review |id=11438}} |title=Joe Strummer and the Mescaleros: The Hellcat Years (digital) |author=Jelone}}
produces:

  • Jelone. "Joe Strummer and the Mescaleros: The Hellcat Years (digital)".

Examples edit

Group or artist
  • {{Punknews|class=bands|id=theclash|label=The Clash}}

expands to 

Label (short notation)
  • {{Punknews|labels|fat|Fat Wreck Chords}}

expands to 

Article (class omitted)
  • {{Punknews|id=48536/pussy-riot-found-guilty-of-hooliganism-motivated-by-religious-hatred|title=Pussy Riot found guilty of ‘Hooliganism Motivated By Religious Hatred’}}

expands to 

Search
  • {{Punknews|class=search|id=looking+for+something|label=Looking for something}}

expands to 

Release detail (supplying accessdate)
  • {{Punknews|class=releasedetail|id=5870|title=Destroy to Create (Vinyl)|accessdate=August 26, 2012}}

expands to 

TemplateData edit

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Punknews in articles based on its TemplateData.

TemplateData for Punknews

This template provides a convenient way to produce an external link to an entry at Punknews.org.

Template parameters

ParameterDescriptionTypeStatus
Classclass 1

Corresponds to the part of the URL following "www.punknews.org/" (possible values are "article", "review", "bands", "labels", "releasedetail" or "search")

Default
article
Stringoptional
IDid 2

Corresponds to part of URL following the "article/", "review/", "bands/", "labels/", "releasedetail/" or "search&q="

Linerequired
Titletitle label 3

Label to display for the link. If omitted, it defaults to the name of the article where this template is used.

Default
{{PAGENAME}}
Lineoptional
Authorauthor

The author's name(s).

Lineoptional
Date of publicationdate

Full date when item was publisher. Should not be wikilinked.

Dateoptional
Access dateaccessdate

Date the link was accessed

Dateoptional
Display as pure URL?pure_url

If set to "yes" produces just the URL.

Default
no
Stringoptional