dev

Welcome

Hi, I'm an admin for the Fandom Developers Wiki community. Welcome and thank you for your edit to Talk:ExtendedNavigation! If you need help getting started, check out our help pages or contact me or another admin here. For general help, you could also stop by Community Central to explore the forums and blogs.

Please leave me a message if I can help with anything. Enjoy your time at Fandom Developers Wiki!

User talk:Cqm

Vandalism

Hey Fngplg,
I appreciate that you want to contribute to this wiki and want to help others. But in that case it would have been better to talk to me first to clarify which differs between my opinion about my script and your opinion to make it better together. Contributing to a wiki is not about fight each other; it's about discussing and collaborative result.
It would be nice to hear your opinion and change proposals.
Greetings, Agent Zuri Profile Message Wall Blog 20:39, August 16, 2017 (UTC)

i just trying to make ur script working. cuz it doesn't work way u declared. imported through importjs and used in common/wikia.js the script trows error. marked as stable site-wide script should not to do such things. could u fix it or clarify imprt and usage instructions?

Fngplg (talk) 20:48, August 16, 2017 (UTC)

No offense meant. I just don't like to feel overlooked while I can't understand, what's wrong. Unfortunately Original Authority resetted my reset to your revision. I guess, we both missunderstood the intension of each other a bit. Could you tell me what you thought, it would do and think, what it should do? Meanwhile, I can try to find the error caused by the script and set it's status back to beta. Do you agree?
Agent Zuri Profile Message Wall Blog 20:55, August 16, 2017 (UTC)
And by the way: I feel sorry for how it worked in this thread. There was a big missunderstanding but I did not know how to unconfuse it. No offense meant as well. Hope, you can understand me. I never meant to argue with anyone there or let it escalate. Agent Zuri Profile Message Wall Blog 21:52, August 16, 2017 (UTC)

Hi!!!

I need your help.

The script you created CategoryIcon, I have it installed, but I do not know how to use it, you would explain a little please. My Wikia is Wakfu Wiki

--Antranix (talk) 04:25, September 2, 2017 (UTC)

the script is not installed (es docs had wrong path; already fixed) nor configured on your wiki. also, your wiki uses new categories, so u need not this script at all, cuz ur categories already has images.Fngplg (talk) 11:50, September 2, 2017 (UTC)

GalleryCaptions security question

Hi, just a question: since GalleryCaptions carry over the wiki text, is it by chance vulnerable to those injections security issues? Did you properly check it? (I don't know how or if there is this vulnerability, just asking if you thought about that). leviathan_89

09:58, December 10, 2017 (UTC)

it does nothing with wikitext. it uses caption from gallery item, that was rendered by wikia. unless wikia galleries have security issues, the script is fine. if wikia galleries has security issues, then the script still fine, cuz u affected already, even w\o the script. Fngplg (talk) 13:31, December 10, 2017 (UTC)

A notification per page or per a condition

Hi. I noticed that you have made some changes to the WikiaNotification script weeks ago, and I'd like to ask if you can make the script display a text for specific pages or have a new script doing this task. Because the Featured video thing has been spoiling several articles in my wiki, and I would like to display a text on a notification like the one the WikiaNotification uses to mention that we don't control these videos on pages which have them.

If the notification could detect when there is a featured video on an article and display itself on it, it would really be enough for me. Since this is all what I'm asking for.--Luma.dash (talk) 19:22, January 5, 2018 (UTC)

Ok, but how can I write a specific message for these pages with a featured video?--Luma.dash (talk) 10:31, January 7, 2018 (UTC)
Thanks for the suggestion. However, the banner also appears on video files, not just for featured videos. I just want the banner to appear on articles with a featured video on top of them.--Luma.dash (talk) 06:45, January 15, 2018 (UTC)

Disabling Featured Videos

Hi Fngplg. I have asked you before about implementing a notification above articles with featured videos, and your suggestion worked perfectly for us. But now, I'm asking for myself if there is a way to disable Featured Video loader before they start loading their video content. As my internet connection is not very static and perform very badly sometimes with them, thus making loading a page hard for me.

So, if you have a way to remove them completely for me, it would be helpful.--Luma.dash (talk) 15:23, February 17, 2018 (UTC)

I added the url you gave to me to my adblock's blacklist and it worked. Thanks for the help.--Luma.dash (talk) 16:37, February 17, 2018 (UTC)

is there a way to know wether a user is online or not Rogue maltron talk 12:51, June 11, 2017 (UTC) 13:10, March 25, 2018 (UTC)rogue maltron

Code

Hello Fngplg! Is it possible to create a CollapsibleList template on the mw-collapsible CSS class for infoboxes, without JS and Lua modules?

Adding long codes is extremely inconvenient and it takes up a lot of space in the articles. As for example below:

<div class="mw-collapsible mw-collapsed" style="width:100px" data-expandtext="show" data-collapsetext="hide"><div class="mw-collapsible-content"></div></div>

RenesSans (talk) 06:57, May 9, 2018 (UTC)

collapsiblelist it is not a template, it is a script. so it is not possible to use it without js. Fngplg (talk) 15:31, May 9, 2018 (UTC)
Do you have a template, or only a script? I searched on your fandom, but in vain. RenesSans (talk) 18:53, May 9, 2018 (UTC)
script only. take a look at Template:Collapsible box, may be it will fit. Fngplg (talk) 19:08, May 9, 2018 (UTC)
Judging by the content of the template, this is what is necessary for me. Thank you, I will definitely test the other day! If it does, I will be very grateful to you. RenesSans (talk) 19:17, May 9, 2018 (UTC)

Thread:17582

Do you think you'd be able to respond to my questions on this thread when you get the chance? ― C.Syde (talk | contribs) 07:19, May 25, 2018 (UTC)

Quotes.js

Hi, may I ask you to implement i18n-js to your script MediaWiki:Quotes.js? Thanks
~[Quəntumiið the Wise] 19:42, July 6, 2018 (UTC)

i don't feel like to add external dependency, that makes one more request, just to translate literally 2 words. also, here is already implemented a language choosing algorithm. Fngplg (talk) 21:09, July 6, 2018 (UTC)

Tabber linking

Hello, I copied a tabber extionsion from the Russian Borderlands Wiki. I'm trying to get links to open the correct tab on a page in stead of the first one every time. I asked for help here and was noted that this was your script. For some reason it doesn't work well with spaces like #Super Saiyan. Although #SuperSaiyan does work. Do you have any idea what might be the problem or a possible fix? Thanks for the help. Mazdafreak

Request for help

Hi fng. Last time I came here looking for a script to find lonely talk pages, you came to my assistance and provided me with a script. Thanks to your help, that problem was eliminated. I have two requests for scripts if you can make them:

  1. A script that searches for (main) and Talk pages with the keywords "Sonic Retro", "sonicretro.org", and "info.sonicretro.org" within them. My wiki is searching for pages that have copied content from Sonic Retro and this was one of the solutions I had to start solving that problem.
  2. A script that finds files that only linked to by redirects. These files are essentially unused because only a redirect links there. That prevents Special:UnusedFiles from finding them.

Please test these on my main wiki: w:c:sonic:Sonic News Network. Thank you! SilverPlays97 (talk) 21:36, December 22, 2018 (UTC)

This area

Hi there, was wondering if there had been any developments on this area?

S3r0-Ph1i (talk) 20:38, February 2, 2019 (UTC)

Though that same message does say there was at least one possibility. A system that can automatically change polls would be a truly constructive addition to all of the wikis across the whole of Fandom. I can only encourage you to follow that route or others that can bring about this great change, please any developments would be worth the time.

S3r0-Ph1i (talk) 16:00, February 3, 2019 (UTC)

Problems with the WikiaNavigationBarStyle CSS

Hey, I was wondering if you knew how to fix the CSS for the WikiaNavigationBarStyle style-sheet. Since the recent update to the global navigation bar has caused the style-sheet to not work the way it was intended to. And I'm having trouble trying to figure out how to fix it myself. Even with the archives via the Wayback Machine, and with developer tools, I'm still not managing to fix it. ― C.Syde (talk | contribs) 04:53, March 16, 2019 (UTC)

i don't use this stylesheet, so it's out of my interests. leave ur question on the stylesheets talk page, so it will have more chances to be resolved. Fngplg (talk) 06:08, March 16, 2019 (UTC)
I already tried that. No one has said anything which is a surprise, since what Wikia/FANDOM has done to the global navigation bar recently has been one of the talks that I've been seeing on CC. ― C.Syde (talk | contribs) 06:17, March 16, 2019 (UTC)

This bot convert thingy

Hi Fngplg! Do you know if there is a way to achieve this ?

S3r0-Ph1i (talk) 23:20, May 3, 2019 (UTC)

yes. but it is complicated. so me neither can explain it to u, or spend my time to do it by myself. that's the reason why i didn't show up in the thread. Fngplg (talk) 23:48, May 3, 2019 (UTC)


Please tell me Fngplg you are the only one who may know. Being able to have the bot convert .jpg to .png images would be so marvellous, at least with like 24 of these they are already in the right areas so it's a good start there so what would the first step be for the bot?

S3r0-Ph1i (talk) 16:14, May 4, 2019 (UTC)

Счётчик правок википроекта

Здравствуйте! На вашем складе не найдётся локальный скрипт на отображение счётчика правок конкретного вики (пример: заглавная Sekiro STD Wiki), с персональной установкой? В профиле разместить.

w:c:sekiro-shadows-die-twice:Template:Mainpage_Box_About: the "current status" table Fngplg (talk) 06:36, May 23, 2019 (UTC)
Я представлял, что у вас найдётся шаблон что-то вроде электросчётчика, который было бы легко повесить в верхний правый угол. RenesSans (talk) 06:40, May 23, 2019 (UTC)
я такого не видел. спроси на форуме, мб кто-то знает или напишет Fngplg (talk) 06:45, May 23, 2019 (UTC)
Из русскоязычных я знаю только вас, и знаю также, что вы делаете нереально крутые вещи, но мне кажется можно обойтись без написания скриптов. Хочу наподобие такого из андроид-приложения, только вместо четырёх я расширил до шести пустых клеточек в Пэйнте, потому что на Undertale Вики больше 100к = 6-значная сумма правок. RenesSans (talk) 06:59, May 23, 2019 (UTC)

────────────────────────────────────────────────────────────────────────────────────────────────────почему бы просто не положить {{NUMBEROFEDITS}} себе в профиль? Fngplg (talk) 07:13, May 23, 2019 (UTC)

Положу, но надолго будет нравиться? Если не хотите участвовать со мной в креативе, может быть, последую совету из 4-го ответа. RenesSans (talk) 07:18, May 23, 2019 (UTC)
!function() {
    if (!$('.wds-community-header__counter-value').length)return;
    var t = '{{NUMBEROFPAGES}} pages, {{NUMBEROFARTICLES}} articles, {{NUMBEROFFILES}} files, {{NUMBEROFEDITS}} edits';
    new mw.Api().get({action:'parse',text:t}).done(function(d){if(!d||d.error)return;$('.wds-community-header__counter-value').attr('title',$('<span>',{html:d.parse.text['*']}).text())});
}();

повесит на счётчик страниц (правый верхний угол) тайтл с данными Fngplg (talk) 07:32, May 23, 2019 (UTC)

Название статьи js не подскажете для импорта? RenesSans (talk) 14:15, May 23, 2019 (UTC)
? Fngplg (talk) 17:29, May 23, 2019 (UTC)
Забудьте. Ну что ж, я импортировал скрипт, но он не работает (кэш очистил, браузер обновил, галочка "Включить персональный JavaScript" стоит). RenesSans (talk) 17:39, May 23, 2019 (UTC)
как именно не работает? цифры неправильные? пробовал запустить его через консоль? если ли в консоли какие-то ошибки? Fngplg (talk) 17:47, May 23, 2019 (UTC)

────────────────────────────────────────────────────────────────────────────────────────────────────Не показывается счётчик там, где он был обещан. Как запустить? (Если что, знаю, как открыть консоль.) Ошибки смотрите 1. RenesSans (talk) 17:55, May 23, 2019 (UTC)

наведи мышь на количество страниц Fngplg (talk)
My life will never be the same. RenesSans (talk) 18:28, May 23, 2019 (UTC)
что не так? Fngplg (talk) 18:36, May 23, 2019 (UTC)
Всё так. Об этом я мечтал с регистрации. Теперь брошу гадание на картах таро, ведь мне не придётся угадывать, через сколько я получу "счастливую" правку за каждую тысячную, а тупо мониторить счётчик. Короче так, попрошу вас модифицировать скрипт, чтобы работал ещё на недавней викидеятельности, - это важная страница. А может быть, на всех викистраницах в пределах целевого вики. RenesSans (talk) 18:56, May 23, 2019 (UTC)

Таббер и табвью

Боги знают, что таббер дружно переваривает табвью, если второе попало в таб-пищевод, а табвью-жокей стримит содержимое других газет местного вики 24/7/365. Но что если гению придёт на ум переоборудовать табвью под таббер и начинять всякой всячиной? RenesSans (talk) 12:00, July 2, 2019 (UTC)

я ничего не понял. Fngplg (talk) 23:44, July 2, 2019 (UTC)
Вы не можете в аллегории:SadPepe: Окей, перейду к конкретике. Вот в статье "Стрелок" на S.T.A.L.K.E.R. Wiki есть два раздела галереи - "Варианты визуалов" и "Разное", в первом из которых есть три подраздела - ТЧ, ЧН, ЗП; эти подразделы необходимо засунуть в таб "Варианты визуалов", разложив по табвью, так как они - хороший контейнер. Проблема одна: функциональность табвью рассчитана на транслирование локальных статей википроекта, и нужно создать псевдотабвью (переписать js/css) на основе таббера. RenesSans (talk) 06:24, July 3, 2019 (UTC)
используй tabber Fngplg (talk) 06:50, July 3, 2019 (UTC)
С таббером не прокатит, у него нет подтаббера. RenesSans (talk) 07:25, July 3, 2019 (UTC)
нет чего? Fngplg (talk) 09:02, July 3, 2019 (UTC)

────────────────────────────────────────────────────────────────────────────────────────────────────2-го уровня табберов. Вообще, при всём желании в контенте (содержании) таба можно сделать многоуровневые табы с многоуровневым контентом. Это как заголовок 2, заголовок 3... RenesSans (talk) 09:08, July 3, 2019 (UTC)

2-го уровня табберов есть. но оно там не нужно, тк речь идёт о галерее. Fngplg (talk) 09:22, July 3, 2019 (UTC)
Нужно, потому что разделы галереи хочу превратить в табберы, подразделы превратить в табберы для табберов 1-го уровня! RenesSans (talk) 11:13, July 3, 2019 (UTC)

Gallery Editor Script

Hey is it possible to expand the WikiaPhotoGallerySearchResults feature to include more then 50 images when building galleries using JavaScript? Like have a Page 1,2,3,4 etc., then when you click Select, Done it adds them to the gallery editor page? (And Yes I am requesting this Script please if its possible to make). Stevemagegod (talk) 23:57, July 11, 2019 (UTC)

it's possible. but i don't see the purpose of that: search ability paired with "recently uploaded" button is powerful enough to cover most needs possible. me personally is not interested in developement things that has not obvious benefits. use Board:Script_Suggestions to suggest the script. there is might be somebody who will do this. Fngplg (talk) 05:59, July 12, 2019 (UTC)

Javascript Wiki Browser

Hello Fngplg, would you mind helping explain this one further? Like do I add this, not sure where to start or how to carry out the process so hope you may help : )

S3r0-Ph1i (talk) 23:34, August 1, 2019 (UTC)

nope. my position is: if bot software is too complicated for u, then u should not use it. it's just too risky: u can do big damage to ur wiki, if u don't understand what r u doing. me don't want to be responsible for damage that u can do. Fngplg (talk) 00:08, August 2, 2019 (UTC)
Come now Fngplg where is your sense of daring? This will be such a good thing to be able to do. I insist on a better position where we explain to one another challenging areas like this, not never tell anyone under the mistaken belief that it is too complicated, how can anything develop otherwise? Just needs a different means of explaining it, surely not a challenge for you? You will not be responsible for any damage, but you will be responsible for all the good progress that can be done.
S3r0-Ph1i (talk) 03:21, August 2, 2019 (UTC)

JWB issue

Hi Fngplg, with this thread it seems to have found an issue with the JWB itself. Are you able to use the JWB to see if it works for you, and are you able to identify the problem so it can work for others?

S3r0-Ph1i (talk) 10:40, August 14, 2019 (UTC)

me not interested in jwb. i'd suggest to ask the maintainer of the script, or ask for assistance on the forum. Fngplg (talk) 11:58, August 14, 2019 (UTC)

Whilst you may not be interested in JWB, are you interested in helping others? You were familiar with it, and could have been the only one to help. I was also interested and would have appreciated it.

For future I hope you may change your position from not explaining matters believed (incorrectly) to be too complicated, since using the JWB has proven to be successful even though I had never heard of it days ago. To demonstrate it is nicer to help, if you have any wikis that need spell checking, my lovely new JWB feature may do that to help you : )

S3r0-Ph1i (talk) 22:57, August 14, 2019 (UTC)

placeholder image changing

Can this be accomplished in any way, if yes, what method is preferred? 19:05, February 12, 2020 (UTC)

placeholder of what image? if you talking about some script or stylesheet from the dev wiki, then you can read related documentation page. i believe it is most preferrable way to do things. Fngplg (talk) 19:49, February 12, 2020 (UTC)
This image is what I want replaced

This image is what I want replaced

19:56, February 12, 2020 (UTC)
can you be more specific? i do not understand what are you talking about. imagine that you writing description for person, that can't read your mind. Fngplg (talk) 20:21, February 12, 2020 (UTC)
Okay, Fngplg, I was wanting to know if a pre existing picture can be added as a placeholder through automatic means. 20:23, February 12, 2020 (UTC)
you just keep repeating same thing. that doesn't make anything clearer. i have no idea what are you talking about. try to ask on the forum or on the community central. Fngplg (talk) 09:03, February 13, 2020 (UTC)

MsgEditApi

Can you please explain how I'm supposed to use MsgEditApi? I've read the page and imported the script to my personal .JS page, though I don't know how to use the script. Vozhan [ talkcontribs ] 5:09, May 13, 2020 (UTC)

it is a script for developers. you not a developer, i guess, so you can't use the script. you might want the quotes script. Fngplg (talk) 05:59, May 13, 2020 (UTC)
Unfortunately, that script won't do me any good, but thank you nonetheless. Vozhan [ talkcontribs ] 22:27, May 13, 2020 (UTC)

Capture

Could you put an image where you can see what according to you is broken? Because the template is put in all the script articles, and in no other it gives problems. Can you put the capture of what according to you is wrong?

before and after. basically, you can see this by yourself: just visit the page after you make your edit. Fngplg (talk) 08:27, October 18, 2020 (UTC)

Loss of functionality

Hi again, as you can see, editing the article in "LinkPreview / ru" solved the problem. Where is the debate: The template that is being used, the only thing it does is redirect the article to the language of the reader, and if it does not find it, it displays it in English. In other words, it is very useful for any Fandom user to be able to use scripts if they know what they do. The basis of everything is clear that it is English, and from there it is already in each one to want to translate it into a language or not. In this specific case, according to what you have written, you automatically read the infobox data, "Infobox JavaScript", where in the template it declares in point 1.1 which fields are mandatory and which are not. And still the only thing you update is the infobox, you don't have any update in the document. But the problem is that in order for the infobox to automatically update you, all readers of all languages ​​lose the opportunity to read it in their language.

As you can see, update the page for your language so that you do not see the error, adding the fields required by the template, even so it happens to me the same as you, if someone updates their script in their mother tongue and does not translate it into English, the rest of us are out of date. It is clear that I also want an automatic mode, but without losing that all users can read in their language and also consult information in any other.

Today is that I was out, I will study how to have the two advantages, the automatic and reading for everyone, but I am not convinced if it is only the infobox, because all the added text is not available.

At the moment, we each have our article in our language by putting "/ Language", which is useful for any wiki user, and programmers or advanced users will always have to go to the author of the source code, whether in English, Russian or Indian .

Also if you look through all the script articles, all that users from other countries are activating it because it is very comfortable to read quickly.

a greeting (Jarvii (muro) 19:41, October 18, 2020 (UTC))

the langselect template: 1) shows outdated translation instead of english version. me didn't see language-specific docs that would be newer than english one. specifically in my docs, english version is always the most recent one. i do prefer situation when user see most recent docs, and goes to probably outdated one by explicit desire (by click on the /lang link); 2) doesn't allow to unexperienced editor (like me) to edit language-specific doc page. when i redirected to ?lang=ru, and click on the "edit" button, i do see english doc page. that is kinda frustrating. without the "langselect", page shows fair links to /lang pages.
short: i do prefer clear way to provide documentation, that allows to read and edit doc page as it meant to: if you going to the "page", you will see content of the "page"; when you want edit the "page", you edit the "page".
the langselect template fails in both cases. besides of incompatibility with more sophisticated tools. the my ones :D
so when i have to decide between tool that: 1) shows most recent doc; 2) allows to go translated page; 3) allows to edit translated page by one click on the "edit" button; and 1) shows outdated docs; 2) doesn't allow to edit translated doc without entering the lang name in the address bar (by your hand! in 2020!); 3) more convenient for translators; i will prefer the 1st one. at the end of the day, any documentation is meant to be read in the first place. Fngplg (talk) 20:42, October 18, 2020 (UTC)

All improvements are necessary

Even so, if you have another way where all readers can consult an article in their language, have access to consult it in other languages and also update only the infobox (if it is all better), it is already an advance, I am open to improve code .

(Jarvii (muro) 19:45, October 18, 2020 (UTC))

Викификатор на UCP

Привет! Планируется ли доработка викификатора под UCP, и если да, то когда можно ждать? Без него как без рук. Спасибо! --FunGorn (talk) 09:17, October 23, 2020 (UTC)

я его ещё 3 месяца назад под юцп переделал. что-то не работает?Fngplg (talk) 07:38, October 24, 2020 (UTC)
только что проверил: работает. не забывай использовать режим исходного кода Fngplg (talk) 07:41, October 24, 2020 (UTC)
Не работает. При предпочитаемом исходном (с панелью 2010 или без) кнопка видна только при переходе в визуальный, при этом клик по ней перекидывает в исходный. Можно попробовать в Убежище или Бункере. Предпочитаемый во всех вариантах перепробовал. Не знаю, почему все молчат, но ждут давно, когда заработает. --FunGorn (talk) 21:08, October 24, 2020 (UTC)
не воспроизводится. правка викификатором. если у тебя проблемы с появлением кнопки, попробуй отключить личные скрипты и стили. или просто забей: жми кнопку в визуальном редакторе, а когда он переключится в исходный код, то жми кнопку ещё раз. Fngplg (talk) 00:09, October 25, 2020 (UTC)
В том и дело, что не у меня, а у всех в Убежище и Бункере не удаётся. На Викии Вики TRJ-VoRoN попробовал сегодня, тоже не работает. Как я понимаю, если настройки предпочитаемого кода последними сохранены в профиле на старой платформе, кнопка на UCP-проектах появляется, но работает только по всей статье, нельзя выделить текст и викифицировать (т. е. внутри всех шаблонов не срабатывает). Если сохранить настройки в проекте на новой платформе, то кнопка видна только в визуальном, при клике в неё и перебросе на исходный кнопка пропадает. --FunGorn (talk) 00:58, October 25, 2020 (UTC)
"выделить и викифицировать" работать на новой платформе не будет ещё очень долго. возможно, вообще никогда не будет, тк визуальный редактор (даже в сурсе это визуальный редактор) очень недружелюбен, работать с ним приходится через разные непредназначенные для этого отверстия. насчёт остального не могу ничего сказать. как появится время, чтобы разобраться со всеми редакторами, что тут насобачили, мб что-нить выясню. на данный момент рекомендую использовать новый редактор: "режим исходного кода визуального редактора" (именно под него скрипт и дописывался). Fngplg (talk) 09:49, October 25, 2020 (UTC)
Умыться слезами только. В этом режиме, сатанинское он племя, даже быстрой вставки нет... Будем подождать, что ещё остаётся. Спасибо за объяснения. --FunGorn (talk) 10:32, October 25, 2020 (UTC)
всё везде работает, включая викификацию выделенного фрагмента. Fngplg (talk) 22:03, October 28, 2020 (UTC)
Здравствуйте. А здесь викификатор работает? Я его даже не вижу. FileCrasher (talk) 10:30, November 29, 2020 (UTC)
там скрипты сайта сломаны (обваливается на строке addOnloadHook(changingBackground);). попробуй положить викификатор на самый верх импорта - должно помочь. Fngplg (talk) 16:53, November 30, 2020 (UTC)
Спасибо, сработало. Как писали выше, скрипт действительно ведёт себя уже не так стабильно на UCP. В любом случае, скрипт незаменимый. FileCrasher (talk) 16:09, December 2, 2020 (UTC)

Идеи для викификатора

Здравствуйте! Большое спасибо за этот скрипт, он экономит огромное количество времени и улучшает внешний вид и исходник статей.

Пока я работал с викификатором, я подумал, что можно было бы встроить в него базу данных слов с буквой ё, чтобы он заодно ёфицировал статьи. Или, может, сделать отдельный скрипт на эту тему? В любом случае, ёфикация - тоже очень нужная работа, которую пока что приходится делать вручную. Скрипт мог бы это ускорить!

Также на моей вики (не знаю, актуально ли это у других) участники часто чудили с визуальным редактором, в результате чего ставили по 3, 4, 5 и даже один раз 8 абзацев подряд, создавая пустые полотна в статьях. Думаю, сведение лишних абзацев к одному было бы тоже очень полезной функцией.

определить лишние абзацы невозможно в принципе: скрипт не может понять, когда абзацы лишние, а когда - умышленные, через что будет портить разметку страниц. вообще для ёфикации и удаления лишних абзацев нужны отдельные скрипты, тк это очень индивидуальные вещи. в принципе, викификатор позволяет конфигурировать правила на лету: то есть на локальной вики можно добавить свои, глубоко личные правила замены, которые будут работать. для этого надо подождать активации викификатора (событие wikificator.ready, которое в качестве аргумента получает ссылку на конфигурацию викификатора; распространяется через mw.hook), после чего добавить нужные правила в массив правил замены: wikificator.t.rr['stagex'].push({reg: /регэксп поиска/, exp: 'замена'}); где x - номер этапа работы (подробности - в коде скрипта, лучше использовать 5-7 или 1/10). скажу сразу: правила для локальных вики я писать не буду. Fngplg (talk) 15:09, November 20, 2020 (UTC)

Виджет дискорда

Привет. Поскольку ты записан ответственным за виджет дискорда от Сибы, ответь тут пожалуйста. -- Natalya-ru 06:28, 4 June 2021 (UTC)

UCX compatiblity

You might want update some of your scripts and stylesheets regarding the new UCX change, I would love to help you in fixing and converting those scripts. Cheers ~ Headquarter8302yeet G'day mate 10:30, 5 June 2021 (UTC)

New code for LinkPreview

Hello, the text is set to inherit but in my code I put --theme-page-text-color, so the color of the preview text is the color of the wiki text ...

Here is the code I changed ...

.npage-preview {
color: var (- theme-page-text-color);
background-color: inherit;
}
.npage-preview div {
text-align: left;
padding: 5px;
}

Valentin5228 (talk) 20:55, 3 August 2021 (UTC)

I already changed this 6 days ago. -- Cube-shaped garbage can 20:56, 3 August 2021 (UTC)

New style for LinkPreview

Hello, I found a cleaner style for the link preview:

.npage-preview {
	border-radius:3px;
	border:1px solid var(--theme-border-color);
}

Cordialy

k Fngplg (talk) 00:04, 25 September 2021 (UTC)

Background for LinkPreview

.npage-preview {
   background:var(--theme-page-background-color);
}
i did it already Fngplg (talk) 14:35, 25 September 2021 (UTC)

Re: MediaWikiBacklink for global lua modules

Fixed. Apart from the incorrect selector, the problem seems to have stemmed from a data type issue. The script was treating the value of wgCityId as a string (which I vaguely remember it was on pre-UCP legacy wikis) rather than a number. Thanks for the report. EIZEN (talk) 20:53, 24 October 2021 (UTC)

RE: cache for linkpreview.js

Hi, thanks for the follow-up. The article details API already caches its responses for a day both for anonymous & logged-in users, so there is no need to specify caching on the client side here like for the parse action API.TK-999 (talk) 13:57, 21 November 2022 (UTC)

Fab Integrator?

Hello Fngplg!

I've been wandering around this fandom and I crossed the code you made for SketchfabIntegrator, which I found amazing!

I do wonder, did you plan to do the same for Fab, Sketchfab's successor in some way?

Thanking you in advance for your answer and wishing you a good day!

Nyklaus von Abyss (talk) 08:36, 15 October 2025 (UTC)

sketchfab allows integration. do fab provide a way to do this? i don't see any mentions in the fab docs. while it totally possible to integrate fab content, without explicit permission it would be slighlty not smart. Fngplg (talk) 15:57, 15 October 2025 (UTC)

LinkPreview RegExp.iimages

Здравствуйте! Вроде бы, Вы говорите на русском языке, поэтому пишу на нём, так как мне будет удобнее описать проблему. И... грубо говоря, я не понимаю, как пользоваться данным параметром от слова вообще. Как бы да, существует пример, вот он:

window.pPreview.RegExp.iimages = [/myimage\.png/, new RegExp('myim.*'), 'some text'];

Я как не пытался, так и не получалось правильно занести какую-то картинку в список игнорируемых. Только с текстом в конце разобрался и то не очень, но он и мне не нужен. Вот, представим, существует картинка "Template-Spoiler.png". Я вводил её на место "/myimage\.png/", однако ничего не менялось. Потом отдельно ссылку прикреплял, но тоже ничего. Можете наглядно показать, что делать и по возможности занести это на страницу со скриптом? Буду крайне благодарен! А также заранее спасибо. LostyForever♫♪♬♩ 22:48, 7 January 2026 (UTC)

это массив игнорируемых изображений. элементами массива могут быть как строки, так и регулярные выражения. если имя игнорируемого файла точно известно, то можно передать его обычной строкой (с соблюдением регистра). в примере это 'some text'. если что-то не работает, то скорее всего что-то неправильно указано. сказать точнее без ссылки не могу. Fngplg (talk) 01:43, 8 January 2026 (UTC)
О, спасибо! Мне сначала казалось, что 'some text' существует для того, чтобы убрать определённый текст с превью, чтобы оно там не высвечивалось, а оно вот как ещё может быть. Теперь всё работает, как надо. :D LostyForever♫♪♬♩ 10:37, 8 January 2026 (UTC)
После небольшой работы над скриптом, весь его дизайн и прочие изменения почему-то не были сохранены, когда я перенёс всё из личного JS\CSS в викийный Common.js\Common.css. Показывается лишь стандартный вариант скрипта, что игнорирует все настройки. Пример того, как оно должно быть: раз, два, три. Даже не знаю, в чём может быть дело. :( LostyForever♫♪♬♩ 16:44, 8 January 2026 (UTC)
скрипт не проверен и не принят сотрудниками: https://community.fandom.com/ru/wiki/%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%BA%D0%B0:CSS_%D0%B8_JS_%D0%BB%D0%BE%D0%BA%D0%B0%D0%BB%D1%8C%D0%BD%D1%8B%D0%B5 Fngplg (talk) 19:48, 8 January 2026 (UTC)
Трындец, ну спасибо, теперь буду хоть когда-то проверять правые колонки, а то о их существовании забил. LostyForever♫♪♬♩ 20:10, 8 January 2026 (UTC)