[11:56:59] Per recent deprecations, we are trying to implement the new MediaWiki:Copyright-footer. I created this in our test instance: https://testwiki.documentfoundation.org/MediaWiki:Copyright-footer [11:57:27] and our sysadmin removed a $wgRightsText setting from LocalSettings.php [11:57:50] However, now there is no copyright text displayed when viewing pages. When editing, this is displayed: https://testwiki.documentfoundation.org/MediaWiki:Copyrightwarning2 [11:57:55] Any ideas? [14:58:31] buovjaga: have your sysadmin add either $wgRightsPage or $wgRightsText(+ optionally $wgRightsUrl) back to LocalSettings.php [14:59:05] er sorry, $wgRightsText is needed in both cases. Page vs Url is for if you want a link to lead on-wiki or elsewhere [14:59:51] The copyright-footer message **will not** display without that LocalSettings config [15:22:04] thanks, relayed info... [15:22:53] Will be nice to have a footer without ugly broken HTML, we've been waiting for a decade, I think :) [15:23:07] (was broken in the Edit view) [15:25:38] moonmoon: now I noticed that that can't work, so should it rather be: `$wgRightsPage = "MediaWiki:Copyright-footer";` ? [15:26:02] ie. $wgRightsText is exactly what we want to get rid of due to its hopeless brokenness [15:27:05] or maybe I just don't really understand how this is supposed to work [15:27:15] I'm reading https://www.mediawiki.org/wiki/Manual:$wgRightsText [15:30:15] "If you add additional links or formatting to $wgRightsText, this has to be done using wiki code, additionally you have to add the same content using HTML code to MediaWiki:Copyright or using wikitext to MediaWiki:Copyright-footer." [15:30:43] That above makes no sense to me. Why would there be a requirement to add it twice? And then it is displayed as broken obviously [15:32:02] $wgRightsPage would usually be something like Project:Copyright [15:32:11] it's used so the software automatically generates a link on your behalf [15:32:26] so the link should go to where you actually wrote down detailed copyright information [15:33:04] and if you do that, then $wgRightsText should contain no formatting and no wikimarkup at all, just the name of the license (if you use one) or what the link text should be (if not) [15:33:41] Finally, add whatever wikimarkup you want to MediaWiki:Copyright-footer. $1 will be replaced with the link generated between RightsPage and RightsText [15:34:40] Ok, so I can skip having $1 in there [15:35:55] you should keep $1 tbh, that's what makes the LocalSettings config work [15:36:05] otherwise the config is required to be defined, but does nothing [15:36:18] which is just setting up future you for failures/footguns [15:36:38] oof [15:39:39] I was going to link to an example but having a hard time finding one since a lot of sites like to replace the footer message with a custom one [15:40:20] but for sake of example, lets say you have $wgRightsText = 'Creative Commons Attribution Share-Alike License'; and $wgRightsPage = 'Project:Copyrights'; [15:40:40] then in MediaWiki:Copyright-footer, the $1 in that message gets replaced with [[Project:Copyrights|Creative Commons Attribution Share-Alike License]] [15:40:57] and you can build up the rest of the message with that in mind [15:41:09] Alright, so I told our sysadmin to just add the value "test" for $wgRightsText. This made the copyright message appear when viewing pages, but unfortunately the edit view doesn't show it. Per the docs, I think I should blank MediaWiki:Copyrightwarning2 now [15:43:11] does my example/description make sense now at least? [15:43:53] $wgRightsText is really only meant to be the link text for a link going to a page with more detail on the wiki's copyright. Usually, it is set to the license name you are using. You edit the message itself if you need to adjust surrounding text [15:44:07] the recent changes to MediaWiki mean that the surrounding text needs to be wikitext instead of raw HTML [15:45:44] After blanking MediaWiki:Copyrightwarning, the edit view didn't display anything, but now I copied over the content from Copyright-footer and it displays fine [15:46:45] I guess it makes sense, but $1 does not seem to be required to be used [15:46:58] and I don't know what the failures and footguns would be [15:53:36] you customize the $wgRights* stuff later on and then wonder why that isn't working, or think "this stuff isn't being shown so I can remove it" and then the footer disappears [15:54:08] or another message later on uses those same variables to display a link in an entirely different message and now your wiki is displaying conflicting info [15:56:13] ok, seems like it can be solved by adding a comment to LocalSettings.php [15:56:47] well the third thing I mention can't be solved that way. but you do you. It's just easier to work with the system rather than trying to fight the system imo [15:56:55] and this seems like a really weird hill to die on [16:02:41] Re: the third case, the info is not conflicting, the license name and link match what we have. Maybe I will use the vars, let's see [16:04:24] and just to note, I'm not fighting any system, I am just trying to get this thing to finally work after people tried unsuccessfully for 7 years [16:11:45] Alright, now $1 is being used in https://wiki.documentfoundation.org/MediaWiki:Copyright-footer and the same content being in https://wiki.documentfoundation.org/MediaWiki:Copyrightwarning both the view work in prod. Thanks a lot for the help!