Jump to content

User:Omegatron/Sandbox/Cite

From Wikipedia, the free encyclopedia

m:Talk:Cite/Cite.php

A different idea

[edit]

I mostly like the new references, but they have a lot of shortcomings. I used them for the first time in Red rain in Kerala, and these are the things I didn't like/ideas I had:

  1. They interrupt the article text a lot more than other styles. Content like:

As well as red rain, some reports suggested that other colours of rain were also seen. Many more occurrences of the red rain were reported over the following 10 days, and with diminishing

frequency until the end of September.
becomes:

As well as red rain, some reports suggested that other colours of rain were also seen <ref>{{cite web | last = Ramakrishnan | first = Venkitesh | authorlink = | coauthors = | year = 2001 | url = http://news.bbc.co.uk/1/hi/world/south_asia/1465036.stm | title = Coloured rain falls on Kerala | format = | work = | publisher = BBC | accessdate = March 6 | accessyear = 2006 }}</ref>. Many more occurrences of the red rain were reported over the following 10 days, and

with diminishing frequency until the end of September.
  1. Editing the format of a reference requires finding where it is first cited in the article, instead of just editing the References section, where it appears. This is confusing (especially to newcomers) and inconvenient.
  2. Section editing is useless if you want to change references. You can't just edit the References section because that's not where the references actually are. You can't just edit the section that contains the reference since that's not where the rendered references are (so they won't show up in the preview). You have to edit and preview the entire article to see the change.
  3. Since they aren't centralized, it's hard to know if a reference exists already, leading to duplicates which then have to be merged manually.
  4. Additional references that aren't created with the extension, but added to the References section (as per WP:CITE) do not continue the numbered list.
  5. I heard the reason for using brackets around the numbers was to increase the clickable area. I think the brackets should be removed and the same thing done with CSS; increase the horizontal padding around the numbers and vertical arrows to make them more easily clickable instead. Discussion was here: w:Wikipedia_talk:Manual_of_Style#Changes_to_Cite. and w:Wikipedia_talk:Footnote3#Superscripts_2.
  6. If a named reference is used in an article, and another reference to the same document is placed before that one, it doesn't work. The reference has to be moved to the first position instead of just using the name, since the text inside the first reference determines the displayed text. This is a huge pain.
  7. (Curiousity; not a problem: Is there any reason why it has to look like well-formed XHTML? Instead of <ref name="something"/>, why not just <ref something>? Is it thought that the functionality might be expanded? Why wasn't it based on the syntax already in use for [external link references]? Why isn't it more {{wiki-like}}? Our syntax is quickly becoming completely impossible for the average non-computer scientist to edit. No wonder we're accused of systemic bias.)

A better way?

[edit]

A better implementation would have the context and format of the reference centralized in the references section, where it actually appears, and the context of the particular fact near that fact:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<ref name="foo"/> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<ref name="bar"> pages 34–37</ref> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<ref name="bar">Section 7.1: Table of baz</ref> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<ref name="foo">page 56</ref> == References == <references> <ref name="foo"> {{cite book | first = Foo | last = Bar | authorlink = Foo bar | year = 1587 | title = Research into the inclusion of references in online encyclopedias }}</ref> <ref name="bar"> {{cite web | author=R.L. Bar | title=Talking to your children about HTML addiction | year=April 30, 2005 | url=http://www.example.org/ | accessdate=July 6 | accessyear=2005 }} </ref> </references>

which would render as:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.1 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.2 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.2 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.1

References

  1. Bar, Foo (1587). Research into the inclusion of references in online encyclopedias.
  2. R.L. Bar (April 30, 2005). Talking to your children about HTML addiction. URL accessed on July 6, 2005.
    • pages 34–37
    • Section 7.1: Table of baz

I think this might even be backwards compatible with the current syntax.

Other additions

[edit]

For ease of use, you could still insert full references next to a fact, like we do with [external link] references or the current ref system, but, on saving the page, it would be given a name (if you didn't give it one) and the actual content moved into the references section.

References could be merged by putting both names around the same content:

== References ==

<references>
<ref name="foo"> {{cite book
 | last = Bar
 | first = Foo
 | authorlink = http://www.university.edu/~foobar
 | year = 3702
 | title = Research into the inclusion of references in online encyclopedias
}}</ref>
<ref name="baz">
{{cite web
 | author=Dr. Foo Bar
 | title=Research into the inclusion of references in online encyclopedias (e-book)
 | year=3702
 | url=http://www.university.edu/~foobar/e-book/index.html
 | accessdate=July 6
 | accessyear=2005
}}
</ref>
</references>

could be merged together like so:

== References ==

<references>
<ref name="foo"> 
<ref name="baz">
{{cite book
 | last = Bar
 | first = Dr. Foo
 | authorlink = http://www.university.edu/~foobar
 | url=http://www.university.edu/~foobar/e-book/index.html
 | year = 3702
 | accessdate=July 6
 | accessyear=2005
 | title = Research into the inclusion of references in online encyclopedias
}}
</ref>
</ref>
</references>

without editing every ref in the article to the combined name. Then if it turns out they're from different editions of the same source text, they might need to be broken apart again later, but the actual reference sources are still there.