From Kings Wiki, masculinity and nationalism
Jump to: navigation, search



I've installed Twinkle, Popups, and HotCat. Let me know if there are any problems or if you want other gadgets installed. Raymond Kertezc (talk) 11:45, 16 July 2016 (UTC)


Bear with me, I'm trying to find a way to make Special:AllPages hide redirects by default, without hiding them when the box is unchecked. Raymond Kertezc (talk) 02:27, 7 September 2016 (UTC)

How does one have redirects display on the page now? Unticking the "Hide redirects" box and pressing enter doesn't work. --Idris (talk) 04:13, 9 September 2016 (UTC)
Yeah, it's kinda broken at the moment. Still working on it.[1][2] Raymond Kertezc (talk) 11:04, 9 September 2016 (UTC)

I guess I give up. There's this snippet of code in SpecialAllPages.php:

$fields = [
 'hideredirects' => [
  'type' => 'check',
  'name' => 'hideredirects',
  'id' => 'hidredirects',
  'label-message' => 'allpages-hide-redirects',
  'value' => $hideRedirects,

The problem is that when the box isn't checked, "hideredirects=0" doesn't appear in the URL. If it would say that, then MediaWiki would be able to know whether the user unchecked the box, or whether it would be appropriate to use the default settings (i.e. hide redirects). If I change the type to "text" and make it a text box, then it will say hideredirects=0 or hideredirects=1 every time. I haven't figured out yet where is the code that implements that.

I can add a line that says

  'default' => true,

but that just makes the box ticked by default; the user has to actually hit "Go" to get rid of the redirects. Raymond Kertezc (talk)

Fixed Raymond Kertezc (talk) 00:26, 17 September 2016 (UTC)

Cool, thanks. --Idris (talk) 13:46, 17 September 2016 (UTC)
For the record, some relevant code is on Gerrit. Raymond Kertezc (talk) 13:26, 24 October 2016 (UTC)

New Format[edit]

The sidebar config is okay, but the formatting of the Wiki today looks much more amateurish and less polished than it did yesterday. Conchis (talk) 16:48, 10 September 2016 (UTC)

Oh yeah, well, that's the Monobook skin. I was gonna leave that in place for a day or two and see if anyone complained or complimented it. The default skin on Wikipedia is Vector, but most power users use Monobook. There are a number of other skins we could make available, or make the default, as well. Raymond Kertezc (talk) 19:38, 10 September 2016 (UTC)
I use Vector, since it has a cleaner, smoother look. It's easier on the eyes. Wikipedia's "power users" use Monobook since it was Wikipedia's default skin back when they started (before 2010). They use it because they're used to it. Vector was developed as a part of Wikimedia's "Usability Initiative"; it's the result of research and grants, and it's made to be more user-friendly. --Idris (talk) 00:24, 11 September 2016 (UTC)

Thanks log[edit]

Special:Logs/thanks has been populated with the revision IDs. Raymond Kertezc (talk) 01:44, 11 September 2016 (UTC)

Slow Updating[edit]

Updates to categories are getting veeerry slow. Is there a DB cache needing to be cleared? Conchis (talk) 22:09, 12 September 2016 (UTC)

If you're talking about right now, it's probably because I'm importing Help pages from a file and it's putting a lot of load on the server. I think I'm done now, though. Raymond Kertezc (talk) 22:12, 12 September 2016 (UTC)

Help pages[edit]

I imported a lot of the Help pages from The next step would be to import some templates as well, but bear in mind, some of them may be incompatible with the templates we already have (since and Wikipedia have different templates and different CSS and JS). So if you see any strange template-related issues, that may be the reason.

I might install the Translate extension later, if that'll make life easier for us. Alternatively, we can just remove the translation tags. I didn't bother to import non-English subpages, but I can.

Another possibility is that we could just reject the whole idea as ill-conceived and delete everything in that namespace and start from scratch. Raymond Kertezc (talk) 22:17, 12 September 2016 (UTC)

We could try using Festipedia's help pages (Festipedia:Help:Contents), but they're licensed under the GFDL (whereas we use CC-BY-SA). Fokker (talk) 01:01, 17 September 2016 (UTC)
The translate extension is so obnoxious. I'm just gonna nuke the whole Help namespace so we can start from scratch, unless someone has an objection. Raymond Kertezc (talk) 10:22, 17 September 2016 (UTC)
You could try importing the pages in mediawikiwiki:Category:Help/en and overwriting (via page moves) the pages that you've already imported. --Idris (talk) 13:57, 17 September 2016 (UTC)

28 users' email addresses were auto-authenticated[edit]

When we first launched the wiki, the email feature was broken and silently failing. Users would try to authenticate their email address, but it wouldn't actually send the confirmation email, or even tell the user that the attempt to send a confirmation email had failed.

Therefore, I auto-authenticated the email addresses of everyone who had entered an email address but not successfully authenticated it. Those users were:

As a result of this, you will now be able to send emails to these users, and they will begin receiving notifications in accordance with the notification settings in their user preferences. Raymond Kertezc (talk) 02:36, 22 September 2016 (UTC)

Thanks feature[edit]

Is the thanking feature giving you notifications properly? Raymond Kertezc (talk) 22:44, 25 September 2016 (UTC)

The "Thanks" message turns up blank in "Alerts", if that's what you mean. We're using the June 2016 version of the Echo extension and the September 2015 version of the Thanks extension, so they're out of sync. The 2016 Echo extension is expecting us to have MediaWiki:Notification-header-edit-thank (see wikipedia:MediaWiki:Notification-header-edit-thank). That system message didn't come into existence until November 2015, and since we're using the September 2015 version of the extension, we don't have that message. --Idris (talk) 00:51, 26 September 2016 (UTC)
Updating the Thanks extension alone didn't do the trick :/ We're now using the June 2016 version of the Echo extension and the most recent version of the Thanks extension. mediawikiwiki:Notifications#July_2016 mentions a "resorting of all notifications between 'Alerts' and 'Notices'" that occurred in July 2016, so perhaps we're out of sync again. On Wikipedia, "thanks" messages are displayed under "Notices", but on the current Kings Wiki configuration, they're displayed under "Alerts", so "thanks" messages were presumably affected by the July 2016 resorting. --Idris (talk) 02:10, 26 September 2016 (UTC)
Hmm, well anyway, we're now using the MW v1.27 branch of Thanks, but Special:Log/thanks no longer provides the revision IDs for new thanks events. Updating to the master (latest development) version of Echo broke the wiki, so I had to revert. Raymond Kertezc (talk) 02:34, 26 September 2016 (UTC)
Okay. "Thanks" messages just started displaying properly under "Alerts" anyway. Thanks, Raymond. --Idris (talk) 02:40, 26 September 2016 (UTC)

Interwiki table[edit]

You're welcome to clear out useless cruft from the interwiki table (Special:Interwiki). Raymond Kertezc (talk) 02:04, 28 September 2016 (UTC)

I think I cleared out all the useless cruft. If I got rid of anything that should've stayed, feel free to restore it. Jean Valjean (talk) 03:36, 16 November 2016 (UTC)

Email disabled[edit]

Fixed Due to a technical issue, all email features have been disabled until further notice. We hope to get it re-enabled soon. Email is back online. Raymond Kertezc (talk) 23:47, 28 September 2016 (UTC)

Moving Categories[edit]

If I want to rename a category that has several pages already in it, is there a good way to do that without having to manually edit every page? Conchis (talk) 21:08, 4 October 2016 (UTC)

A bot can do it. See, e.g., mw:Manual:Pywikibot/ Other bot frameworks probably have similar tools. Feel free to create a User:ConchisBot, to which I can give the "machine," aka bot, flag.
It also probably wouldn't be too hard to create a special page capable of doing it, or to add a checkbox to the "move page" screen to automatically move all pages in that category to the new category. If you're interested in learning how to extend MediaWiki, I'd be willing to help you with that project. We can set up a Git repository. Raymond Kertezc (talk) 14:17, 5 October 2016 (UTC)

Permissible file extensions[edit]

What file extensions of uploaded files do you want Kings Wiki Commons to permit? Right now, the list is: png, gif, jpg, jpeg, jp2, webp, ppt, pdf, psd, mp3, xls, xlsx, swf, doc, docx, odt, odc, odp, odg, mpp, xml, gz. Raymond Kertezc (talk) 00:34, 7 October 2016 (UTC)

People using Kings Wiki to publish research might find permitting the uploading of spreadsheet formats (ods, csv) useful, and some people might want to create charts and graphs with Inkscape (svg). --Idris (talk) 13:56, 7 October 2016 (UTC)
Done. Raymond Kertezc (talk) 22:57, 7 October 2016 (UTC)
Cool, thanks. --Idris (talk) 23:56, 7 October 2016 (UTC)


I got rid of WikiEditor because it was doing annoying stuff like getting rid of your section header when you added a new section. Raymond Kertezc (talk) 13:12, 8 October 2016 (UTC)

Can you please restore it? I believe that the problem occurred because you set "wikieditor-publish" (displayed as "Enable step-by-step publishing" in Special:Preferences) to being a default yesterday. When that is enabled, the edit summary in the dialogue box that pops up displaces whatever you placed in the "Subject/headline" field. I had to switch it off in my Preferences yesterday because a bunch of stuff suddenly became defaults. If you restore it, ensure that "wikieditor-publish" is off by default. "wikieditor-preview" and "wikieditor-previewDialog" should also be off by default. --Idris (talk) 14:04, 8 October 2016 (UTC)
Are there any settings that should be on by default? Raymond Kertezc (talk) 15:46, 8 October 2016 (UTC)
I'm not sure. I prefer leaving the decision-making to you. --Idris (talk) 17:00, 8 October 2016 (UTC)
A lot of the newer extensions, I'm not very knowledgeable about. Raymond Kertezc (talk) 17:46, 8 October 2016 (UTC)
I never set up or configured a wiki before, so I'm not very knowledgeable either. --Idris (talk) 19:18, 8 October 2016 (UTC)

Any other MediaWiki extensions you want installed?[edit]

Raymond Kertezc (talk) 15:56, 8 October 2016 (UTC)

Interwiki page existence detection[edit]

Interwiki page existence detection is a capability I've wanted to add for some time, so that when you link to, e.g., wikipedia:Manosphere, the link will be red or blue depending on whether that page exists.

In the past, I've probably overcomplicated this by wanting to include a lot of bells and whistles, e.g. by only polling Wikipedia for the page existence data if the database didn't already have that data, or by getting a list of all Wikipedia pages and then doing incremental updates. Given that most of the applications for this will be on wikis with not a lot of editing activity, and given that only a small number of Wikipedia page titles will be relevant to this wiki, it seems like the best approach will be to just grab page existence data from Wikipedia whenever a new edit is saved to a Kings Wiki page with interwiki links.

Ah, I just came up with a brilliant idea. The wiki should have an account on enwiki and add the appropriate pages to its watchlist, so it can easily track when they're being created or deleted. Raymond Kertezc (talk) 13:41, 15 October 2016 (UTC)


This bot works pretty well, but it's a pain in the neck to manually configure it for every single site it needs to grab data from. It should instead be able to learn from sites it already has been configured for. Also, at some point I need to get it to add References sections to those articles that have references but lack a reference section. Jean Valjean (talk) 14:19, 3 November 2016 (UTC)


We've gotten a request that we set up mw:Extension:VisualEditor (or some other WYSIWYG) so that it's easier to edit the wiki. Anyone have any thoughts on whether this is a good idea, or ideas about how you would want it configured? Thanks, Jean Valjean (talk) 14:10, 12 November 2016 (UTC)

I'm weary of WYSIWYG editors and products that dumb things down. Dumbing down software lead to the population being dumbed down:
It's due to such products that users don't know how to use the command line or text editors such as Vim. Everyone uses a computer, yet they don't have a clue about the basics of it. When you give magic powers to someone, they won't be motivated to learn how things work without magic; they become detached from nature and reality. Such products are the reason Millennials are the way they are (i.e. they think that they know computers and think that that makes them better than their parents, yet they actually know nothing about computers and are dumber than their parents). --Idris (talk) 15:11, 12 November 2016 (UTC)
The last time you launched your web browser, did you do that from a command line or by clicking an icon in a GUI? Jean Valjean (talk) 15:17, 12 November 2016 (UTC)
I disagree partially with Idris though I come to the same conclusion. I wouldn't trade Python for Assmebly or GUIs for command line interfaces even though I know how to use them. That said, I wouldn't want to lose them because they are more flexible and with a pure GUI you are at the mercy of what the designers "allow" you to do. If they didn't think of it, you're out of luck. I hear there are people who can operate an abacus faster than a calculator, but still... With all that, I'd be opposed to going WYSIWYG on this wiki. Those are heavy extensions and what's the return on investment? If it brings in motivated editors who share in the heavy lifting that still needs to be done, great. Also look at reliability and complexity: if it breaks, who fixes it? If editors get frustrated with it, who modifies it? Other wikis seem to do fine without WYSIWYG. Conchis (talk) 15:41, 12 November 2016 (UTC)
I would say "maybe wait a few years and see if it improves" but sometimes GUIs just get heavier over time. That's why I switched from regular Ubuntu to Kubuntu. By the way, an RVF post has been made polling RVF members about this. Jean Valjean (talk) 15:47, 12 November 2016 (UTC)

Would anyone object to trying it out on a test basis for a week, so we can definitively say what we do and don't like about it, and find out if there's a way we can tweak it to not be too annoying? I would then disable it again at the end of that week unless everyone clamored to keep it. Idris, is there a way to set it up so that new users are given a choice of which they want to use, rather than having it default to one or the other?

Let's set it up on Kings Wiki Commons first, and do some test edits before we do any kind of test on the English Kings Wiki. Jean Valjean (talk) 15:02, 17 November 2016 (UTC)

mediawikiwiki:Extension:VisualEditor#Complete_list_of_configuration_options: ShowBetaWelcome is set to true by default. --Idris (talk) 16:36, 17 November 2016 (UTC)
I just realized, I have to install Parsoid before I can get this to work. I'm feeling lazy at the moment, so I'll do that later. Jean Valjean (talk) 03:28, 18 November 2016 (UTC)

Wiki family[edit]

When/if Roosh approves the proposed transfer of power, we'll need to address the way these sites are set up. See mw:Manual:Wiki_family#Multiple_wikis_sharing_common_resources. It was set up with all these ln -s commands; see Ln (Unix). You'll see what I'm talking about when you try to run a maintenance script. Jean Valjean (talk) 01:32, 16 November 2016 (UTC)

MediaWiki 1.28[edit]

Wow, we just upgraded to MediaWiki 1.27 not that long ago, and already MediaWiki 1.28 is about to be released. Jean Valjean (talk) 02:29, 17 November 2016 (UTC)

Release early, release often. --Idris (talk) 02:33, 17 November 2016 (UTC)
That's great, if they make the upgrade process easy (as opposed to requiring you to go to the shell to back up the database; wget and extract MediaWiki; move the wiki folder to a backup location; move the MediaWiki folder to the location where the wiki used to be; move the LocalSettings.php, images folder, logo file, favicon file, etc.; update each of the extensions; run the update script; etc.) This has to be done for each wiki, and making a mistake during certain parts of this process potentially results in destroying the whole wiki. It's kind of nervewracking.
The other problem is that upgrades break all our custom hacks (which is why Dramatica hasn't upgraded in a long time). Jean Valjean (talk) 02:47, 17 November 2016 (UTC)


At some point, we need a caching solution, to make some pages load faster.. Jean Valjean (talk) 02:40, 17 November 2016 (UTC)

Twitter account[edit]

So the KingsWiki twitter account seems to automatically tweet out when a new article is created. But it doesn't simply link to the article, it links to the "difference between revisions" page for an article. Is something messed up or is it supposed to do that? SirTimothy (talk) 03:37, 17 November 2016 (UTC)

Something is messed up. We have a custom configuration:
$wgHooks['ChangesListSpecialPageQuery'][] = 'onChangesListSpecialPageQuery';
function onChangesListSpecialPageQuery( $name, &$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts ) {
        global $wgTitle;
        if (
            $wgTitle != 'Special:Badtitle/dummy title for API calls set in api.php'
            || $name != 'Recentchanges'
        ) {
                return true;
        if ( !in_array( 'page', $tables ) ) {
                $tables[] = 'page';

        if ( !in_array( 'page_latest', $fields ) ) {
                $fields[] = 'page_latest';
        if ( !in_array( 'page_is_redirect', $fields ) ) {
                $fields[] = 'page_is_redirect';
        if ( !isset( $join_conds['page'] ) ) {
                $join_conds['page'] = array( 'LEFT JOIN', 'rc_cur_id=page_id' );
        if ( !isset( $conds['page_is_redirect'] ) ) {
                $conds['page_is_redirect'] = 0;
        if ( !isset( $conds['rc_patrolled'] ) ) {
                $conds['rc_patrolled'] = 1;
        if ( !isset( $conds['rc_new'] ) ) {
                $conds['rc_new'] = 1;
        if ( !isset( $conds['rc_namespace'] ) ) {
                $conds['rc_namespace'] = 0;
        return true;

The effect of that is to get the recent changes that are patrolled creations of mainspace new pages that aren't redirects, when someone hits . I think it has something to do with ChangesFeed::buildItems() and maybe ApiFeedRecentChanges::getFeedObject() or something like that.. it may or may not be a pain in the neck to try to fix this.. Jean Valjean (talk) 03:52, 17 November 2016 (UTC)

Fixed Okay, done. I did indeed have to hack ChangesFeed::buildItems(). Specifically, I had to get rid of the diff and oldid from:
$url = $title->getFullURL( [
        'diff' => $obj->rc_this_oldid,
        'oldid' => $obj->rc_last_oldid,
] );

It'll break again when MediaWiki is upgraded. Jean Valjean (talk) 04:49, 17 November 2016 (UTC)

Uselessness of import function[edit]

<rant>If Special:Import can't even update the categories table when you import pages, it's entirely useless. Having to go through and do some kind of minor manual edit sucks. I guess I'm just going to have to create pages manual and copy-and-paste. WTF MediaWiki?</rant> Conchis (talk) 16:49, 30 December 2016 (UTC)

What happens if you purge the page? If that doesn't work, I'm thinking some code from refreshLinks.php might be able to help with that. Maybe you could use the AfterImportPage hook to write an extension. That could be a good first extension to write, if you haven't already written one. See also mw:Manual:Developing extensions. Let me know if you need help.
Another possibility is that you could submit a core patch, since arguably, it should be changed in the core. Maybe submit a task to Phabricator and see what they think. "Phabricator," by the way, definitely sounds like something a San Francisco-based organization would use. Jean Valjean (talk) 19:06, 30 December 2016 (UTC)
I didn't think to try purging. That's better than updating with a newline or something. But I think MediaWiki's aware of it. I'm not quite knowledgeable enough yet to be submitting patches. Conchis (talk) 19:12, 30 December 2016 (UTC)
Submitting patches is how you get more knowledgeable. You submit a patch, and they look at it and give you pointers on how to improve your coding. Then you submit a new patch, and after several iterations of this, it gets approved (assuming you did what was necessary to get reviews). As a newbie, often you will end up coding something from scratch when you could've reused existing code, but that's okay. Jean Valjean (talk) 21:01, 30 December 2016 (UTC)


I commented out $parser->disableCache(); in RandomSelection.php. You can still manually cause content to rotate using the purge feature. Ideally, though, we would just have an Article of the Now, like ED, but we need someone(s) to maintain it. Jean Valjean (talk) 20:50, 1 January 2017 (UTC)

Shucks. I wish I read this before I created Template:Randomly featured workout and all the supporting files. Conchis (talk) 02:37, 13 February 2017 (UTC)
I just undid the change, so it should work now. Jean Valjean (talk) 17:32, 13 February 2017 (UTC)


Should Kings Wiki be configured for SSL (i.e. URLs) Fokker (talk) 23:04, 4 January 2017 (UTC)

This was discussed early on but Roosh was concerned it might slow down the site. The site is already slow, though, due to a lack of a good caching solution. Jean Valjean (talk) 01:28, 5 January 2017 (UTC)

Unable to log in on Brave[edit]

When trying to log in on Brave, I just get sent back to the page I was on, still logged out. I've reported the problem to the Brave forums (when my post is approved, I'll link it here). (Fokker) 11:47, 3 March 2017 (UTC) 14:20, 3 March 2017 (UTC)

Which operating system are you using? --Idris (talk) 14:42, 3 March 2017 (UTC)
I'm running Brave 0.13.5 on OSX Sierra. 03:29, 4 March 2017 (UTC)
I don't have a OSX machine on which to test on. Sorry. --Idris (talk) 14:10, 4 March 2017 (UTC)
I've also had the problem on Windows 7 in the past. 01:56, 5 March 2017 (UTC)
I seem to be able to log in at the moment. If the problem happens again I'll let you know. Fokker (talk) 06:01, 5 March 2017 (UTC)


So just by commenting out $wgCookieDomain, I was able to fix that problem of sessions being lost when going between Kings Wiki and Kings Wiki Commons. Jean Valjean (talk) 18:38, 25 March 2017 (UTC)