Wikipedia:Help desk/Archives/2023 January 1
| Help desk | ||
|---|---|---|
| < December 31 | << Dec | January | Feb >> | January 2 > |
| Welcome to the Wikipedia Help Desk Archives |
|---|
| The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current Help Desk pages. |
January 1
[edit]"What links here" with templates excluded?
[edit]Is there a way to do a "What links here", with links from templates separated from links from the body of an article?
Specifically, I want to know how many links to Carols by Candlelight do NOT come from Template:Christmas, or any other template. Because I am thinking that Carols by Candlelight should refer to outdoor carols anywhere, not the specific event in Melbourne. Adpete (talk) 04:30, 1 January 2023 (UTC)
- Not perfect, but should get you started: this search. Firefangledfeathers (talk / contribs) 04:38, 1 January 2023 (UTC)
- Thanks. I had to exclude two other templates like this: , and it gave me what I wanted. There are 97 links from articles, plus 3 from templates. Adpete (talk) 05:19, 1 January 2023 (UTC)
- @Adpete: User:PrimeHunter/Source links.js says Source links on Carols by Candlelight with 143 results. It also shows pages which have both a source link and a template link. They are excluded for the named template if
-hastemplate:nameis used. PrimeHunter (talk) 06:43, 1 January 2023 (UTC)
- @Adpete: User:PrimeHunter/Source links.js says Source links on Carols by Candlelight with 143 results. It also shows pages which have both a source link and a template link. They are excluded for the named template if
- Thanks. I had to exclude two other templates like this: , and it gave me what I wanted. There are 97 links from articles, plus 3 from templates. Adpete (talk) 05:19, 1 January 2023 (UTC)
- Thanks! Adpete (talk) 07:03, 1 January 2023 (UTC)
Meaning of 'subpr' in template
[edit]Hello, I have recently updated the name of a town at Template:Pas-de-Calais communes, but I noticed that the town I updated the name of has <sup>subpr</sup> next to it in the wikicode. What does this mean and do I need to change it? Thank you, Redtree21 (talk) 07:37, 1 January 2023 (UTC)
- @Redtree21: It's displayed to readers so the meaning is supposed to also be explained to them but it's not. I clicked the links and saw the articles say they are Subprefectures in France so that must be it. I checked many other templates in Category:France commune (country subdivision) templates. All of them use the notation and none of them explain it. That's a mess. Maybe many French people can guess it but that's not good enough. I'm not French and didn't know the word. PrimeHunter (talk) 08:01, 1 January 2023 (UTC)
- @PrimeHunter: Thank you so much for your reply. Looking at it now, I think you're right about the meaning of the notation. Its use in the template is very inconsistent and I'm not sure it adds much to the template given readers can find this information from the articles themselves. Thanks again, Redtree21 (talk) 08:08, 1 January 2023 (UTC)
- @Redtree21: It was added by Markussep. In some other templates like Template:Vienne communes it was explained before via named groups but Markussep merged the groups and added the notation instead without an explanation. Something like this could be added but it should be the same for all templates using the notation:
- @PrimeHunter: Thank you so much for your reply. Looking at it now, I think you're right about the meaning of the notation. Its use in the template is very inconsistent and I'm not sure it adds much to the template given readers can find this information from the articles themselves. Thanks again, Redtree21 (talk) 08:08, 1 January 2023 (UTC)
|belowclass = hlist |below = * <sup>pref</sup>: [[Prefectures in France|Prefecture]] * <sup>subpr</sup>: [[Subprefectures in France|Subprefecture]]
- That explanation below you suggested seems a good solution to me. Markussep Talk 08:49, 1 January 2023 (UTC)
Setting a main 'external link' as reference in multiple places
[edit]I haven't found it in Wikipedia:Citing sources: What's the proper procedure to set a main source shown in the "External links" as a specific reference for multiple assertions in the article? --KnightMove (talk) 08:15, 1 January 2023 (UTC)
- @KnightMove: If the citations don't need separate details like page numbers or different pages on a website then you can use Wikipedia:Citing sources#Repeated citations. Sources used inline must be shown in a references or similar section but if the website is important to the article then it can additionally be listed in the external links section. PrimeHunter (talk) 08:31, 1 January 2023 (UTC)
- Thanks. But I would assume there is also an established way to avoid the redundancy of setting the same link twice, as a reference and and an external link?! --KnightMove (talk) 08:35, 1 January 2023 (UTC)
- Advice regarding such duplication is at WP:ELDUP. - David Biddulph (talk) 09:06, 1 January 2023 (UTC)
- (edit conflict) @KnightMove: The established way is to omit it from the external links section when it has been used as a source. See WP:ELDUP. But as mentioned, important links can be repeated. PrimeHunter (talk) 09:08, 1 January 2023 (UTC)
- @KnightMove: If it's used as a reference, it should be removed from the "external links" section entirely. The original purpose of the "external links" section in Wikipedia's early days was to have a place to collect unused references that could later be used to expand the article. An ideal article does not have an "external links" section. -Arch dude (
- Thanks. But I would assume there is also an established way to avoid the redundancy of setting the same link twice, as a reference and and an external link?! --KnightMove (talk) 08:35, 1 January 2023 (UTC)