Jump to content

User talk:Ark25/RefScript

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ark25 (talk | contribs) at 20:29, 10 May 2014. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

More about the script:

If the script doesn't work with a particular link from a website it knows, it doesn't mean the script doesn't work for all that website. The problem is that the big newspapers/websites have more than just one way to create their webpages and the script doesn't know all those different formatings. From what I noticed, big websites like BBC or New York Times have at least three or four different ways of formatting their news. In this case, report the link here, so I can improve it.

Reference names

If you want to personalize the reference names, so they don't mix with references added by someone else using this script in the same article in the same day, then change the second line in the script from var User_Prefix == ""; into var User_Prefix = "MyPrefix";

Where MyPrefix can be your user name for example, or some other distinct signature of yours.

An then, the reference will look like this:

<ref name="MyPrefix_BBC_2013-09-19c">{{cite web |url=http://www.bbc.co.uk/news/science-environment-23814524 |title=Sea otter return boosts ailing seagrass in California |newspaper=BBC |date= 26 August 2013 |last=Suzi Gage |accessdate=2013-09-19}}</ref>

instead of looking like this:

<ref name="BBC_2013-09-19c">{{cite web |url=http://www.bbc.co.uk/news/science-environment-23814524 |title=Sea otter return boosts ailing seagrass in California |newspaper=BBC |date= 26 August 2013 |last=Suzi Gage |accessdate=2013-09-19}}</ref>

Date formatting

If you need the "accessdate" to look like "September 19, 2013" (US style) instead of "2013-09-19", then you have to change the third line in the script from var Date_Format = ""; into var Date_Format = "US";

And then, the reference will look like this:

<ref name="BBC_2013-09-19c">{{cite web |url=http://www.bbc.co.uk/news/science-environment-23814524 |title=Sea otter return boosts ailing seagrass in California |newspaper=BBC |date= 26 August 2013 |last=Suzi Gage |accessdate=September 19, 2013}}</ref>


If you need the "accessdate" to look like "19 September 2013" (UK style) instead of "2013-09-19", then you have to change the third line in the script from var Date_Format = ""; into var Date_Format = "UK";

And then, the reference will look like this:

<ref name="BBC_2013-09-19c">{{cite web |url=http://www.bbc.co.uk/news/science-environment-23814524 |title=Sea otter return boosts ailing seagrass in California |newspaper=BBC |date= 26 August 2013 |last=Suzi Gage |accessdate=19 September 2013}}</ref>

BBC

no author:

one author:

Daily Mail

no author:

one author:

two authors:

Daily Mirror

no author:

one author:

Huffington Post

one author


New York Times

no author:

one author:

The Washington Post

one author:

to work at:

The Boston Globe

one author:

two authors:

The Times of India

no author:

one author:

Business Week

one author:

two authors:

Financial Times

on Financial Times you can only read a few articles for free, then you must pay

one author:

three authors:

The Economist

on The Economist you can only read a few articles for free, then you must pay

Series of articles: http://www.economist.com/topics/aquatic-animals?page=4

Ars Technica

one author

two authors:

three authors:

TG Daily


YouTube

See also