Template talk:Web reference: Difference between revisions

Content deleted Content added
m Fixed Lint errors on this page (obsolete tags)
 
(13 intermediate revisions by 9 users not shown)
Line 1:
{{compactDocToc}}
A development sub page for this template is available at [[Template:Web reference/dev]].
Test the development at [[template:web reference/dev-test]].
 
=Documentation=
== Usage ==
'''<nowiki>{{Web reference
| author =
| publishyear =
| url =
| title =
| format =
| work =
| publisher =
| date =
| year =
}}</nowiki>'''
 
=== Required parameters ===
* '''url''' (or '''URL'''): URL of online item.
* '''title''': Title of online item.
* '''date''': Date (Month Day) when item was accessed. Should be [[ISO 8601]] YYYY-MM-DD format.
** '''year''': Year when item was accessed. (Optional if ISO 8601 date used)
 
=== Optional parameters ===
* '''author''': Author
* '''publishyear''': Date published.
* '''format''': Format, i.e. PDF. HTML implied if not specified.
* '''work''': If this item is part of a larger work, name of that work.
* '''publisher''': Publisher, if any.
 
== Examples ==
{| border="1" cellpadding="2" cellspacing="0" width="100%"
| Uppercase parameters (obsolete)
<pre>{{web reference
| Author=Pardini, Paula
| Title=My Favorite Things Part II
| Publisher=Open Publishing
| PublishYear=April 30, 2005
| Work=Encyclopedia of Things
| URL=http://www.example.com/
| Date=July 6
| Year=2005
}}</pre>
| {{web reference | Author=Doe, John | Title=My Favorite Things Part II | Publisher=Open Publishing | PublishYear=April 30, 2005 | Work=Encyclopedia of Things | URL=http://www.example.com | Date=July 6 | Year=2005}}
|-
|Lowercase parameters
<pre>{{web reference
| author=Doe, John
| title=My Favorite Things Part II
| publisher=Open Publishing
| publishyear=April 30, 2005
| work=Encyclopedia of Things
| url=http://www.example.com/
| date=July 6
| year=2005
}}</pre>
|{{web reference | author=Doe, John | title=My Favorite Things Part II | publisher=Open Publishing | publishyear=April 30, 2005 | work=Encyclopedia of Things | url=http://www.example.com | date=July 6 | year=2005}}
|-
|No parameters specified, showing required parameters
<pre>{{web reference}}</pre>
|{{web reference}}
|-
|[[ISO 8601]] YYYY-MM-DD format
<pre>{{web reference
| author=Doe, John
| title=My Favorite Things Part II
| publisher=Open Publishing
| publishyear=April 30, 2005
| work=Encyclopedia of Things
| url=http://www.example.com/
| date=2005-07-06
}}</pre>
|{{web reference | author=Doe, John | title=My Favorite Things Part II | publisher=Open Publishing | publishyear=April 30, 2005 | work=Encyclopedia of Things | url=http://www.example.com | date=2005-07-06}}
|}
 
==Development==
This template has a development branch at [[Template:Web reference/dev]].
Testing for the dev-branch is under [[Template:Web reference/dev-test]].
 
=Discussion=
__TOC__
 
== Using optional parameters ==
This template does not allow for the author of the reference to be added to it, which should be part of the template. -- [[User talk:LGagnon|LGagnon]] 17:46, Jun 26, 2005 (UTC)
Line 113 ⟶ 30:
A version with optional parameters has been created as part of consolidation of these templates. Lowercase parameter names are preferred. ([[User:SEWilco|SEWilco]] 15:52, 9 November 2005 (UTC))
* Uppercase parameters (obsolete):
** {{web<cite reference | Authorstyle=Doe, John"font-style:normal;">[[Template:Web reference|Web Title=Myreference]] Favoriteerror: ThingsParameters Part'''url''' IIand |'''title''' Publisher=Openmust Publishingbe |specified&#32;Doe, PublishYear=John&#32;(April 30, 2005 | Work=).&#32;.&#32;''Encyclopedia of Things''.&#32;Open | Publishing.&#32;URL=http://www.example.com |accessed Date=on [[July 6]], | Year=[[2005}}]].</cite>
* Lowercase parameters:
** <cite style="font-style:normal;">[[Template:Web reference|Web reference]] error: Parameters '''url''' and '''title''' must be specified&#32;Doe, John&#32;(April 30, 2005).&#32;[http://www.example.org My Favorite Things Part II].&#32;''Encyclopedia of Things''.&#32;Open Publishing.&#32;URL accessed on [[July 6]], [[2005]].</cite>
** {{web reference | author=Doe, John | title=My Favorite Things Part II | publisher=Open Publishing | publishyear=April 30, 2005 | work=Encyclopedia of Things | url=http://www.example.com | date=July 6 | year=2005}}
* No parameters specified, showing required parameters:
** <cite style="font-style:normal;">[[Template:Web reference|Web reference]] error: Parameters '''url''' and '''title''' must be specified&#32;.</cite>
** {{web reference}}
* [[ISO 8601]] YYYY-MM-DD format:
** <cite style="font-style:normal;">[[Template:Web reference|Web reference]] error: Parameters '''url''' and '''title''' must be specified&#32;Doe, John&#32;(April 30, 2005).&#32;[http://www.example.org My Favorite Things Part II].&#32;''Encyclopedia of Things''.&#32;Open Publishing.&#32;URL accessed on [[2005-07-06]].</cite>
** {{web reference | author=Doe, John | title=My Favorite Things Part II | publisher=Open Publishing | publishyear=April 30, 2005 | work=Encyclopedia of Things | url=http://www.example.com | date=2005-07-06}}
 
 
Line 126 ⟶ 43:
 
Variants of [[Template:Web_reference]] have been nominated for deletion. You are invited to comment on the discussion at [[Wikipedia:Templates for deletion#Web_reference variations]]. Thank you.
# {{tl[[Template:web reference author|web reference author]]}}
# {{tl[[Template:web reference complete|web reference complete]]}}}
# {{tl[[Template:web reference date format|web reference date format]]}}
# {{tl[[Template:web reference full|web reference full]]}}
# {{tl[[Template:web reference publisher|web reference publisher]]}}
— ([[User:SEWilco|SEWilco]] 04:01, 15 November 2005 (UTC))
 
Line 139 ⟶ 56:
:: Yes it is. I have restored them. ''[[User:Rich Farmbrough|Rich ]] [[User talk:Rich Farmbrough| Farmbrough]]'' 19:26, 22 November 2005 (UTC)
 
I see the purpose to wikilinking them for user preferences, although there is no actual purpose to wikilinking them. In the future, please do not make threats in edit summaries&mdash;it only brings down the quality of Wikipedia. &mdash; <small>[[User:Brian0918|<b><font style="color=:black;">BRIAN</font></b>]][[User_talk:Brian0918|<fontspan colorstyle="color:gray;">0918</fontspan>]] &bull; 2005-11-23 09:26</small>
 
:Re: ''"In the future, please do not make threats in edit summaries&mdash;it only brings down the quality of Wikipedia."'' I assume you refer to the edit summary of SEWilco on the revision as of 08:53, 23 November 2005 where he wrote ''"(...) .Read warning about understanding before changing."'' If I'm correct with my assumption, I would like to write that I do agree with SEWilco's sentiment. Please assume good faith of SEWilco as I feel he was just concerned about the possible effect of changes to this template. The template is used in a truckload of articles and I think we should therefore be cautious about making changes to the template as a lot of users are affected. Beeing bold is a good thing but it should be applied with care. I would propose to present new ideas for this template on this talk page here before doing significant changes. This does not mean that new ideas should be suppressed and I do value all contributions. Maybe new ideas could be presented under the user space of the inventor, together with some test cases on the discussion page (a — maybe not exactly so good — example for a test template under user space could be [[User:Adrian BuehlmannLigulem/book coauthors]] ([[User talk:Adrian BuehlmannLigulem/book coauthors|talk]]). It shows at least how templates under user space do work). At least, it would be a good thing to test intended significant changes on the side before applying them. Thanks to all! – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 10:45, 23 November 2005 (UTC)
 
Currently, although there are wikilinks, the date in this template does not appear the way it should according to the user preferences. I tried to have a look at the code, but couldn't find anything there, maybe someone more familiar with the code could try to fix that... --[[User:Fritz Saalfeld|Fritz SaalfeldS.]] ([[User talk:Fritz Saalfeld|Talk]]) 11:38, 2 December 2005 (UTC)
 
:Hallo Fritz. If I do
Line 149 ⟶ 66:
*{{web reference
| title=My Favorite Things Part II
| url=http://www.example.comorg
| date=2005-07-06
}}</nowiki></pre></code>
Line 155 ⟶ 72:
:Which is expanded at the moment you read this as (indented):
:
::*<cite style="font-style:normal;">[[Template:Web reference|Web reference]] error: Parameters '''url''' and '''title''' must be specified&#32;&#32;[http://www.example.org My Favorite Things Part II].&#32;URL accessed on [[2005-07-06]].</cite>
::*{{web reference
| title=My Favorite Things Part II
| url=http://www.example.com
| date=2005-07-06
}}
:
:and I switch the date format in my user settings I get different displays of the date.
Line 165 ⟶ 78:
:For example if I have set it to "No preference", I get (A):
:
::*[http://www.example.comorg My Favorite Things Part II]. URL accessed on [[2005]]-[[July 6|07-06]].
:
:If I have set it to "16:12, 15 January 2001", I get (B):
:
::*[http://www.example.comorg My Favorite Things Part II]. URL accessed on [[July 6|6 July]] [[2005]].
:
:If I have set it to "16:12, January 15, 2001", I get (C):
:
::*[http://www.example.comorg My Favorite Things Part II]. URL accessed on [[July 6|July 6]], [[2005]].
:
:If I have set it to "16:12, 2001 January 15", I get (D):
:
::*[http://www.example.comorg My Favorite Things Part II]. URL accessed on [[2005]] [[July 6|July 6]].
:
:If I have set it to "2001-01-15 16:12:34", I get (E):
:
::*[http://www.example.comorg My Favorite Things Part II]. URL accessed on [[2005]]-[[July 6|07-06]].
:
:Could you explain what exactly does not work? – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 15:09, 2 December 2005 (UTC)
 
::On several pages the date is listed like "January 15 2001" while I have my settings to "January 15, 2001" (your C). This only seems to occur when the year is set as a seperate argument, e.g.
Line 189 ⟶ 102:
*{{web reference
| title=My Favorite Things Part II
| url=http://www.example.comorg
| date=July 6
| year=2005
}}</nowiki></pre></code>
::becomes
::*[http://www.example.comorg My Favorite Things Part II]. URL accessed on [[July 6|July 6]] [[2005]].
::instead of
::*[http://www.example.comorg My Favorite Things Part II]. URL accessed on [[July 6|July 6]], [[2005]].
::Hope that helps. --[[User:Fritz Saalfeld|Fritz SaalfeldS.]] ([[User talk:Fritz Saalfeld|Talk]]) 15:34, 2 December 2005 (UTC)
 
:::Thanks for clarifiying. You are right. I could reproduce that. Date preferences do not work if the "date", "year" variant of the template is used. At the moment, date preferences only has an influence if the whole date (including the year) is specified with "date". I do not know whether this is intentional. Maybe we could state that specifying the whole date with the "date" parameter should be preferred by users when inserting calls to this template. I personally prefer to use only "date" in ISO format, as this is clear how to interpret in all languages. – – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 16:05, 2 December 2005 (UTC)
 
:::I've got an idea how to fix that. I'm working on a new version for the code of web reference. Watch at [[User talk:Adrian BuehlmannLigulem/web reference 2005-12-02-1]]. I will post here if I think I got it or I failed. 18:41, 2 December 2005 (UTC)
 
:::I think I got it fixed. I invite all to review my proposal to change web reference at [[User talk:Adrian BuehlmannLigulem/web reference 2005-12-02-1]]. Discuss there (on bottom of page) or here, as you see fit. Thanks! – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 08:38, 3 December 2005 (UTC)
 
::::As far as I can see it works. Thanks for doing that! --[[User:Fritz Saalfeld|Fritz SaalfeldS.]] ([[User talk:Fritz Saalfeld|Talk]]) 11:30, 3 December 2005 (UTC)
 
:::Saved to web reference as revision 2005-12-03 17:03:09 UTC. Please revert quickly if you see something broken. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 17:07, 3 December 2005 (UTC)
 
== Idea of AzaToth, as contributed 11:07, 23 November 2005 ==
Line 246 ⟶ 159:
</noinclude></nowiki></pre></code>
 
I'm just going to revert this right now as I would like to discuss this first. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 14:03, 23 November 2005 (UTC)
 
:I'm reporting that I have reverted to the revision as of 08:53. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 14:18, 23 November 2005 (UTC)
 
*Ok, there is mostly a indentation made, simlar to the indentation in {{tl[[Template:Book reference|Book reference]]}}, second I added numbered params to all calls to ensure if someone have '''=''' as argument, third there is a boolnand to check that '''url''' and '''title''' is specified, that is all. --[[User:AzaToth|AzaToth]] <sup>[[User_talk:AzaToth|talk]]</sup> 14:12, 23 November 2005 (UTC)
 
:*Could you explain (to a dummy like me :-) ''"... I added numbered params to all calls to ensure if someone have '''=''' as argument"''. I suspect your intent was to catch a usage error with this, but I'm too blinded to see this. Maybe you could give an example? – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 14:25, 23 November 2005 (UTC)
::* If you want to pass argument '''foo=bar''' you have to type '''1=foo=bar''' etc... Because this is a complicated template, it's better to be safe than not, therefore, add number as param-name catches those attributes, it will also show the user he/she typed wrong, when author's name is '''John=Doe'''. Also it's easier to see if a parameter belongs to one call or another. --[[User:AzaToth|AzaToth]] <sup>[[User_talk:AzaToth|talk]]</sup> 14:32, 23 November 2005 (UTC)
 
:::* I'm trying to understand. Please correct me: If someone erroneously tries to assign the value "John=Doe" to the template parameter "author" he would do what? He would write <code><nowiki>{{web reference|1=John=Doe ...</nowiki></code>? – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 14:44, 23 November 2005 (UTC)
 
::::* Ok, this template have no First/Last parameter, so this particular example is bogus. But think if the user forgot a '''<code>|</code>''' in it's argument.<code><nowiki>{{web reference|work=foo publisher=bar}}</nowiki></code> will give <code>foo publisher=bar</code> as value to '''work'''. --[[User:AzaToth|AzaToth]] <sup>[[User_talk:AzaToth|talk]]</sup> 14:52, 23 November 2005 (UTC)
 
:::::* Confusion still increases with me. You write ''"This template has no First/Last parameter"'''. Yes that's correct. The template does not have a paramater with the name "First" and neither a parameter with the name "Last". But what does that tell us? – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 15:11, 23 November 2005 (UTC)
 
::::::* First/Last was just a example, used by other reference templates, I was refering that a parameter in this template, even if you have not consider it, could take a '''=''' as value by some sense (like format could for example be a format called '''foo=bar'''). --[[User:AzaToth|AzaToth]] <sup>[[User_talk:AzaToth|talk]]</sup> 15:18, 23 November 2005 (UTC)
 
:::::::*If I just say that I do not understand what you want to say (and even say how I understood it) how can I ''not consider'' you? However, I'll stop here. My final qualification of your proposal (as I sorted out how I understand it) follows. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 16:42, 23 November 2005 (UTC)
 
:: The "numbered params" added to "all calls" does not refer to calls to {{tl[[Template:Web reference|Web reference]]}}. The numbered parameters are being used within special effects templates such as {{tl[[Template:if|if]]}}. The first parameter of {{tl[[Template:if|if]]}} is being specifically indicated with "1=" in case there is an equals sign in the value. ([[User:SEWilco|SEWilco]] 15:22, 23 November 2005 (UTC))
 
:::What means ''"specifically indicated"?'' – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 16:49, 23 November 2005 (UTC)
::::It means that a parameter unless specified/indicated, will be the parameter 1..n, for example <nowiki>{{if|a|b|c}}</nowiki> is the same as <nowiki>{{if|1=a|2=b|3=c}}</nowiki>, but <nowiki>{{if|a=a|b=b|c=c}}</nowiki> is as it is. --[[User:AzaToth|AzaToth]] <sup>[[User_talk:AzaToth|talk]]</sup> 16:55, 23 November 2005 (UTC)
 
:I think we should not apply AzaToth's proposal. While it catches unimportant usage errors such as <code><nowiki>{{web reference|author=John Doe=bar}}</nowiki></code> it significantly complicates the template code. The presented solution intelligently solves a nearly inexistent or not so prominent problem. As I understand it, AzaToth's proposal assigns inside the template values to <strikes>unnumbered</strikes> unnamed parameters 1 and 2, in fact using them as variables. As I understand, this also would make the usage of "real" unnamed parameters 1 and 2 that would transfer information from the calling place of the template impossible, something that could be used for possible future extensions. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 17:38, 23 November 2005 (UTC) '''(corrected by striking at 21:30, 23 November 2005 (UTC))'''
 
::I think you have missunderstand us, unnumbered parameters are numbered, but you can't see it, they get numbered on the fly, where you tinking about sending a parameter '''1=2=1'''?. Also, do you think that indenting the code make's it more complicated? --[[User:AzaToth|AzaToth]] <sup>[[User_talk:AzaToth|talk]]</sup> 17:49, 23 November 2005 (UTC)
 
:::"unnumbered parameters 1 and 2" was a botch by me. Sorry. I wanted to write "AzaToth's proposal assigns inside the template values to unnamed parameters 1 and 2". Is that correct? – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 18:00, 23 November 2005 (UTC)
::::Yes, thats correct, there are two reasons to have the parameters specified, one is to catch values with embeded '''=''', one is to have a better look what parameter belongs to what function/template (if '''|1=''' comes after '''|2=''' you probably understand that they not belong to the same template call). The numbering is not necissary, but I personally think it's better to specify them for a hint to others that we are using this specified parameter. --[[User:AzaToth|AzaToth]] <sup>[[User_talk:AzaToth|talk]]</sup> 18:08, 23 November 2005 (UTC)
 
:::Indenting does *not* make the code more complicated. If that was your main goal, then please go for it. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 18:07, 23 November 2005 (UTC)
 
:::"thinking about sending a parameter 1=2=1". No. I thought about things like <code><nowiki>{{web reference|green|blue|gray|author=John Doe....}}</nowiki></code>. Just as a not so useful example. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 18:15, 23 November 2005 (UTC)
 
::::<code><nowiki>{{web reference|green|blue|gray|author=John Doe....}}</nowiki></code> will be ''expanded'' to <code><nowiki>{{1=web reference|2=green|3=blue|4=gray|author=John Doe....}}</nowiki></code>, i.e. if you specified a parameter, it won't be extra expanded. even if you type <code><nowiki>{{web reference|author=John Doe|green|red}}</nowiki></code> it will be expanded to <code><nowiki>{{1=web reference|author=John Doe|2=green|3=red}}</nowiki></code> (see [[m:Help:Template#Named vs. numbered parameters]]) --[[User:AzaToth|AzaToth]] <sup>[[User_talk:AzaToth|talk]]</sup> 18:23, 23 November 2005 (UTC)
 
:::::I completely agree with this statement. But that abviously does not help to solve my misunderstanding. I propose that I'll stop now completely about your proposal. Please revert my revert. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 18:28, 23 November 2005 (UTC)
::::::We are only humand :), have reverted your revert --[[User:AzaToth|AzaToth]] <sup>[[User_talk:AzaToth|talk]]</sup> 18:38, 23 November 2005 (UTC)
 
:::::::I think I found a minor bug: <code><nowiki>{{web reference|green|blue|gray|author=John Doe....}}</nowiki></code> will be ''expanded'' to <code><nowiki>{{web reference|1=green|2=blue|3=gray|author=John Doe....}}</nowiki></code> and <code><nowiki>{{web reference|author=John Doe|green|red}}</nowiki></code> it will be expanded to <code><nowiki>{{web reference|author=John Doe|1=green|2=red}}</nowiki></code>. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 19:36, 23 November 2005 (UTC)
::::::::Yes it's correct --[[User:AzaToth|AzaToth]] <sup>[[User_talk:AzaToth|talk]]</sup> 19:41, 23 November 2005 (UTC)
 
::Talking to myself: I wrote (at 17:38) ''"As I understand it, AzaToth's proposal assigns inside the template values to unnamed parameters 1 and 2, in fact using them as variables."'' No, this is wrong. The code as presented by AzaToth does *not* assign to unnamed parameters of '''web reference'''. All assignments to unnamed parameters ("1=", "2=", "3=") are unnamed parameters at the scope of the respective '''called templates''', which are {{tl[[Template:if|if]]}}, {{tl[[Template:boolor|boolor]]}} and {{tl[[Template:boolnand|boolnand]]}}. What AzaToth did is explicitly specify the numbers of the unnamed parameters when calling for example {{tl[[Template:if|if]]}}: <code><nowiki>{{if|1=green|2=blue}}</nowiki></code> (A) is equivalent to <code><nowiki>{{if|green|blue}}</nowiki></code> (B) and seems to be the same, but it is not exactly. Because if "green" would be replaced with "==Best color==" then variant (B) does not work as one might expect (See [[m:Help:Template#Equals sign in parameter value]]). In fact, I'm asking myself now, if we just should always use form (A) inside templates for subtemplate calls. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 21:30, 23 November 2005 (UTC)
 
:::Hehe, sorry if I twisted your mind :) I thought it was best to be on the safe side when typing complicated templates. Perhaps my english is not so good after all :( --[[User:AzaToth|AzaToth]] <sup>[[User_talk:AzaToth|talk]]</sup> 21:36, 23 November 2005 (UTC)
 
::::It's not just a thing for complicated templates. And your english is quite fine. And it's me who is the newbie. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 21:46, 23 November 2005 (UTC)
 
:Dammed. I finally see what you template geeks are doing. Sorry for stealing your valued time. AzaToth, I think your original proposal is even better than the one that came out after my stupid intervention (I whish I had not, but you are so dammed fast). Sorry sorry. That's really strange stuff that if an actual parameter of a template contains a "=" char the original code behaves that strange. Thanks for the lesson! – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 19:10, 23 November 2005 (UTC)
 
Ping pong, a new little template is available now {{tl[[Template:switch|switch]]}} [[User:AzaToth|AzaToth]] <sup>[[User_talk:AzaToth|talk]]</sup> 13:07, 25 November 2005 (UTC)
 
== Strange bug with space chars ==
 
I've documented a very strange bug under my user space at [[User:Adrian BuehlmannLigulem/web reference 2005-11-27-1]] (please don't edit there). I invite all to help discuss on the associated [[User talk:Adrian BuehlmannLigulem/web reference 2005-11-27-1|talk page]]. Of course, you may also post here, as you see fit. Thanks! – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 10:06, 27 November 2005 (UTC)
 
:I have reworked the handling of space chars (revision as of 12:26, 30 November 2005 UTC). The bug seems to have disappeared. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 12:33, 30 November 2005 (UTC)
 
== Apologies ==
 
I had this open for reference and edited it by mistake, apologies [[User:Steve blockHiding|Steve blockHiding]] [[User talk:Steve blockHiding|talk]] 08:07, 8 December 2005 (UTC)
 
== Logic templates on WP:AUM ==
 
See the discussion on [[Wikipedia_talk:Avoid_using_meta-templates#Logic_templates]]. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 15:56, 9 December 2005 (UTC)
 
== Change proposal: break dependency on template tl ==
 
I propose to do [http://en.wikipedia.org/w/index.php?title=Template:See_also&diff=prev&oldid=32463859 this] also here. Admin help needed due to protection. – [[User:Adrian BuehlmannLigulem|AdrianLigulem]] | [[User talk:Adrian BuehlmannLigulem|Talk]] 08:45, 23 December 2005 (UTC)
 
:Done by Ral315 ([http://en.wikipedia.org/w/index.php?title=Template%3AWeb_reference&diff=32901764&oldid=30648852 diff]). Thanks. [[User talk:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 20:20, 27 December 2005 (UTC)
 
== HTML cite element, anchor ==
 
{{tl[[Template:Book reference|Book reference]]}} encloses its content in an HTML <code>&lt;cite></code> element, with an ID attribute formulated with the author's last name and year. This allows an in-text citation to link directly to the bibliographic entry as an anchor.
 
<nowiki><cite style="font-style:normal" id="Reference-Smith-2005">[content]</cite></nowiki>
Line 340 ⟶ 253:
Why is this template blocked? Is there a Wiki policy that is now in place since the markup language became more complex? Thanks, [[User:Stevenwmccrary58|Steven McCrary]] 17:22, 29 December 2005 (UTC)
 
:Hi Steven. Sadly, this template is blocked because it is a high-use template (several thousand articles depend on that) and the current implementation of templates in MediaWiki has the problem that if a widely used template is changed, all dependent pages are changed ''immediately''. This can even lock the data-base server for seconds, which is said to be very bad. So this template here would make a fine vandal vector. Please note that I have not blocked this template and I'm not a admin but I agree with it beeing blocked. However this does not mean that this template should never be changed. If you have a change proposal write it on this talk page and wait a bit what others say about it. If there are no objections, simply ask an admin to make the change or unprotect the template for you. (See also [[Wikipedia:High-risk templates]] and [[Wikipedia:List of permanently protected pages]]). Disclaimer: [[WP:AUM]]. [[User talk:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 17:57, 29 December 2005 (UTC)
::AdrianLigulem, thanks. I kinda' figured it out, since after I posted the question I went to the blocked pages and did a little exploration. But, I did not see the [[Wikipedia:High-risk templates]] page, so thanks. I posted a change (above) yesterday, but so far, no discussion on it. Thanks, [[User:Stevenwmccrary58|Steven McCrary]] 18:21, 29 December 2005 (UTC)
:::Just an Idea: What about starting a development branch under a subpage, for example under [[template:web reference/dev]]? We could then do the usual wiki-process of editing there and after consensus ask admins to copy a revision identified as "to release" (by consensus) over to the "hot" template. [[User talk:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 18:51, 29 December 2005 (UTC)
:::Sounds good to me. I have done so. [[User:Stevenwmccrary58|Steven McCrary]] 20:44, 29 December 2005 (UTC)
:::Ok. Now we need test cases to demonstrate that all old and new features still work. Think I start that at [[template:web reference/dev-test]]. [[User talk:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 21:23, 29 December 2005 (UTC)
 
==Proposed change==
I agree that {{tl[[Template:web reference|web reference]]}} should include hypertext to allow for linking the notes (at the end) to the reference (in the text). Here is a portion of the markup from {{tl[[Template:note label|note label]]}} <nowiki> <cite id="endnote_{{{1}}}{{{3}}}"> </nowiki> This addition would eliminate the need to have both {{tl[[Template:note label|note label]]}} and {{tl[[Template:web reference|web reference]]}}. A one way link is all I am requesting here, i.e. from the reference in the text to the note. The template {{tl[[Template:ref harvard|ref harvard]]}} includes a link to the notes. A back link is not needed. Thanks, [[User:Stevenwmccrary58|Steven McCrary]] 15:30, 28 December 2005 (UTC)
 
Note: I have implemented the change at [[Template:Web reference/dev]].
Test the development at [[template:web reference/dev-test]]. [[User:Stevenwmccrary58|Steven McCrary]] 21:58, 29 December 2005 (UTC)
 
:See also the discussion at [[Template talk:Web reference/dev#Proposed change below]]. [[User talk:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 23:40, 29 December 2005 (UTC)
 
The format of the id should follow the one in {{tl[[Template:book reference|book reference]]}}, starting with "Reference-", and not "endnote_". ''—[[User:Mzajac |Michael]]&nbsp;[[User talk:Mzajac |Z.]]&nbsp;<small>2005-12-30&nbsp;07:44&nbsp;Z</small>''
:Michael, thank for the input, good idea, however the formatting is different in {{tl[[Template:ref|ref]]}}, {{tl[[Template:ref harvard|ref harvard]]}}, {{tl[[Template:ref label|ref label]]}}, and {{tl[[Template:note label|note label]]}}. So, those templates would require change as well. Thanks, [[User:Stevenwmccrary58|SteveMc]] 16:41, 30 December 2005 (UTC)
 
:: Eek, that's too bad. Is it possible to harmonize all of these for consistency, by changing one or the other? They should all be able to work together as a unified framework.
Line 361 ⟶ 274:
:: Barring changing one or the other because they are already in wide use, can one or more be replaced with a similar template with compatible output, so that the old version can be deprecated and the new one phased in gradually? Sorry to be so clueless, but I only started dealing with references in a long article recently ("[[T-34]]"), and I'm unfamiliar with most of these templates. ''—[[User:Mzajac |Michael]]&nbsp;[[User talk:Mzajac |Z.]]&nbsp;<small>2005-12-30&nbsp;22:21&nbsp;Z</small>''
 
Good question! I am a member of that club as well. I have exchanged discussion with [[User talk:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] at [[Template_talk:Web reference/dev]]. He is generally against the idea. I have not tried to gather discussion from others; I am not inclined to try to garner support; I do not have the time or the motivation to do so; so right now the proposal is likely to die anyway. [[User:Stevenwmccrary58|SteveMc]] 22:33, 30 December 2005 (UTC)
 
== &amp;nbsp; addition request ==
Line 389 ⟶ 302:
--[[User:BACbKA|BACbKA]] 19:59, 8 January 2006 (UTC)
 
:I have done that change on the [[Template:Web reference/dev|dev branch]]. See [http://en.wikipedia.org/w/index.php?title=Template%3AWeb_reference%2Fdev&diff=34405109&oldid=34404162]. But I would like to investigate a bit further before asking an admin to copy that to the "relase" (I'm not an admin). Can you point to an article where that bug you want to fix with this change happens? [[User talk:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 21:14, 8 January 2006 (UTC)
 
Sure thing. See [[3D Monster Maze#References]], and wiggle the right margin of your browser to make it happen (so that just the right amount of text spills over to the next line in those refs that are web references). --[[User:BACbKA|BACbKA]] 21:19, 8 January 2006 (UTC)
Line 403 ⟶ 316:
| date=2005-12-16}}
</pre>
uses the <code>date</code> parameter. So year is not set and the line with your &amp;nbsp; is ignored in this case. The date is emited as [[2005-12-16]] (<-look at the wiki source of this!) by the template and the MediaWiki software translates that on the fly to your preferred date format (which is set in your preferences). Inside that translated date I see no way to influence the line breaking. But I also think it is ok to write the year onto the next line. Did I miss something? (Anyway I go now to bed. Good night! See you tomorrow :-). [[User talk:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 00:25, 9 January 2006 (UTC)
*Actually, the date is only auto-formatted if you put it in the form yyyy-mm-dd:
**{{web<cite referencestyle="font-style:normal;">[[Template:Web reference|Web titlereference]] =error: you-are-ell |Parameters '''url''' =and '''title''' must be specified&#32;&#32;[http://you-are-ell |you-are-ell].&#32;URL dateaccessed =on [[2005-16-12}}]].</cite>
**{{web<cite referencestyle="font-style:normal;">[[Template:Web reference|Web titlereference]] =error: you-are-ell |Parameters '''url''' =and '''title''' must be specified&#32;&#32;[http://you-are-ell |you-are-ell].&#32;URL dateaccessed =on [[16 December 2005}}]].</cite>
**{{web<cite referencestyle="font-style:normal;">[[Template:Web reference|Web titlereference]] =error: you-are-ell |Parameters '''url''' =and '''title''' must be specified&#32;&#32;[http://you-are-ell |you-are-ell].&#32;URL dateaccessed =on [[December 16 2005}}]].</cite>
**{{web<cite referencestyle="font-style:normal;">[[Template:Web reference|Web titlereference]] =error: you-are-ell |Parameters '''url''' =and '''title''' must be specified&#32;&#32;[http://you-are-ell |you-are-ell].&#32;URL dateaccessed =on [[December 16, 2005}}]].</cite>
**{{web<cite referencestyle="font-style:normal;">[[Template:Web reference|Web titlereference]] =error: you-are-ell |Parameters '''url''' =and '''title''' must be specified&#32;&#32;[http://you-are-ell |you-are-ell].&#32;URL dateaccessed =on [[December 2005}}]].</cite>
**<cite style="font-style:normal;">[[Template:Web reference|Web reference]] error: Parameters '''url''' and '''title''' must be specified&#32;&#32;[http://you-are-ell you-are-ell].&#32;URL accessed on [[2005-12]].</cite>
**{{web reference | title = you-are-ell | url = http://you-are-ell | date = 2005-12}}
**<cite style="font-style:normal;">[[Template:Web reference|Web reference]] error: Parameters '''url''' and '''title''' must be specified&#32;&#32;[http://you-are-ell you-are-ell].&#32;URL accessed on [[2005]].</cite>
**{{web reference | title = you-are-ell | url = http://you-are-ell | date = 2005}}
*[[User:Gracefool|··gracefool]] |[[User talk:gracefool|&#9786;]] 22:15, 16 February 2006 (UTC)
 
:*Hmm. Think I have a deja vu. Haven't I fixed that somewhere before already? (scratching my head...). I will take a closer look at that. --[[User:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 22:31, 16 February 2006 (UTC)
 
:*It's a bit complicated as it is (don't ask me why it came so into the template). See the doc. You can leave off the year from the date parameter and specify that in the separate year parameter. So you can write (look at the wiki source):
 
:::*{{web<cite referencestyle="font-style:normal;">[[Template:Web reference|Web titlereference]] =error: example.com |Parameters '''url''' =and '''title''' must be specified&#32;&#32;[http://www.example.comorg |example.org].&#32;URL dateaccessed =on [[2005-12-16}}]].</cite>
:::*{{web<cite referencestyle="font-style:normal;">[[Template:Web reference|Web titlereference]] =error: example.com |Parameters '''url''' =and '''title''' must be specified&#32;&#32;[http://www.example.comorg |example.org].&#32;URL dateaccessed =on [[December 16]], | year = [[2005}}]].</cite>
:::*{{web<cite referencestyle="font-style:normal;">[[Template:Web reference|Web titlereference]] =error: example.com |Parameters '''url''' =and '''title''' must be specified&#32;&#32;[http://www.example.comorg |example.org].&#32;URL dateaccessed =on [[16 December]], | year = [[2005}}]].</cite>
:::*{{web<cite referencestyle="font-style:normal;">[[Template:Web reference|Web titlereference]] =error: example.com |Parameters '''url''' =and '''title''' must be specified&#32;&#32;[http://www.example.comorg |example.org].&#32;URL dateaccessed =on [[16 december]], | year = [[2005}}]].</cite>
:::*{{web<cite referencestyle="font-style:normal;">[[Template:Web reference|Web titlereference]] =error: example.com |Parameters '''url''' =and '''title''' must be specified&#32;&#32;[http://www.example.comorg |example.org].&#32;URL dateaccessed =on [[december 16]], | year = [[2005}}]].</cite>
:*--[[User:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 22:56, 16 February 2006 (UTC)
I'm probably missing something, but none of the above examples cures the spilled year problem (look at the resulting HTML source --- there's no nbsp before the year). --[[User:BACbKA|BACbKA]] 11:20, 17 February 2006 (UTC)
:That's correct. I think I already said above why this can't be cured. I also think it needs not to be cured, because it is simply ok as it is. --[[User:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 12:25, 17 February 2006 (UTC)
Sorry, I thought from your later writings that you were going to fix it anyway. My inspiration for a non-breakable space in such places comes from [[Donald Knuth]]'s ''The T<sub><big>E</big></sub>Xbook''. I feel that in the beginning of a line, a number followed by a period looks ugly, and gives an impression of a numbered list item on one's quick scanning of the area (of course, when one reads into the context, and looks at the neighbouring lines, the perception goes away, but the ugliness remains IMHO). I agree that this is not a very high priority thing, but, if at some point, a way to fix it w/o a lot of effort becomes available, I'll be happy. (For the record, bibtex also suffers similar problems :-) ). --[[User:BACbKA|BACbKA]] 14:40, 17 February 2006 (UTC)
 
Line 433 ⟶ 346:
<a href="/wiki/2005" title="2005">2005</a>
</nowiki></pre>
:The html that is produced depends on the date setting in your "my preferences" (see on top). I do not see how to influence that html without changing the mediawiki software. The template is certainly the wrong level to do that. --[[User:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 15:27, 17 February 2006 (UTC)
Sorry for having missed it, you indeed had said that already the first time. I agree fully, the template code is not the right place to try to tweak that. Unfortunately, the prefs only let one select from a predefined set of strings, I can't force an nbsp insertion there... Thank you very much for your patient explanations! --[[User:BACbKA|BACbKA]] 15:43, 17 February 2006 (UTC)
 
Line 442 ⟶ 355:
== Moving to template cite web ==
 
Hi all. I would like to introduce a move to the new {{tl[[Template:cite web|cite web]]}}. This includes deprecation of web reference and moving all calls to cite web.
 
Motivation: web reference currently provides both upper and lower case parameters, which is nedlessly complex and brittle. cite web is much simpler as it provides lower case only. cite web is also less likely to break and it is easier to throw in stop-gap measures like weeble code or [[Wikipedia:hiddenStructure]] hack if some god should shoot {{tl[[Template:qif|qif]]}} (See also that never ending story on [[WP:AUM]] and [[user talk:Brion VIBBER#The future of qif]]. Hopefully we will get a Media-Wiki built-in qif soon).
 
I have done the same on {{tl[[Template:cite journal|cite journal]]}} (replacement for {{tl[[Template:journal reference|journal reference]]}}) and I'm still converting {{tl[[Template:book reference|book reference]]}} to {{tl[[Template:cite book|cite book]]}}.
 
Please note that it is not safe to just throw out the upper case params on web reference, even though nearly all calls already use lower case. We need two templates while doing the move to make sure that no article is hurted. There is no way to tell for sure that each and every article uses only the lower case parameters of web reference.
Line 452 ⟶ 365:
Per the name: we already have a bunch of cite xxx templates. See [[:category:citation templates]].
 
Thank you for your careful consideration. --[[User:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 10:22, 21 February 2006 (UTC)
 
: Maybe cite uri would be better than cite web? --[[User:BACbKA|BACbKA]] 13:13, 21 February 2006 (UTC)
 
::Also, it would be nice if before we move, we discuss some field name changes, such as ''date'' and ''year'' to ''accessdate'' and ''accessyear'' (easier to understand their use), and likewise ''publishyear'' to ''year''. This won't be hard to do with [[WP:AWB|AWB]] as part of the move, right? [[User:Gracefool|··gracefool]] |[[User talk:gracefool|&#9786;]] 13:28, 21 February 2006 (UTC)
:::SimpleHrm. parameterI'm renamesnot areso noobsessed problemon names. OfI yoursecould Ilive agreewith dicussingthat. firstReasonable short and is compatible with the cite xxx pattern. I'veOTH, addedcite aweb warningis textcloser to {{tl|citethe old "web}} reference", so that"cite it'sweb" notmight usedbe prematurely.easier Weto shouldaccept for editors as it also waithas putting"web" in the deprecatedname. taguri hereis untiltechnically therecorrect, isbut consensusI whatwould toguess dothat exactly.most Thiseditors wentdo wrongno onknow bookwhat refan lasturi timeis. --[[User:Adrian BuehlmannLigulem|Adrian BuehlmannLigulem]] 13:3953, 21 February 2006 (UTC)
 
=== field name changes ===
Also, it would be nice if before we move, we discuss some field name changes, such as ''date'' and ''year'' to ''accessdate'' and ''accessyear'' (easier to understand their use), and likewise ''publishyear'' to ''year''. This won't be hard to do with [[WP:AWB|AWB]] as part of the move, right? [[User:Gracefool|··gracefool]] |[[User talk:gracefool|&#9786;]] 13:28, 21 February 2006 (UTC)
 
:Simple parameter renames are no problem. Of course I agree dicussing first. I've added a warning text to {{[[Template:cite web|cite web]]}} so that it's not used prematurely. We should also wait putting the deprecated tag here until there is consensus what to do exactly. This went wrong on book ref last time. --[[User:Ligulem|Ligulem]] 13:39, 21 February 2006 (UTC)
 
:I agree with the renames date → accessdate, year → accessyear, publishyear → year. --[[User:Ligulem|Ligulem]] 13:47, 21 February 2006 (UTC)
 
I support the above change as well, makes usage of various cite xxx templates more consistent with each other. --[[User:BACbKA|BACbKA]] 15:37, 21 February 2006 (UTC)