Wikibooks:TECH
Discussions | Assistance | Requests | Announcements |
---|---|---|---|
General | Proposals | Projects | Featured books | General | Technical | Administrative | Deletion | Undeletion | Import | Upload | Permissions | Bulletin Board |
Welcome to the Technical Assistance reading room. Get assistance on questions related to MediaWiki markup, CSS, JavaScript, and such as they relate to Wikibooks. This is not a general-purpose technical support room.
To submit a bug notice or feature request for the MediaWiki software, visit Phabricator.
To get more information about the MediaWiki software, or to download your own copy, visit MediaWiki
There are also two IRC channels for technical help: #mediawikiconnect for issues about the software, and #mediawiki-coreconnect for WMF server or configuration issues.
Category:Reading roomDuplicated paragraphs
G'day Guys
In "my" Wikibook I have a very large page of potted biographies (about 3,600, now fairly static) here:
But when I create detailed biographies (currently 100+ and growing), I duplicate the individual potted biography at the start of the detailed biography and also in the list of detailed biographies eg:
This is wasteful of space and also means that when I edit the potted biography, I have to edit three instances.
Is there a way that I can just create one instance and then autorepeat it in the others?
MTIA Samuel.dellit (discuss • contribs) 23:54, 23 May 2025 (UTC)
- You can use section transclusion; see w:Help:Transclusion#Selective transclusion. JJPMaster (she/they) 00:23, 24 May 2025 (UTC)
- Many thanks for that advice, much appreciated.
- But having read the article, the programming is probably beyond my skills.
- Would it be possible for you, or another SKS, to edit the three pages mentioned in my original post, as an example for me to duplicate?
- TIASamuel.dellit (discuss • contribs) 20:39, 27 May 2025 (UTC)
- @Kittycataclysm @JJPMaster @Minorax G'day, The above request for assistance was posted two weeks ago, but I have had no response as yet. This has the potential to significantly enhance the Wikibook and I would really appreciate the assistance Samuel.dellit (discuss • contribs) 19:58, 6 June 2025 (UTC)
- I'm not familiar with this, but I might have time to try and figure it out tomorrow. If @JJPMaster can help (since they seem already familiar), that might be faster. Cheers —Kittycataclysm (discuss • contribs) 12:37, 7 June 2025 (UTC)
- Your help with this would be appreciated, transclusion may offer a solution to splitting up the massive potted biographies page that we discussed some months ago also Samuel.dellit (discuss • contribs) 21:40, 7 June 2025 (UTC)
- Hi @Samuel.dellit—I think I did what you're hoping to do at User:Kittycataclysm/sandbox/potted biography transclusion. If that's the case, here's what you do: wherever you want to transclude the potted biography from a pre-existing page, insert {{#section-h:PAGENAME|SECTIONNAME}}. For example: {{#section-h:History of wireless telegraphy and broadcasting in Australia/Topical/Biographies/Clement Edgar Ames|Potted Biography}} produces the following:
- Your help with this would be appreciated, transclusion may offer a solution to splitting up the massive potted biographies page that we discussed some months ago also Samuel.dellit (discuss • contribs) 21:40, 7 June 2025 (UTC)
- I'm not familiar with this, but I might have time to try and figure it out tomorrow. If @JJPMaster can help (since they seem already familiar), that might be faster. Cheers —Kittycataclysm (discuss • contribs) 12:37, 7 June 2025 (UTC)
- @Kittycataclysm @JJPMaster @Minorax G'day, The above request for assistance was posted two weeks ago, but I have had no response as yet. This has the potential to significantly enhance the Wikibook and I would really appreciate the assistance Samuel.dellit (discuss • contribs) 19:58, 6 June 2025 (UTC)
- Ames, Clement Edgar "Clem" - 1889(SA)-1957(SA) - Licences: XVG Adelaide (Torrensville, 1913-1914); S519 Adelaide (1919-1921); 5AV Adelaide (Kent Town, 1923; Hindmarsh, 1924) - Qualifications: cc; Nil identified as yet - Radio Activity: early wireless experimenter; amateur operator; amateur broadcaster; operator 5WI (1925) - Electoral Rolls: engineer (Allenby Gardens, 1939-43) - TroveTag: "XVG-S519-5AV - Clement Edgar Ames"(150+ tags) & "!Wikibooks Ames"(90+ tags)
- Does this help? —Kittycataclysm (discuss • contribs) 13:22, 8 June 2025 (UTC)
- Thanks, I can see the process, but that wikimarkup is transcluding from the detailed biographies page, whereas I want to transclude from the biographies page. I tried this code:
- {{#section-h:History of wireless telegraphy and broadcasting in Australia/Topical/Biographies|AMES}}
- but it is not rendering. I don't know whether the syntax is wrong or the template has problems with the large number of subsections on that page. Any further thoughts? Samuel.dellit (discuss • contribs) 23:15, 8 June 2025 (UTC)
- @Samuel.dellit: Sorry for not replying sooner--I've had a lot to do outside of Wikibooks recently. The problem appears to be due to a quirk of mw:Extension:Labeled Section Transclusion. Basically, you have to list the section name as what it is in wikitext, rather than how it's displayed to the reader. In other words, the correct syntax is
{{#section-h:History of wireless telegraphy and broadcasting in Australia/Topical/Biographies|''AMES''}}
JJPMaster (she/they) 00:14, 10 June 2025 (UTC)- Magic, thank you so much Samuel.dellit (discuss • contribs) 08:52, 11 June 2025 (UTC)
- @JJPMaster @Kittycataclysm But immediately I have encountered a further issue.
- https://en.wikibooks.org/wiki/History_of_wireless_telegraphy_and_broadcasting_in_Australia/Topical/Biographies
- The foregoing syntax works a treat when there is only one potted biography in a section. But many of the sections (ie for more common surnames) include two or more potted biographies and all potted biographies in the section will be transcluded, when I only wish to transclude one. Indeed in a few instances there are several potted biographies in a section and I wish to (separately) transclude two or more. Hope this is clear. Appreciate your further advices. Samuel.dellit (discuss • contribs) 19:30, 11 June 2025 (UTC)
- @Samuel.dellit: In this case, there are two options:
- Split off each individual biography into a subsection. For instance, under the ABBOTT header, you could have one header for each person with that surname. This is probably easier, but might make the page needlessly long.
- Add
<section begin="[name of person]" /><section end="[name of person]" />
tags around each individual biography. This won't affect the page aesthetically at all, but will likely be quite tedious.
- JJPMaster (she/they) 21:36, 11 June 2025 (UTC)
- @JJPMaster Thanks, Item 2 looks to be the way to go, but can you tell me what is wrong with the following syntax which is not rendering:
<section begin="[Leo Pople Anderson]" />* [[/Leo Pople Anderson|Anderson, Leo Pople]] [https://www.familysearch.org/en/tree/person/details/P92D-H49] - 1895(SA)-1969(NSW) - Licences: XVI Adelaide (Largs Bay, 1912-1914) - Qualifications: Nil yet identified - early wireless experimenter; WW1 (Nil yet identified) - Electoral Rolls: engineer (Bondi, NSW, 1930-1935; Annandale, NSW, 1936-1939; Harbord, NSW, 1946) - TroveTag: "XVI - Leo Pople Anderson" & "!Wikibooks LP Anderson"<section end="[Leo Pople Anderson]" />
{{#section-h:History of wireless telegraphy and broadcasting in Australia/Topical/Biographies|"[Leo Pople Anderson]"}}
Samuel.dellit (discuss • contribs) 20:07, 12 June 2025 (UTC)- @Samuel.dellit: The problem here is that you shouldn't include the square brackets. I used them as a placeholder, not because you actually need them. Also, you don't need the quotation marks around the section name in the
{{#section}}
tag (not{{#section-h}}
; that tag is only for sections that are defined with ==[name]==, ===[name]===, etc. headers). In other words, it should be: <section begin="Leo Pople Anderson" />* [[/Leo Pople Anderson|Anderson, Leo Pople]] [https://www.familysearch.org/en/tree/person/details/P92D-H49] - 1895(SA)-1969(NSW) - Licences: XVI Adelaide (Largs Bay, 1912-1914) - Qualifications: Nil yet identified - early wireless experimenter; WW1 (Nil yet identified) - Electoral Rolls: engineer (Bondi, NSW, 1930-1935; Annandale, NSW, 1936-1939; Harbord, NSW, 1946) - TroveTag: "XVI - Leo Pople Anderson" & "!Wikibooks LP Anderson"<section end="Leo Pople Anderson" /> {{#section:History of wireless telegraphy and broadcasting in Australia/Topical/Biographies|Leo Pople Anderson}}
JJPMaster (she/they) 01:09, 13 June 2025 (UTC)- Thanks so much, works a treat Samuel.dellit (discuss • contribs) 19:47, 19 June 2025 (UTC)
- @Samuel.dellit: The problem here is that you shouldn't include the square brackets. I used them as a placeholder, not because you actually need them. Also, you don't need the quotation marks around the section name in the
- @Samuel.dellit: In this case, there are two options:
- Does this help? —Kittycataclysm (discuss • contribs) 13:22, 8 June 2025 (UTC)
article_namespace variable in edit filters
I've noticed that quite a few of the edit filters on this wiki use article_namespace
, but it displays in red. The documentation page for the rules format for the AbuseFilter extension says that article_namespace
has been deprecated, and page_namespace
should be used instead. TTWIDEE (discuss • contribs) 21:05, 28 May 2025 (UTC)
- I have already left a similar proposal on Wikibooks:Reading room/Proposals#Significant update requests to edit filters. Codename Noreste (discuss • contribs) 22:27, 30 May 2025 (UTC)
- @TTWIDEE: me and EggRoll97 (a global abuse filter maintainer) have done those filter changes accordingly. Codename Noreste (talk) 01:11, 17 July 2025 (UTC)
Review of filter 18
- Special:AbuseFilter/18 (private)
I am recommending a review of this filter; is this even necessary, given that it should be similar to global filter 363 (also private)? Please remember to not discuss this filter's specifics here. Codename Noreste (discuss • contribs) 17:20, 1 June 2025 (UTC)
- Referring this over to @JJPMaster, @MarcGarver, and @Leaderboard —Kittycataclysm (discuss • contribs) 02:18, 20 June 2025 (UTC)
- I'm OK with disabling the filter. While the global filter is a bit less restrictive, I do not think that is problematic. Leaderboard (discuss • contribs) 04:37, 20 June 2025 (UTC)
- No problem for me MarcGarver (discuss • contribs) 08:12, 20 June 2025 (UTC)
- I'm OK with disabling the filter. While the global filter is a bit less restrictive, I do not think that is problematic. Leaderboard (discuss • contribs) 04:37, 20 June 2025 (UTC)
- Sorry for the major delay, but I
disabled the filter accordingly. Codename Noreste (talk) 01:09, 17 July 2025 (UTC)
accidental deletion of pages
In the wikibook I created https://en.wikibooks.org/w/index.php?title=KPZ_Universality&stable=0, I included some pages but they were deleted and now I can't recover them. Can someone please include the pages as part of the book? I think I made a mistake on the type of pages I created. — Preceding unsigned comment added by Tkojar (talk • contribs)
- Is there some admin that can handle this? It's hard to reach particular users. Tkojar (discuss • contribs) 21:53, 15 June 2025 (UTC)
- I'm confused – the deletion log indicates othing. //SHB2000 (discuss • contribs) 23:46, 15 June 2025 (UTC)
- They're referring to the other pages they created. If I understand correctly, they made a few pages that they intended as subpages of the book, but didn't include them. JJPMaster (she/they) 00:59, 16 June 2025 (UTC)
- Ah, right – yeah feel free to undelete those. --SHB2000 (discuss • contribs) 08:46, 20 June 2025 (UTC)
- The pages are still deleted. Can some admin undelete them?
- What is a good source to read on how to create subpages? Thank you Tkojar (discuss • contribs) 06:33, 20 July 2025 (UTC)
- You can read Wikibooks:Naming policy. Codename Noreste (talk) 06:44, 20 July 2025 (UTC)
- They're referring to the other pages they created. If I understand correctly, they made a few pages that they intended as subpages of the book, but didn't include them. JJPMaster (she/they) 00:59, 16 June 2025 (UTC)
- @Tkojar There are a few pages: Types of Initial data, Asymmetric Simple Exclusion Process(ASEP), PushTASEP, Totally Asymmetric Simple Exclusion Process(TASEP), Anisotropic KPZ and Two dimensional Turbulence. Do you want all of these pages back, as a subpage of KPZ Universality? Leaderboard (discuss • contribs) 05:44, 16 June 2025 (UTC)
- I'm confused – the deletion log indicates othing. //SHB2000 (discuss • contribs) 23:46, 15 June 2025 (UTC)
Localizing from "abuse filter" to "edit filter"
This project, like the English Wikipedia, uses the term edit filter, so I am bringing a list of interface messages where we might want to localize that term:
Interface messages |
---|
|
Codename Noreste (discuss • contribs) 21:11, 12 June 2025 (UTC)
Mark filter 9 as private and/or set it to disallow?
Given that autoconfirmed users can view edit filter log entries, I propose marking filter 9 as private only to keep its log hidden to trusted users.
In addition to that, I also propose setting that filter to disallow as well, to prevent additions of personal email addresses to pages. I think we can import the English Wikipedia's MediaWiki:Abusefilter-disallowed-email to here. Codename Noreste (discuss • contribs) 01:31, 20 June 2025 (UTC)
Open all pages in category?
Hello! Does anyone know if there's a tool anywhere that allows you to open all pages in a category with one click? If so, it would be super helpful for some maintenance tasks I need to do. Thanks! —Kittycataclysm (discuss • contribs) 18:32, 14 July 2025 (UTC)
- There are a number of Firefox extensions that can do this, depending on the exact method you want. E.g. I have one where you can right-click, chose an area across the page, and then when you let go of the mouse button, all the links will open in new tabs. You can also generate a list with AWB, press Ctrl+A to select every entry, and then right click to open them all in your browser. Just a heads up that opening 200+ tabs in your browser all at once is probably a bad idea and may well crash your computer. —Justin (koavf)❤T☮C☺M☯ 18:47, 14 July 2025 (UTC)
- Duly noted—thank you! —Kittycataclysm (discuss • contribs) 18:51, 14 July 2025 (UTC)