Category talk:Grub
Latest comment: 8 November by Shanecrowley in topic Category pages should not be used to write persistent content
Category pages should not be used to write persistent content
At time of writing this page is under development, so there is plenty scope for making changes.
For reference, however, the technical content currently written in the category page should probably be split into one or more pages that are themselves included in the category.
The category page then just serves as an index to Grub pages, perhaps with a short introduction. Shanecrowley (talk) 16:05, 7 November 2026 (UTC)
- I'm sure that I have inadvertently added persistent content to the Grub Category page due to wiki inexperience.
- I cannot find instructions how to manipulate these wiki pages and keep everything in good order.
- How can I move my content to a sub page with a new title, say "Boot from grub prompt"? Tea-for-one (talk) 23:14, 7 November 2026 (UTC)
- Hello. It's not a problem.
- I'll get back to you soon. It's not difficult to move things around. So no worries.
- The main question is how we would like to organize things. For the content you've written here, I would suggest making a new page called "Boot kernel from Grub prompt", copy-pasting the text you wrote there and adding "Category:Grub" so it gets indexed.
- And, my apologies, my use of "persistent" here originally was not as clear as it could be. Poor word choice on my part.
- The main idea is that the category page normally acts as an index page. So then people can just tag specialised Grub pages with "Category: Grub" and it will collect them all in one place. But the content itself normally wouldn't be written directly in the category page. Shanecrowley (talk) 00:45, 8 November 2026 (UTC)
- Good morning
- I attempted option 1 and then became stuck in the "Add Citation" loop.
- The wiki software wouldn't allow me to submit once only "This information is freely available". I had to do it 6/7 times.
- Anyway, I think that it's now OK and, if you have a few spare moments, can you take a look and let me know?
- The Grub Category page should now be empty.
- Cheers Tea-for-one (talk) 09:23, 8 November 2026 (UTC)
- Thank you. It looks good now.
- I might make some minor edits for formatting, etc.
- The Add Citation loop is interesting. We might need to investigate that. Those edit suggestions are a relatively new feature that we are testing and there might be some rough edges.
- Thanks for your help and contribution. Shanecrowley (talk) 09:54, 8 November 2026 (UTC)
- My "Boot from grub prompt" contribution now has an additional category Category:Pages with syntax highlighting errors.
- Is there a quick way to find these errors because I would like my page to be pristine (and hopefully useful)?
- Ta muchly Tea-for-one (talk) 18:47, 8 November 2026 (UTC)
- As far as I know, those errors are from the syntaxhighlighting extension when there is no lang, or a wrong lang, specified. It's mentioned in the error section on this page along with some common fixes: https://www.mediawiki.org/wiki/Extension:SyntaxHighlight
- I wouldn't worry too much about it for now if you can't make it disappear. It has previously been tripped up by false positives because of some underlying issues with the Syntax highlighting extension. I see there are some other pages showing as having the same error that don't seem to have any obvious issues with the code blocks, so I might look into it. I consider the syntaxhighlight error category to more be something for admins to check occasionally. Shanecrowley (talk) 19:20, 8 November 2026 (UTC)
- Thank you, Shane, I now understand why my novice effort ended up in the bunker. I'll pay more attention to code blocks in the future. Give me another decade and I'm sure I'll become a Wiki Maestro.
- Ta Ta For Now Tea-for-one (talk) 23:01, 8 November 2026 (UTC)
- Haha. Thanks again for contributing. The page looks good.
- Editing and creating pages is relatively straightforward, but there's quite a bit of machinery around formatting and organization.
- Let me know if you ever need anything 👍. Shanecrowley (talk) 23:34, 8 November 2026 (UTC)
- Update @Tea-for-one: I added a lang to each of the code blocks that didn't have one, including lang=text for output blocks.
- That seems to have removed the highlight error category.
- It seems syntaxhighlight blocks expect a lang, perhaps because using pre tags is a suitable alternative if you don't want to define a lang. Setting the language to text is a reasonable solution though and it does help reduce ambiguity for future editors. Shanecrowley (talk) 20:23, 8 November 2026 (UTC)
- I think there's three options:
- Search for "Boot from grub prompt", or whatever the preferred title is. As the page doesn't exist you will be given the option to create it. Cut/paste the text from the category page there and save. Then add the page to the Grub category; you already created Grub2 setup previously and added it to the Grub category, so you just follow the same process as you did with that page for creating the page and adding to the category. Then clean up the old category page.
- On the category page, select Tools > Move. For "new title" choose "(Main)" from the first drop-down (that selects the main namespace for articles) and then enter your new title. Uncheck the "move talk page" and "leave a redirect" boxes, which are not needed in this case. This will create a regular page in the main namespace. Edit that page to add the content and the Grub category (again, there are a few ways to do this including the "Categories" option in the hamburger menu when you select Edit). Because you moved the Category:Grub pages it won't exist anymore and will appear as a red link. If you click the red link for the category it will prompt you to create the page. Create the page and any pages you have added to that category will automatically be listed (like Grub2 setup is listed there currently.
- Ask me to do it. I can migrate the content to a standalone page and clean up the category page. It won't be routine to move content from a category page so I have no problem doing it.
- In general, create regular pages in the main namespace. Add those pages to categories by tagging the pages themselves with categories. When you create a category page just include an intro sentence or paragraph to introduce the category. The wiki takes care of automatically listing pages that have been added.
- If you are unsure of where to put a page you are working on right away you can use your user space to draft pages. Look at User:Shanecrowley/drafts for an example. Shanecrowley (talk) 01:26, 8 November 2026 (UTC)