Template talk:EB1911

(Redirected from Template talk:EB1911/doc)
Latest comment: 1 year ago by DavidBrooks in topic title=


use template wrapper

edit

I have edited the sandbox version of this template to use Module:template wrapper. ~/sandbox uses {{cite EB1911/sandbox}} which is a proposed replacement for {{cite EB1911}}.

There is a ~/testcases page for this template. None of the comparisons agree. The reasons for most of these disagreements are listed at Template talk:Cite EB1911 § use template wrapper. At testcase 7, the bogus positional parameter parameter 1 is passed to {{cite EB1911}} which passes it to {{cite encyclopedia}} which calls Module:Citation/CS1 which emits the Text "parameter 1" ignored error message. There is no error message for ~/sandbox because Module:template wrapper does not pass positional parameters to the working template (in this case {{cite EB1911/sandbox}}).

{{{1|}}} is not a documented parameter. Does it have a purpose? Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with an unnamed parameter is empty. Is there any reason, either here or at {{cite EB1911}}, to retain this parameter and its associated code and category?

Pending the answer to the above question and without objection to updating Template:cite EB1911, I shall update live template to the code in ~/sandbox.

Trappist the monk (talk) 15:58, 27 June 2019 (UTC)Reply

There having been no comments, {{{1|}}} and Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with an unnamed parameter removed, live template updated.
Trappist the monk (talk) 13:01, 4 July 2019 (UTC)Reply

Not populating "without wikisource" category?

edit

I ran across Act of Sederunt which currently has {{EB1911}} with |title=, but it doesn't appear in Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica without Wikisource reference. Should it be so included, or am I misunderstanding something? I realize the template just wraps {{Cite EB1911}}, but that shouldn't make a difference. David Brooks (talk) 16:32, 19 March 2021 (UTC)Reply

As long as the template is hidden inside <!--...--> tags, it won't be executed so won't add the category.
Trappist the monk (talk) 16:39, 19 March 2021 (UTC)Reply
Sharp eyes... I had missed that large excision. As you were. David Brooks (talk) 19:12, 19 March 2021 (UTC)Reply

Hide in Print tfd

edit

Because {{Hide in print}} is tfd'd, citations that use {{EB1911}} display two annoying flags (one of them because it wraps {{Cite EB1911}}, which is also afflicted). I assume the usage is obsolete but can't see exactly how to fix either of them, so can a template-coding expert remove them safely? @PBS, Trappist the monk, Headbomb, and Jonesey95: can one of you help? David Brooks (talk) 19:27, 13 May 2021 (UTC)Reply

Editor Headbomb added {{hide in print}} to:
{{EB1911}} at this edit
{{cite EB1911}} at this edit
Trappist the monk (talk) 19:55, 13 May 2021 (UTC)Reply
A general problem with TFDs. Headbomb {t · c · p · b} 20:05, 13 May 2021 (UTC)Reply
True dat. And general-purpose readers just see the non-actionable ugly. But the general rule is that we shouldn't remove the template usage until the community actually agrees to delete it, right? Although I understand in this specific case the template is a noop. David Brooks (talk) 23:44, 13 May 2021 (UTC)Reply
This conversation has gotten me to wonder why {{cite EB1911}} has this:
{{hide in print|1=
<!--
 optional icon - included by default
-->{{#if:{{{no-icon|{{{noicon|}}}}}}||{{#ifeq: {{{wstitle|}}}||[[File:PD-icon.svg|12px|alt=|link=]]&nbsp;}}}}<!-- optional public domain icon when wstitle is missing or empty
 -->}}
{{cite EB1911}} is, as I understand it, a 'normal' citation template, really just like any of the cs1|2 templates, so why does it have the public-domain icon when a wikisource page is not provided? {{EB1911}} on the other hand, is an attribution template so perhaps icons (wikisource and public domain) are more appropriate for instances of that template.
There are other {{cite ...}} wrapper-templates (usually paired with an attribution-type template) that have similar icon handling. Do the {{cite ...}} members of these template pairs really need the public domain icon? I'm thinking that public domain icon support in the various {{cite ...}} wrapper templates should go away.
I am not suggesting that the wikisource icon that replaces the usual external link icon should go away. I think it is important for readers to know that clicking on a wikisource-linked title in these templates links to an off-Wikipedia location.
Trappist the monk (talk) 00:20, 14 May 2021 (UTC)Reply

Appearance in the Media Viewer?

edit

In my opinion it would make sense to add class=noviewer to the logo. There's no reason for it to appear in the Media Viewer. --Nachtbold (talk) 14:02, 11 July 2021 (UTC)Reply

So that I know what it is that you are talking about, links and examples?
Trappist the monk (talk) 14:52, 11 July 2021 (UTC)Reply
In the article Apollo for an example. The wikisource logo is already tagged with class=noviewer, but the public domain symbol is not. Thus it unnecessarily appears in the media viewer; multiple times so if the template is used more than once. --Nachtbold (talk) 11:17, 17 July 2021 (UTC)Reply
The pd icon at Apollo is not this template.
I have added a testcase to Template:EB1911/testcases (10) and made all of the file links use |class=noviewer, set all |alt= to appropriate values, and set |link= to empty so that the icons aren't linkable. I guess I don't understand what you mean by it unnecessarily appears in the media viewer. If I enable media viewer in my preferences and look at Apollo, I don't see the pd icon in the media viewer unless I click on it. What do you mean by appears in the media viewer?
In doing this change to the sandbox, I notice that adding |class=noviewer to the pd icon file markup, still allowed me to click on it:
 [[File:PD-icon.svg|12px|alt=Public Domain]] – as it exists in live template right now
 [[File:PD-icon.svg|12px|class=noviewer|alt=Public Domain]] – add |class=noviewer
 [[File:PD-icon.svg|12px|link=|alt=Public Domain]] – add |link=
 [[File:PD-icon.svg|12px|class=noviewer|link=|alt=Public Domain]] – add |class=noviewer and |link=
Trappist the monk (talk) 13:06, 17 July 2021 (UTC)Reply
I think that I've figured out what it is that you are really saying. Media viewer allows readers to scroll image to image – not sure that's a good idea since it doesn't display the associated caption and context is lost but whatever – yeah, I don't use media viewer. Without |class=noviewer, the pd icon is included in the scroll. Is that what you are saying?
If it is, this is likely an issue with more than just this template so I'll concoct an awb script to look at all templates that use the pd and wikisource icons to make sure that they don't show up in the media viewer scroll.
Trappist the monk (talk) 16:54, 17 July 2021 (UTC)Reply
I have hacked an awb script an added |class=noviewer to this and about 120 other citation-like templates (includes sandboxen). There are others but those are outside of my expertise so I leave them to others.
Trappist the monk (talk) 14:18, 24 July 2021 (UTC)Reply
That is indeed what I was trying to say. :) Thanks for your efforts! --Nachtbold (talk) 19:02, 2 August 2021 (UTC)Reply

title=

edit

What on earth does "Set to wstitle= if set, if not to title= if set, if not to article= if set, if not set then left blank." mean? Or rather, as it clearly means nothing, what is it meant to mean? DuncanHill (talk) 04:10, 13 December 2022 (UTC)Reply

It's programming code barely translated into English. I have attempted to give it a better translation. – Jonesey95 (talk) 15:17, 13 December 2022 (UTC)Reply
I edited {{Cite EB1911}} doc to duplicate the rewording. The EB1922 equivalents are documented (or not) in a different way. David Brooks (talk) 16:20, 14 December 2022 (UTC)Reply