User talk:Riad Salih/Archive 1

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia


category page count[edit]

At Wikipedia:Village pump (technical)/Archive 206 § Category you asked: if there is a way to determine the total number of articles in a specific category, such as Category:Algeria.

You're right, the 500k answer provided by WP:AWB is very likely bogus. So, five minutes here and ten minutes there, I expanded the subcategory listing at Category:Algeria. As I finished expanding a section, I copied the expansion to a text file. In the end I had three text files User:Trappist the monk/Algeria cat, User:Trappist the monk/Algeria cat2, and User:Trappist the monk/Algeria cat3. That was the hard part.

The easy part was writing a lua script to make some sense of the raw lists of categories. Because category names must be unique, the script reads each of the three text files and makes a list of unique category names. At the same time it extracts the numbers of pages and files in each unique category and saves those. It also maintains a count of the number of times that the script has seen each category. The script also makes a similar list of unique category names that include the words 'Algeria' or 'Algerian'. When all of this is done, the script returns a list of statistics and the two lists of category names.

Here are the statistics:

number of categories in the raw tree: 90,688
number of unique categories: 12,966
number of pages in the unique categories: 52,792
number of files in the unique categories: 137
number of categories with 'Algeria' or 'Algerian' in the name: 2,254
number of pages in 'Algerian' categories: 23,584
number of files in 'Algerian' categories: 94

And here are the first few items in the unique category list:

List of unique category names. The adjacent number indicates how many times the category appears in the raw category tree.
The most commonly occuring categories appear 450 times in the raw category tree. The list is alpha sorted.
1055 mm gauge railways in Algeria (3×)
10th century in Ifriqiya (2×)
10th-century establishments in Ifriqiya (3×)
10th-century people from Ifriqiya (3×)
1163 establishments in Algeria (3×)
...

and the first few lines of the Algeria-specific list:

List of unique category names where the text 'Algeria' or 'Algerian' appears in the category name.
The most commonly occuring categories appear 210 times in the raw category tree. The list is alpha sorted.
1055 mm gauge railways in Algeria (3×)
1163 establishments in Algeria (3×)
11th-century Algerian people (1×)
12th-century Algerian poets (8×)
13th-century Algerian people (1×)
14th-century Algerian rabbis (16×)
...

The script is intended to work from the Scribunto debug console only. If you want to see the whole lists:

Edit Module:Sandbox/trappist_the_monk/Cat_tree
At the bottom of the page is the debug console; type: =p.main() and press return.

The statistics and lists are incomplete. The statistics do not include the number of pages and files in Category:Algeria. I left out several branches:

Category:Arabic language – because following its subcategories quickly wandered off into other large subcategories that really didn't have anything to do with Algeria; occurs only once in the raw category tree
Category:Dawson's Field hijackings – recursive; one or more subcategories of this category include this category; occurs 11 times in the raw category tree
Category:Kurdistan Workers' Party – recursive; occurs 450 times in the raw category tree
Category:Military operations involving the PLO – recursive; occurs 10 times in the raw category tree
Category:Peshmerga – recursive; occurs 91 times in the raw category tree

I wonder if these recursive subcategories were a contributing cause of AWB's inability to produce reasonable results – though it would seem that it would follow the first recursive category forever and never end ...

I will hold on to the module and its data files for a while but don't expect them to be around for ever...

Trappist the monk (talk) 17:26, 22 July 2023 (UTC)[reply]

Hello, @Trappist the monk !
I must say, you did an excellent job! I never expected that you would take that question into consideration. Determining the exact number of articles within a specific country's category is indeed challenging, and the result will be an approximation. Other versions of Wikipedia employ a method based on portals which are necessary there. By adding the portals, we can create a specific category of the portal X, and then tallying the total number of articles within that portal will provide us with the exact total number of articles,
In the French Wikipedia, there are approximately 14,000 articles, while in the Arabic version, the count falls between 11,000 and 13,000 articles. Therefore, in my opinion, the English Wikipedia should have a range of articles between 13,000 and 15,000.
I sincerely appreciate the effort you put into researching and analysing the results. Thank you!
Regards Riad Salih (talk) 19:01, 24 July 2023 (UTC)[reply]

Hi thanks for creating this article. When we translate or borrow from other language wikis it’s a requirement to acknowledge the source. The best way to do this is to include it in your edit summary (e.g. “translated from de.wiki”) and there’s also a translation template you can add to the talk page. The article looks to me like it is largely a translation from fr.wiki. If you can confirm where material for this article was sourced I’ll add the template to the talk page for you if it is needed. Happy editing and please leave a message on my talk page if you need any help Mccapra (talk) 09:18, 21 August 2023 (UTC)[reply]

Hey @Mccapra
Yes, it is. I was adding the template in the article at first, but I don't know why the bots deleted it or transferred it to the talk page.
Regards Riad Salih (talk) 12:34, 21 August 2023 (UTC)[reply]
great I’ll add it now thanks. Mccapra (talk) 18:34, 21 August 2023 (UTC)[reply]

I have sent you a note about a page you started[edit]

Hello, Riad Salih. Thank you for your work on Kheir (horse). User:SunDawn, while examining this page as a part of our page curation process, had the following comments:

Thank you for writing the article on Wikipedia! I genuinely appreciate your efforts in creating the article on Wikipedia and expanding the sum of human knowledge in Wikipedia. Wishing you and your family a great day!

To reply, leave a comment here and begin it with {{Re|SunDawn}}. Please remember to sign your reply with ~~~~. (Message delivered via the Page Curation tool, on behalf of the reviewer.)

✠ SunDawn ✠ (contact) 03:17, 28 October 2023 (UTC)[reply]

ArbCom 2023 Elections voter message[edit]

Hello! Voting in the 2023 Arbitration Committee elections is now open until 23:59 (UTC) on Monday, 11 December 2023. All eligible users are allowed to vote. Users with alternate accounts may only vote once.

The Arbitration Committee is the panel of editors responsible for conducting the Wikipedia arbitration process. It has the authority to impose binding solutions to disputes between editors, primarily for serious conduct disputes the community has been unable to resolve. This includes the authority to impose site bans, topic bans, editing restrictions, and other measures needed to maintain our editing environment. The arbitration policy describes the Committee's roles and responsibilities in greater detail.

If you wish to participate in the 2023 election, please review the candidates and submit your choices on the voting page. If you no longer wish to receive these messages, you may add {{NoACEMM}} to your user talk page. MediaWiki message delivery (talk) 00:37, 28 November 2023 (UTC)[reply]

Information icon Hello, Riad Salih. This is a bot-delivered message letting you know that Draft:Tlemcen Railway Station, a page you created, has not been edited in at least 5 months. Drafts that have not been edited for six months may be deleted, so if you wish to retain the page, please edit it again or request that it be moved to your userspace.

If the page has already been deleted, you can request it be undeleted so you can continue working on it.

Thank you for your submission to Wikipedia. FireflyBot (talk) 05:06, 6 December 2023 (UTC)[reply]

Schönberg Tower moved to draftspace[edit]

Thanks for your contributions to Schönberg Tower. Unfortunately, I do not think it is ready for publishing at this time because it has no sources. I have converted your article to a draft which you can improve, undisturbed for a while.

Please see more information at Help:Unreviewed new page. When the article is ready for publication, please click on the "Submit your draft for review!" button at the top of the page OR move the page back. Significa liberdade (she/her) (talk) 01:26, 17 December 2023 (UTC)[reply]

Hi @Significa liberdade. Yes, I am currently working on it, and all the references are sourced from the original article in Dutch. I will address the missings and proceed to republish it. Regards Riad Salih (talk) 02:03, 17 December 2023 (UTC)[reply]

A cheeseburger for you![edit]

For your excellent History of rail transport in Algeria article! Chanaka L (talk) 06:02, 22 February 2024 (UTC)[reply]

Category:Horse farms in Austria has been nominated for splitting[edit]

Category:Horse farms in Austria has been nominated for splitting. A discussion is taking place to decide whether it complies with the categorization guidelines. If you would like to participate in the discussion, you are invited to add your comments at the category's entry on the categories for discussion page. Thank you. Mason (talk) 19:26, 10 March 2024 (UTC)[reply]

Category:Horse farms in Algeria has been nominated for splitting[edit]

Category:Horse farms in Algeria has been nominated for splitting. A discussion is taking place to decide whether it complies with the categorization guidelines. If you would like to participate in the discussion, you are invited to add your comments at the category's entry on the categories for discussion page. Thank you. Mason (talk) 19:26, 10 March 2024 (UTC)[reply]

Category:Horse farms in Egypt has been nominated for splitting[edit]

Category:Horse farms in Egypt has been nominated for splitting. A discussion is taking place to decide whether it complies with the categorization guidelines. If you would like to participate in the discussion, you are invited to add your comments at the category's entry on the categories for discussion page. Thank you. Mason (talk) 19:27, 10 March 2024 (UTC)[reply]

Category:Horse farms in Germany has been nominated for splitting[edit]

Category:Horse farms in Germany has been nominated for splitting. A discussion is taking place to decide whether it complies with the categorization guidelines. If you would like to participate in the discussion, you are invited to add your comments at the category's entry on the categories for discussion page. Thank you. Mason (talk) 19:28, 10 March 2024 (UTC)[reply]

Category:Horse farms in India has been nominated for splitting[edit]

Category:Horse farms in India has been nominated for splitting. A discussion is taking place to decide whether it complies with the categorization guidelines. If you would like to participate in the discussion, you are invited to add your comments at the category's entry on the categories for discussion page. Thank you. Mason (talk) 19:28, 10 March 2024 (UTC)[reply]

Category:Horse farms in Pakistan has been nominated for splitting[edit]

Category:Horse farms in Pakistan has been nominated for splitting. A discussion is taking place to decide whether it complies with the categorization guidelines. If you would like to participate in the discussion, you are invited to add your comments at the category's entry on the categories for discussion page. Thank you. Mason (talk) 19:29, 10 March 2024 (UTC)[reply]