Jump to content

Extension talk:Popups

Add topic
From mediawiki.org
Latest comment: 1 month ago by AKSHA in topic It also returns the section as a link

When asking a question about a preview not displaying please ensure to include information on the wikitext of the first section of the target page (markup before first heading double equals signs) and the network request.

Popups in MediaWiki private server?

[edit]

When linking a wikipedia article to my article, does it recognize it as part of the MediaWiki group and generate a pop up or this is exclusive to server-side content? Eduard da Silva (talk) 23:43, 3 February 2025 (UTC)Reply

Workaround - Handling lack of popups on 1.43 when logged in

[edit]

For some reason, the code added to extension.json doesn't work.

So, go to your extensions/Popups/extension.json file at around line 173 and edit out:

	"ConditionalUserOptions": {
		"popups": [
			[
				"1",
				[
					"registered-after",
					"20170816000000"
				]
			],
			[
				"0",
				[
					"named-user"
				]
			]
		]
	},

Get rid of the array next to

"popups":

and change to

"popups": "1"

like so

    "ConditionalUserOptions": {
		"popups": "1" 
	},

Save the file.

Visit a page on your wiki that should have popups. You may need to do a hard refresh to purge cache, but it should work after this. Joe Beaudoin Jr. Redux (talk) 21:54, 5 March 2025 (UTC)Reply

I didn't need to do this. What I did need to do was to go to my user Preferences > Appearance and check the box, "Enable page previews (get quick previews of a topic while reading a page)". Fanra (talk) 06:53, 16 March 2025 (UTC)Reply
Interesting! This may be something that affects wikis with far older content (in excess of a decade). Good to know in any event. Thank you! Joe Beaudoin Jr. Redux (talk) 17:45, 25 May 2025 (UTC)Reply

Page should be updated with instructions for enabling the previews by default for existing users

[edit]

I enabled this extension yesterday and found that it does not automatically enable the feature for existing accounts. After going into IRC, I was told that I should add the following line to my config:

$wgConditionalUserOptions['popups'] = [];

This enabled it for existing users. Apparently this is new behavior as of 1.42, so the page could use updating with this information. I would edit it myself, but I don't understand the translation source format and don't want to break it.JFolvarcik (talk) 18:32, 16 July 2025 (UTC)Reply

Show thumbnails out of whitelisted categorys

[edit]

Hello,

is there a possability to show thumbnails in popups from categorys, when only the category is whitelisted?

$wgWhitelistRead = [

    'Kategorie:Bücher',

    ];

That just creates a popup that tells, that there is a problem with the preview. ~2025-38560-7 (talk) 09:27, 14 August 2025 (UTC)Reply

[edit]

On Wikipedia; I search for <pre>using only ingenuity and minimal resources</pre> and get search results. The sixth item down looks like <pre>Ngano (Tshivenda narrative song) (section Etymology and definition)</pre>. This uses Extension:Page Preview. It returns the page as a link. It also returns the section as a link.

How can I achieve this wonderful functionality in a local wiki?


Thank you AKSHA (talk) 17:55, 13 January 2026 (UTC)Reply