Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template talk:Stub
(section)
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit source
New topic
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Module Protection banner error == Now displays an error when choosing template, but not when viewing pages calling the template I don't know why it would be calling the [[Module:Protection banner]] sons that has never worked and we add a protection templates instead. [[User:Pyrrhus]] ~[[User:Notjusttired|Njt]] ([[User talk:Notjusttired|talk]]) 16:11, October 6, 2019 (EDT) :[[User:Notjusttired|Njt]] This appears to have occurred as a result of protecting the template page. When a template page is protected, there is supposed to be a banner automatically added to the top of the protected template page. I noticed it when I fully-protected [[Template:Protected]] and the banner suddenly, automatically appeared at the top of the template page, and the page was automatically added to [[:Category:MEpedia fully-protected templates]]. This process obviously has some bugs in it, and I am trying to understand it better. If you learn anything about these bugs, please enlighten me! :[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 19:42, October 6, 2019 (EDT) ::I thought you might have tried to add it. I have looked again and the odd ah seems to be: [[Template:Done]] to [[Module:Documentation]] to [[Module:Protection banner]]? to [[Module:Effective protection level]] - which needs [[MediaWiki:Titleblacklist]] - the error is telling us that it doesn't exist I think. It could be copied from [[mw:MediaWiki:Titleblacklist]] - although it might work simply to create a blank page. The code in the page like <nowiki >⁠</nowiki > etc are codes representing particular characters in unicode, adding those might restrict what titles we can create on MEpedia. Changing the code to ignore the title blacklist that doesn't exist is an option. ~[[User:Notjusttired|Njt]] ([[User talk:Notjusttired|talk]]) 20:18, October 6, 2019 (EDT) :::[[User:Notjusttired|Njt]] You're right, it all comes from [[Template:Documentation]]. I added <nowiki>{{documentation}}</nowiki> to [[Template:Welcome]] and now Template:Welcome shows up in the correct protection category with the correct protection banner. I thought perhaps the version of Template:Documentation that we imported from Wikipedia might only work on Wikipedia, so I tried importing a clean copy of Template:Documentation from MediaWiki instead. It came with a number of dependencies, though, so I have to review the imported pages tomorrow to make sure nothing was broken as a result of the import. It doesn't seem to have fixed anything, though. :::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 23:41, October 6, 2019 (EDT) ::::It is like spaghetti to be honest. Looks like the Stub page is still showing the error too. The simplest thing to do, having looked at the code, is to use this virtually empty blacklist which just prevents .php. file uploads (the first version from Commons) - [[MediaWiki:Titleblacklist]] set to this, without the "pre" <pre> # That's a title blacklist # Every title that matches regex here are forbidden to create and edit # Use "#" for comments .*index\.php.* </pre> ::::Importing extra pages shouldn't cause issues, it's updating existing pages that might. ~[[User:Notjusttired|Njt]] ([[User talk:Notjusttired|talk]]) 23:55, October 6, 2019 (EDT) : [[User:Notjusttired|Njt]] FYI, the other related bug I noticed is that clicking on the full protection banner takes you to [[Special:Upload]]! :[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 00:25, October 7, 2019 (EDT) ::I figured out how to disable the blacklist, although I would have preferred to have an empty [[MediaWiki:Titleblacklist]] to be created instead. The error is gone at last! I can't find any link to the upload page so I suspect that it is happening because the page is trying to display an image that doesn't exist. I've updated those filenames now, plus checked no other modules or templates are using old protection templates. If it's still happening then let me know the name of any particular image it is trying to upload or exactly where to click on each page, then I can view the code to look for it. I also found that the documentation template had some subpages that needed minor edits. ~[[User:Notjusttired|Njt]] ([[User talk:Notjusttired|talk]]) 08:04, October 7, 2019 (EDT) ::Just finished going through the new imports - normally it's chaos sorting out the edits that need redoing but surprisingly almost all were identical and didn't refer to filenames, pages or categories. ~[[User:Notjusttired|Njt]] ([[User talk:Notjusttired|talk]]) 15:29, October 7, 2019 (EDT) :::[[User:Notjusttired|Njt]] Thanks for sorting out the protection banners!!! They look great now, I can't see any bugs. I did, however, notice a problem with the [[Template:Documentation]] import I did last night- some pages appeared to have been imported, but actually weren't. And there was no error/warning message. I noticed it when I looked at the page history for [[Module:Protection banner/config]]. Normally, when you import a page, it creates two entries in the page history, but in this case there was only one entry. When I looked at the page content, it hadn't changed as a result of the import, although it should have. I'll let you know what I find out. It seems like every time we fix one bug, we discover another! D'oh! :::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 20:12, October 7, 2019 (EDT) :::Never mind, [[User:Notjusttired|Njt]]. I figured it out and there is no import bug. The import did, in fact, create two entries in the page history for [[Module:Protection banner/config]]. But one of the entries was dated June 22, 2019, so it didn't affect the current page content at all. The lesson here is to be aware that page imports only change the page content when the revision date in the XML file is ''after'' the latest MEpedia revision date. :::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 20:41, October 7, 2019 (EDT) ::::That might be why most were not changed, but weird to see previous edit dates in the history for edits that were never made. It would be a bad idea to re-import that particular module since it's there for customisation, better to copy and paste the new code and use show changes to work out what sections have changes that must be kept. Re-importing modules is usually a very bad idea unless there is a particular bug, nearly all have altered links, filenames etc - and as modules those don't show in What Links Here. ~[[User:Notjusttired|Njt]] ([[User talk:Notjusttired|talk]]) 21:14, October 7, 2019 (EDT)
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs