Extension talk:Cite/Flow archive/2020


Ref Name error with the National Register of Historic Places.

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Could somebody please edit the "NRHP" parameter for Ref Name? It's supposed to redirect tohttp://nrhp.focus.nps.gov/natreg/docs/All_Data.html; however, it now redirects to "https://npgallery.nps.gov/nrhp/Download?path=/natreg/docs/All_Data.html", due to a (presumably recent) URL change. The big problem here is that Google Chrome interprets this as malicious behavior and gives me a "your connection is not private" error message. Is anyone else getting that? See, for example, the first citation on the Wikipedia article for the city hall of Norwich, Connecticut. HighwayTyper (talk) 19:24, 5 January 2020 (UTC)

This is not something related to the Cite extension. You should ask in w:Wikipedia:Bot requests a bot to replace all links to make them point to the right location. Ciencia Al Poder (talk) 13:03, 6 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Hi. Is the way to configure the backlinks by group? I mean, that for general group, the references will be 1, 2, 3 and the backlinks 1 ^ 1.1, 1.2, 1.3, and for efn group the references will be a, b, c and the backlinks a ^ a.1, a.2, a.3. Now I have references a, b, c and backilnks a ^ 1.1, 1.2, 1.3. Thank you. IKhitron (talk) 17:29, 8 January 2020 (UTC)

Can you please explain what an "efn" group is, and what you want to achieve? Thiemo Kreuz (WMDE) 18:03, 8 January 2020 (UTC)
It's my nickname for a group that created by enwiki template:efn. General references are a numbered list 1,2,3, when efn creates a list a,b,c. As above, I'd like to prevent backlinks a ^ 1.1, 1.2, 1.3. IKhitron (talk) 18:06, 8 January 2020 (UTC)
I'm afraid you need to ask this question on en:Template talk:Efn then. Thiemo Kreuz (WMDE) 18:14, 8 January 2020 (UTC)
So, I wasn't clear. I do not talk about enwiki or template efn. As I already said, it's just a nickname, instead of sying every second "a group lower-alpha". IKhitron (talk) 18:15, 8 January 2020 (UTC)
I'm afraid it's still not clear what you are talking about, and what you want. What do you mean when you say "nickname"? What do you mean when you say you want to "prevent backlinks"? Can you please show the code you are currently using?
The special behavior of a <ref group="lower-alpha"> only works if a page MediaWiki:Cite link label group-lower-alpha exists. This is not the case by default, unless you created it.
The magic of templates like efn, notelist and reflist only works together with a list-style-type: inherit override in Common.css. That's something the English Wikipedia community came up with, not something the Cite extension officially supports. Thiemo Kreuz (WMDE) 18:35, 8 January 2020 (UTC)
The special behavior you described already exists in our wiki, a lot of time. There is a template, named on our wiki language, let's call it templateA for this discussion, that creates lower-alpha reference, as efn in enwiki. There is another template, let's call it templateList, that creates references group=lower-alpha. As a result, I can write wiki code
text1{{templateA|name=ref25|text2}}text3{{templateA|name=ref25}}text4<ref name=ref35>text5</ref>text6<ref name=ref35/>text7
==references==
<references/>
==comments==
{{templateList}}
getting
text1[a]text3[a]text4[1]text6[1]text7
==references==
1 ^ 1.1 1.2 text5
==comments==
a ^ 1.1 1.2 text2
when I'd like to get
text1[a]text3[a]text4[1]text6[1]text7
==references==
1 ^ 1.1 1.2 text5
==comments==
a ^ a.1 a.2 text2
when the differences are in the last line only, 1.1 1.2 vs a.1 a.2. IKhitron (talk) 18:50, 8 January 2020 (UTC)
I'm sorry, but such a degree of customization is not possible.
As said, the customized "a" in your example is a hack in your Common.css and the template you are using, and not officially supported by the Cite extension. Thiemo Kreuz (WMDE) 19:08, 8 January 2020 (UTC)
I see. A pity. And there is no way to change "1.0 1.1 1.2" even to "0 1 2"?

IKhitron (talk) 19:18, 8 January 2020 (UTC)
Actually, if I put into MediaWiki:Cite references link many format backlink labels the text "1 2 3 4 5" ... "999 1000", it should do the trick, shouldn't it? IKhitron (talk) 20:00, 8 January 2020 (UTC)
Yes, that should work. Note you need to do both changes I listed above. Thiemo Kreuz (WMDE) 09:50, 9 January 2020 (UTC)
Very well. Thanks a lot for your help and for your time.

IKhitron (talk) 12:59, 9 January 2020 (UTC)
Well, I tried, and it does not work. Maybe it takes time, as for gadgets, or I should do something more? Thanks. IKhitron (talk) 19:51, 21 January 2020 (UTC)
Thiemo Kreuz? Thank you. IKhitron (talk) 19:24, 28 January 2020 (UTC)
Please, somebody, help. Thank you.

IKhitron (talk) 13:15, 17 February 2020 (UTC)
You are not providing any new information. So I don't know to what I should respond to. I believe I already explained all I know in my posts above. Thiemo Kreuz (WMDE) 13:42, 17 February 2020 (UTC)
"Well, I tried, and it does not work" is the information. So I've asked if I should do more steps. For example, create another page, or turn on some extension. IKhitron (talk) 13:44, 17 February 2020 (UTC)
I tried this locally again. I edited MediaWiki:Cite references link many format and changed <sup>[[#$1|$2]]</sup> to <sup>[[#$1|$3]]</sup>. I edited MediaWiki:Cite references link many format backlink labels and changed it to contain 0 1 2 3 4 5 6 and so on. References that are used more than one time are now shown as "^ 0 1" in the references section at the bottom of the page.
This does not change how the footnote markers in the text are rendered. Thiemo Kreuz (WMDE) 14:44, 17 February 2020 (UTC)
Well, found the problem. And I do not like the answer. Every page in Wikipedia should be purged to start this working on it.

IKhitron (talk) 15:04, 17 February 2020 (UTC)

count / parse is possible?

76/5000 I'm looking for a way to use <references> in the parser like

{{#if:<references />| exist | empty }}

i also tried {{#tag:references|}} but it didn't work (i seen working templates here:Editing Template:Reflist ). i tested also to fill in a var and check these, sadly also with no success.

Maybe theres a option to solve this? Gunnar.offel (talk) 11:33, 16 July 2020 (UTC)

I'm afraid this isn't possible. I can identify 2 problems, and there are probably more:
  1. It's not possible to use the same <references /> tag twice. All later ones will be empty.
  2. The moment the #if is executed, the references block is not filled in yet. There is just a placeholder (called a "marker" in the parser) to be replaced later. This is the same for both {{#if:<references />|… as well as {{#if:{{#tag:references}}|….
I'm not sure what you are referring to in template:reflist. There is, as far as I can tell, no conditional that uses the references tag as a condition. Thiemo Kreuz (WMDE) 09:03, 21 July 2020 (UTC)
As i said, i tried to use {{#tag:references... like in the linked template for this topic, without success, as you described as point 2.
Then i have to find another solution to hide the Box (a div/table with styles) for the references if it is empty, but with no conditions that sadly wouldn't be that simple. Gunnar.offel (talk) 06:47, 22 July 2020 (UTC)
What "box"? I think it's better to use CSS for this. You can use <references responsive />, which will give you an extra <div class="mw-references-wrap"> wrapper, which you can style. Thiemo Kreuz (WMDE) 07:04, 22 July 2020 (UTC)
I know, maybe i can use this to replicate the style. i use <references responsive /> already since it also creates multiple colomns. :)
Since ::before ::after can't inject HTML-elements over CSS it needs a way with js or another idea too, and it isn't useable for templates. For example a unready page in an none-closed project it groups the references in the same boxes like the other infoboxes, that template is used, maybe i can find a way to check the length of the content in these box, to hide the whole if it's empty. Gunnar.offel (talk) 07:35, 22 July 2020 (UTC)
Ah, what a nice design. Love it!
I found one CSS hack that works. Let's say your wikitext looks like this:
<div class="box">
==Sources==
<references />
</div>
In case there are no references, the references tag will not render anything, which means the headline will be the last element in the box. We can use this knowledge:
.box h2:last-child {
	opacity: 0.3;
}
You could as well use the empty box to mark pages that need sources. ;-) Thiemo Kreuz (WMDE) 08:43, 22 July 2020 (UTC)

Nomination for deletion of Template:Footnote group

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


<figure-inline></figure-inline>Template:Footnote group has been nominated for deletion. You are invited to comment on the discussion at the template's entry on the Templates for discussion page. Manabimasu (talk) 18:35, 6 September 2020 (UTC)

What is the point to reposting this notice here? These templates do not appear to exist on MediaWiki.org, and even if they did, their deletion on Wikipedia would not affect their use here. ディノ千?!☎ Dinoguy1000 19:55, 6 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Why can ref names not be purely numerical?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Not that it bothers me, but is there any technical reason for said restriction? 79.249.149.73 (talk) 09:37, 1 December 2020 (UTC)

As far as I can tell from the code, the reason is that refs without a name are automatically numbered, starting from 1. We want to avoid confusion between such automatically numbered and manually named refs.
An additional argument might have been that the (classic) HTML and CSS standards don't allow names, ids and such to start with a number either. It's typically a good idea to follow well-established standards. Thiemo Kreuz (WMDE) 11:34, 1 December 2020 (UTC)
Sample from 06:32, 19 August 2022 (UTC)
<ref name= a12345 >test</ref> </references>
--Ancheta Wis (talk) 06:32, 19 August 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.