Topic on Project:Support desk

can i hook "page preview" to script-generated content?

6
קיפודנחש (talkcontribs)

i think the title pretty much explains the question, but let me elaborate a bit: the content i'm talking about is contained in a dialog - either some OOJS form, or jQuery.ui dialog.

this newly minted content contains links which look identical to links which show "page preview", when they are on the page.

is there a way to convince page preview to hook itself to these newly minted links?

peace

TiltedCerebellum (talkcontribs)

With respect, what you are asking for is not clear at all. The tile doesn't explain it. Please explain (and if possible provide examples) to what you are trying to accomplish and where. This sounds like a customization rather than an issue with the MediaWiki software, you might try:

Professional development and consulting

קיפודנחש (talkcontribs)

user:TiltedCerebellum

so, media wiki acquired a "page preview" behavior, where hovering above internal link shows a small snippet, sometimes with an image, in a small popup window. used to be "beta", now it's in core. i don't think it's an extension, but maybe it is (too many similar extension names, most contain the word "popup" one way or another)

there are scripts and gadgets which either add internal links, either to the page itself, or in some dialog boxes/forms they create.

what i want to do is to tell the "page preview" handler something like "here is a new piece of content, please do your magic on it"., so these newly minted internal links will acquire the behavior of showing the "page preview" on hover.

i tried to fire the 'wikipage.content' event, with the new content as parameter, but "page preview" gallantly ignored this, and refused to do anything regarding the new content.

i hope this is clear enough, but i'll be happy to elaborate if something is still unclear. peace.

Pppery (talkcontribs)
קיפודנחש (talkcontribs)

@user:Pppery: if this is an answer, i did not understand it. could you please elaborate? my only guess is you meant that this question should be in the talkpage of the extension. to be on the safe side, i asked there too. otherwise, i just did not get it. peace.

Pppery (talkcontribs)

"too many similar extension names, most contain the word "popup" one way or another"; I was providing a link to the extension responsible for this, not answering the question.

Reply to "can i hook "page preview" to script-generated content?"