FANDOM


This is the talk page for discussing improvements to the LastEdited page.

expanding

Is there any way that this could be expanded so that it works on all pages, not just pages in the article namespace? -- Rider ranger47 21:00, October 15, 2014 (UTC)

The script was designed for the main namespace, since those changes require more of a review. Anyway, it's in the current to-do list, so I'll be working on it. -- sqm talk 09:17, 11.15.2014
Seconded! I would love it if this worked in every namespace. Perhaps it can be a variable that we set locally, similar to how we specify the pages upon which AjaxRefresh works. Thanks! :) — SpikeToronto 02:49, November 28, 2014 (UTC)
I've updated the script so that it works for most namespaces. But, I've omitted the positioning since it would be too much of a hassle to do that for all namespaces. -- sqm talk 09:13, 12.01.2014
Wow! Thanks! :) — SpikeToronto 07:46, December 2, 2014 (UTC)

Editor avatar

Hi. Thanks for making this. Can this script also display the avatar of this last editor for styling purpose? Reasno 23:23, December 18, 2014 (UTC)

That should be possible. I'll be working on it. -- sqm talk 01:55, 12.19.2014
Done and done. -- sqm talk 13:05, 12.30.2014
Loving this update so far. However, this seems to be breaking on one of my wikis. The avatar image seems to have an additional itemprop=" tag, which doesn't have a closing quote, nullifying the width/height, and showing the image at it's full height of 150 (NOTE: I currently added a width/height of 19 to the CSS class, so you'll have to inspect the element to see it). Also, I'm also getting an error on multiple wikis that use this that anon edits no longer show up; I believe it's in response to this error (page):
jquery,mediawiki:128 - GET - http://transformice.wikia.com/wiki/User:182.18.225.192 - 404 (Not Found)
My guess is it's because you have all your code inside the callback from checking the userpage, and when it doesn't exist the script never fires? Sorry for being a trouble maker, and thanks for the wonderful script. (Also, does it currently work on the new proposed wikia article layout at all?) Fewfre 🔎 K🧀14:25 Tue, 30 Dec 2014 EDIT: I'm at work so both of these have been happening on a mac with Chrome (up-to-date) and Safari. Fewfre 🔎 K🧀14:27 Tue, 30 Dec 2014
Right, I forgot about user pages that don't exist. I'll implement that when I can. For the itemprop thing, I think I'll add filters to slice out the image url. And no, this script was not designed for the new layout and may or may not work with it; I have yet to test that. -- sqm talk 16:52, 12.30.2014
What’s the benefit of showing the avatar? This is just supposed to be a “snapshot” of the last entry in the revision history, and we do not display avatars there. Frankly, I think it makes the LastEdited entry at the top of the page too instrusive and conspicuous. Is there some sort of JS statement we can wrap the import in that will locally disable displaying the avatar? Thanks! :) — SpikeToronto 17:22, December 30, 2014 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── The feature was asked for, and could be disabled with the window.lastEdited object. See lastEdited#Configuration. -- sqm talk 18:53, 12.30.2014

Completed Done with this edit: http://sp.wikia.com/?diff=1665587 Thanks! :) — SpikeToronto 06:30, December 31, 2014 (UTC)
I personally like it as I often recognize an avatar before a username. Plus it helps make the editor feel "special" since there avatar makes their name a bit more noticeable. Fewfre 🔎 K🧀19:51 Tue, 30 Dec 2014
(Edit) I do agree it's a little intrusive though, maybe the default size should be something more like 15x15px? I know I can change it for my needs with CSS, but 19 seems a little large for the default, considering the height of .lastEdited class is 14px or so on chrome without the avatar, with 12px font. Fewfre 🔎 K🧀20:03 Tue, 30 Dec 2014
Fixed the issue. The avatar should appear fine now, but if it doesn't, feel free to report back. 19x19px is the preferred icon size, and is suitable for inline icons. Though, I've changed the size to 15x15px, I'll change it back if the icon appears a bit too small to recognize. -- sqm talk 11:52, 01.02.2015
Having a few more (new) avatar issues, now mostly with anon ones, although the core issue seems to be on all of them. I'm getting height"15"=""(link)(link) on all avatars, but while user avatars are saved by the width, anon avatars seem to also have 15"=""(link [this wiki still uses CSS to fix the sizing bug, but you can see the html])(link [Edit: This one uses CSS also now.]) instead of the width. Getting this on Firefox (latest) and IE 11.
And thanks for lowering the image size; if you do choose to enlarge it I can always shrink it myself, but I do prefer it as default, so thanks. Fewfre 🔎 K🧀03:32 Sat, 03 Jan 2015
Wow, my request has been fulfilled. Thanks! Reasno 03:04, January 8, 2015 (UTC)

Disable on page / namespace

Since you're already checking namespaces / page titles, could you please add support for disabling the script on select pages / namespaces? I don't personally need it for a namespace (but figured it would be a nice option), but would like the option to disable it on the main page (and I could imagine some wiki's wouldn't want it on portal pages). Thanks for your time, Fewfre 🔎 K🧀15:03 Mon, 29 Dec 2014

The current namespace support is not really optimal, and I'm working for a better one. I'll make sure to add that exclusion feature with the next update. -- sqm talk 13:05, 12.30.2014
Thanks for the quick reply, and I'll look forward to it :) Will your rework also test for custom namespaces? (unless it does already and I'm not noticing). Fewfre 🔎 K🧀14:11 Tue, 30 Dec 2014
No, this script doesn't work on custom namespaces. Basically, the whole function fires only if the namespace number is smaller than 112 (since most namespaces that require review fit to that limit), and most custom namespaces have namespace numbers above 500 iirc. I'll fix that too with the next update. Thanks again. -- sqm talk 16:52, 12.30.2014
These planned namespace changes sound great. Thanks! — SpikeToronto 17:24, December 30, 2014 (UTC)

Cursor:pointer; and Multiple imports?

Since the "diff" link doesn't have an href, some "link" behaviors aren't done on some browsers, such as cursor:pointer; (sorry for being so anal >.<). I prefer no href so it doesn't add "#" to the url, just letting you know it might need some additional css because of it.

Also, does this scripts consider the possibility of a wiki using this as well as an editor using it for personal use, both at the same time? I tried injecting the script onto a page already using it through the web console, and it duplicated the information. Fewfre 🔎 K🧀20:12 Tue, 30 Dec 2014

Added both changes. And no, you're not being annoying. On the contrary, it is users like yourself that help in fixing issues which otherwise go unnoticed. Thanks for all the reports and suggestions! -- sqm talk 11:52, 01.02.2015

No link for users

While anonymous edit's still work as expected, when the last edit was by a valid user, the link disappears, and the space between the name and avatar disappears (link). Fewfre 🔎 K🧀18:44 Wed, 07 Jan 2015

It seems extracting the avatar from profiles was the cause of this. My guess would be the differing URL lengths of the avatar for each user. Anyway, I've removed the feature for now. It won't be added until I figure out a better method for getting user avatars. -- sqm | talk | 12:41, 01.25.2015
Thanks, not having that link was frustrating. Also, instead of waiting for the avatar to load, couldn't you just add an empty span with an id/class that you could load it into after you've retrieved the image url? Might prevent it from taking a few milliseconds longer for the rest of it to load. Fewfre 🔎 K🧀16:12 Sun, 25 Jan 2015
The main issue here is not the time taken to load the avatar (a few milliseconds really don't matter, for me at least), but getting the avatar itself. Anyways, I'll add that when re-adding the avatar feature. -- sqm | talk | 17:23, 01.25.2015

"Created page with"

I was also wondering if it might be a good idea to take any commit message that starts with "Created page with [stuff]" and just compress it down to "Created page"? Fewfre 🔎 K🧀18:38 Thu, 22 Jan 2015

Done. -- sqm | talk | 12:41, 01.25.2015
Thank you. Fewfre 🔎 K🧀16:13 Sun, 25 Jan 2015

Highlighted user names

For some reason, my user name doesn't appear to be highlighted on the LastEdited addon if my user name has a space in it. It it possible to fix it? Other admins do got highlighted username. Bureaucrat of Happy Tree Friends. Yong Feng (Reply←→Edits) 20:07, February 26, 2015 (UTC)

Currently the space in your user name is replaced with %20 instead of _. You can adjust your css rules respectively or wait until a user with the codeeditor right replaces encodeURIComponent with mw.util.wikiUrlencode (or adds code with the same effect). Arkondi (talk) 04:19, February 27, 2015 (UTC)
Fixed, thanks Arkondi. -- sqm | talk | 08:55, 02.27.2015
Thanks guys. Yong Feng (Reply←→Edits) 11:23, February 27, 2015 (UTC)

timeago

How can I alter my set-up in Common.js so that the last edit’s timestamp is expressed correctly and not as processed by timeago? Thanks! :) — SpikeToronto 03:08, April 5, 2015 (UTC)

P.S. Plus, it slows down page loads. — SpikeToronto 04:29, April 5, 2015 (UTC)

UPDATE: Thanks for making this optional! :) — SpikeToronto 09:11, April 5, 2015 (UTC)

No problem. :) As for the lag, it was caused due to the time taken in obtaining the avatar. I've adjusted the requests a bit so that the script would get the avatar only when the avatar option is enabled and add it later to the details. This makes the script load faster on pages, so you should observe a boost in performance now. -- sqm | talk | 09:15, 04.05.2015
Wow, it’s great! And, since we have the avatar option disabled at our wikia, it loads faster. Thanks again for the changes! :) — SpikeToronto 09:37, April 5, 2015 (UTC)

Translation

Hi! Sqm-san annouced translations of this js to us. (Although I don't think Japanese translation is necessary >_<)

// 日本語 (Japanese)
ja: {
            lastEdited: '$1による編集 $2',
            comment: '編集内容の要約',
            size: '現在のサイズ',
            created: '新しいページ',
            loading: '直近の変更を確認する',
            changes: '変更点',
            link: 'リンク',
            undo: '取り消し,
            cancel: '戻る'
}

or...

  • undo: '{{int:editundo/ja}}',

and (diff) is translated (差分) (= {{int:diff/ja}} ) in Japanese. --Plover-Y (talk) 2015-04-06 09:44 (UTC)

+ fr, oc

Hi, here are French and Occitan translations.

        // French
        fr: {
            lastEdited: 'Dernière modification de $1 le $2',
            diff: 'diff',
            comment: 'Résumé de modification',
            size: 'Taille actuelle',
            created: 'Page créée.',
            loading: 'Chargement des détails de la dernière modification',
            changes: 'Changements',
            link: 'Lien',
            undo: 'Annuler',
            cancel: 'Annuler'
        },
        // Occitan
        oc: {
            lastEdited: 'Darrièr cambiament per $1 lo $2',
            diff: 'dif',
            comment: 'Resumit de modificacion',
            size: 'Talha actuala',
            created: 'Pagina creada.',
            loading: 'Cargament dels detalhs del darrièr cambiament',
            changes: 'Cambiaments',
            link: 'Ligam',
            undo: 'Desfar',
            cancel: 'Anullar'
        }

Hulothe @fandom 09:58, April 14, 2015 (UTC)

Added, thanks. -- sqm | talk | 14:59, 04.14.2015

Excluding namespaces

How does one list namespaces to be excluded? Does each one require quotes around it? If we want to exclude the Project namespace, do we use Project, or the actual name of the Project namespace? Thanks! :) — SpikeToronto 22:09, May 4, 2015 (UTC)

You can exclude namespaces by adding their appropriate id in the window.lastEdited object. A full list is given here. For instance, if you don't want the script to work on the Project and Forum namespaces (and their respective talkpages), the configuration would look something like this:
window.lastEdited = {
    // other configs go here
    namespaces: {
        // 4 - Project:
        // 5 - Project talk:
        // 110 - Forum:
        // 111 - Forum talk:
        exclude: [4, 5, 110, 111]
    }
}
--sqm | talk | 04:32, 05.05.2015
Thanks! — SpikeToronto 14:29, May 5, 2015 (UTC)

+ pt-br

Hello, here are portuguese of Brazil translation.

        // Brazilian Portuguese
     pt-br: {
            lastEdited: 'Editado por último por $1 $2',
            diff: 'comparação',
            comment: 'Resumo da Edição',
            size: 'Tamanho atual',
            created: 'Página criada.',
            loading: 'Carregando detalhes da última edição',
            changes: 'Mudanças',
            link: 'Link',
            undo: 'Desfazer',
            cancel: 'Cancelar'
        }

Cratera (talk) 17:44, May 8, 2015 (UTC)

Added, thanks. -- sqm | talk | 17:51, 05.08.2015

toggle button

I have a suggestion. The nature of displaying the amount of information the script does can make the article header appear more cluttered. Wikia's recent changes to the header haven't really been helpful, but despite that, I think that adding a toggle button to expand and collapse the LastEdited details would be a nice visual improvement.

Hackey5 (talk) 08:43, May 9, 2015 (UTC)

I do agree the recent updates to the header made it appear more cluttered with the details. Though I don't see how adding a toggle button solve the issue. Having to expand something which requires to be viewed just once or twice is not really an optimal solution in this case. Could you perhaps elaborate how you want the details to be shown? -- sqm | talk | 14:37, 05.10.2015
I know that editors who monitor article activity may prefer the article details' immediate visibility. However, for general editors and the majority of readers, who articles were last edited by is irrelevant information. This script primarily serves the purpose of an editing tool, so it should not interfere with article content unless summoned or contribute towards clutter. I have three suggestions:
  • Add a Details button next to the Edit/Talk buttons which can be clicked to quickly reveal the article details below the article header (where it is now).
  • Add a Details option to the Edit button's dropdown menu which does the same thing as described above.
  • Install a popover menu that then presents the article details by hovering over a small plus (+) icon positioned somewhere in the article header.
Any of these will improve the presentation of articles. Perhaps give coders the choice so they can decide what's best for their wiki. Also, can you please add more specific ID's or classes that can be manipulated, as the script element is extremely rigid right now. Thanks.
Hackey5 (talk) 16:53, August 8, 2015 (UTC)

Spanish translation error

Hello, I'm here to mention a translation error into Spanish of LastEdited, I will show only the erroneous parts.

// Spanish
        es: {
            comment: 'Editar resumen',
        }

As you can see, It is not "Editar resumen" in Spanish because that means edit literally the edit summary of a page, the correct translation is "Resumen de edición". 

22:05, May 11, 2015 (UTC)
+1. --Benfutbol10 [TalkPetic. diseño] 00:37, June 30, 2015 (UTC)
Corrected, thanks. --スリスト 16:17, 07.09.2015

Monobook

Hey, I was wondering if I could request monobook support? Should be as easy as appending it to a different element if (skin == "monobook"). Or at the least it seems simple to me, but I honestly have no clue. Thanks either way for your time! Fewfre 🔎 K🧀13:31 Thu, 21 May 2015

This is a great idea! — SpikeToronto 07:44, June 26, 2015 (UTC)
Done. The details should appear below the heading, but if they need to be placed somewhere else, let me know. --スリスト 16:42, 07.09.2015
Awesome! I just started noticing them. It’s terrific. Thanks! :) — SpikeToronto 09:23, July 11, 2015 (UTC)

Personally disable?

A few people on our wiki do not like this script. Unbelievable, I know since this is a great feature. Anyway, is there something that an individual can add to his personal common.js/wikia.js that will disable it for him and him alone? Thanks! :) — SpikeToronto 07:47, June 26, 2015 (UTC)

He/she can use some css, just copy - paste this code into his/her wikia.css Dai ca superman (talk) 06:53, June 27, 2015 (UTC)
.lastEdited {display: none;}
Thanks! :) It’s so easy, I feel embarrassed to have asked. :D — SpikeToronto 04:52, June 30, 2015 (UTC)
I wonder who those people are...
~Curiouscrab (talk) 19:01, July 9, 2015 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── To my, albeit feeble, recollection, I thought it was you who had complained about them. :D Oops! — SpikeToronto 09:28, July 11, 2015 (UTC)

Errors in the German translation

Visiting a wikia using this script I've found some errors (mostly grammar and conflicts with the offical MediaWiki translation):

// German
        de: {
            diff: 'Unterschied',
            comment: 'Zusammenfassung',
            size: 'Aktuelle Größe',
            created: 'Seite erstellt.',
            undo: 'Rückgängig machen',
            cancel: 'Abbrechen'
        }

-- AmonFatalis @fandom (wallcontribs) 12:55, July 9, 2015 (UTC)

Corrected, thanks. --スリスト 16:17, 07.09.2015

Default lang

For the language default is there a reason you use "wgContentLanguage" instead of "wgUserLanguage"? "wgUserLanguage" seems to be more appropriate for this script in my opinion. Like if I put this in my global js and visit a French wiki, it will currently translate the script into French, where as "wgUserLanguage" would keep it in English (while still acting as "wgContentLanguage" for anons).

Also, I personally think it would be good to disable the script on the main page - using "wgIsMainPage" - to avoid it getting cluttered. I can do this on a personal basis of course, but while I'm here and it's on my mind, just mentioning it. Fewfre 🔎 K🧀21:28 Mon, 13 Jul 2015

Added both changes, thanks. --スリスト 22:26, 07.13.2015

Class vs Id

Is there a certain reason why this script uses .lastEdited rather than #lastEdited? I know changes might be necessary, but most other scripts use ids rather than classes since they're generally easier to work with since you only have to target one item rather than specifying an item out of many. This script only adds the info once, so it would work just fine with id.
~Curiouscrab (talk) 20:10, July 15, 2015 (UTC)

+ ca, pt, gl, it, ro, val

Hi, here are Catalan, European Portuguese (Portugal), Galician, İtalian, Romanian and Valencian translations.

        // Català
        ca: {
            lastEdited: 'Últim canvi per $1 el $2',
            diff: 'dif',
            comment: 'Resum de l’edició',
            size: 'Mida actual',
            created: 'Pàgina creada.',
            loading: 'Carregant detalls de l’última edició',
            changes: 'Canvis',
            link: 'Enllaç',
            undo: 'Desfer',
            cancel: 'Anuŀla'
        },
        // European Portuguese
        pt: {
            lastEdited: 'Última edição por $1 $2',
            diff: 'comparação',
            comment: 'Resumo da edição',
            size: 'Tamanho actual',
            created: 'Página criada.',
            loading: 'A carregar detalhes da última edição',
            changes: 'Mudanças',
            link: 'Ligação',
            undo: 'Desfazer',
            cancel: 'Cancelar'
        },
        // Galician
        gl: {
            lastEdited: 'Última edición por $1 $2',
            diff: 'comparación',
            comment: 'Resumo da edición',
            size: 'Tamaño actual',
            created: 'Páxina creada.',
            loading: 'A cargar detalles da última edición',
            changes: 'Cambios',
            link: 'Ligazón',
            undo: 'Desfacer',
            cancel: 'Cancelar'
        },
        // Italian
        it: {
            lastEdited: 'Ultima edizione da $1 $2',
            diff: 'dif',
            comment: 'Riassumono dell’edizione',
            size: 'Dimensione attuale',
            created: 'Pagina creata.',
            loading: 'Caricando dettagli dell’ultima edizione',
            changes: 'Modifiche',
            link: 'Collegamento',
            undo: 'Disfare',
            cancel: 'Cancellare'
        },
        // Romanian
        ro: {
            lastEdited: 'Ultimă ediţie de $1 $2',
            diff: 'dif',
            comment: 'Rezumat ediţiei',
            size: 'Mărime actual',
            created: 'Pagină creată.',
            loading: 'Încărcând detalii cu privire la ultima ediţie',
            changes: 'Schimburi',
            link: 'Link',
            undo: 'Desfacere',
            cancel: 'Anulare'
        },
        // Valencià
        val: {
            lastEdited: 'Últim canvi per $1 el $2',
            diff: 'dif',
            comment: 'Resum de l’edició',
            size: 'Tamany actual',
            created: 'Pàgina creada.',
            loading: 'Carregant detalls de l’última edició',
            changes: 'Canvis',
            link: 'Enllaç',
            undo: 'Desfer',
            cancel: 'Cancelar'
        }

--Josep Maria 20. (discussiócontribucions) 19:12, October 12, 2015 (UTC)

Added all, thanks. slyst (talk) 11:29, November 15, 2015 (UTC)

+ eo, sco

        // Esperanto
        eo: {
            lastEdited: 'Lastafoje redaktita de $1 $2',
            diff: 'malsamoj',
            comment: 'Resumo',
            size: 'Nuna grandeco',
            created: 'Kreita paĝo.',
            loading: 'Ŝarĝante detalojn de lasta redakto',
            changes: 'Ŝanĝoj',
            link: 'Ligilo',
            undo: 'Malfari',
            cancel: 'Nuligi'
        },
        // Scots
        sco: {
            lastEdited: 'Hintmaist eeditit by $1 $2',
            diff: 'nou',
            comment: 'Ootline',
            size: 'Current size',
            created: 'Creautit page.',
            loading: 'Laidin details o hintmaist eedit',
            changes: 'Chynges',
            link: 'Link',
            undo: 'Ondae',
            cancel: 'Cancel'
        }

--Dser (talk) 02:46, October 13, 2015 (UTC)

Added both, thanks. slyst (talk) 11:29, November 15, 2015 (UTC)

?

What happened to the preview header on this page? Santademon (talk) 02:11, October 29, 2015 (UTC)

The demo was loaded via DemoScripts.js, which was deleted for "security concerns," and I doubt it's coming back as is. -- slyst (talk) 05:34, November 1, 2015 (UTC)

Bengali + Hindi +Hindi fiji

// বাংলা (Bengali)
bn: {
            lastEdited: ' সম্পাদনা করেছেন $1  $2',
            comment: 'সম্পাদনার সারাংশ',
            size: 'বর্তমান আকার,
            created: 'তৈরি করেছে',
            loading: 'লোডিং হচ্ছে',
            changes: 'পরিবর্তন',
            link: 'লিংক',
            undo: 'সম্পাদনা বাতিল করুন,
            cancel: 'বাতিল'
}
// हिंदी (hindi)
hi: {
            lastEdited: '$ 1 $ 2 से एडिट',
            comment: 'संपादन का सारांश',
            size: 'मौजूदा आकार',
            created: 'नए पेज',
            loading: 'लदान',
            changes: 'बियान अधिक अंक',
            link: 'लिंक',
            undo: 'रद्द करना' ,
            cancel: 'रद्द करना'
}
//Fiji Hindi
hif: {
            lastEdited: 'last edit kya $ 1 $ 2 ',
            comment: 'sampadana ka sarangsh',
            size: 'bortman akar',
            created: 'toiri kiiya hai',
            loading: 'load le ra hain',
            changes: 'paribartan',
            link: 'link',
            undo: 'batil' ,
            cancel: 'baril'
}

Abdullah Al Noman (talk) 11:01, December 3, 2015 (UTC)

Added all, thanks 空色バラ 11:00, October 14, 2016 (UTC)

Finnish

fi: {
            lastEdited: 'Viimenen muokkaus $1 $2',
            diff: 'ero',
            comment: 'Muokkauksen kuvaus',
            size: 'Nykyinen koko',
            created: 'Loin sivun.',
            loading: 'Viimeisen muokkauksen tietoja ladataan',
            changes: 'muutokset',
            link: 'Linkkaa',
            undo: 'Kumoa',
            cancel: 'Peruuta'
}

High Goddess Venus-Afrodite-Finelia Ω Mighty Ruler of the Gods ⊛ ( talk ) 23:17, February 13, 2016 (UTC)

Added, thanks 空色バラ 11:00, October 14, 2016 (UTC)

Malay

en: {
            lastEdited: 'Terakhir disunting oleh $1 $2',
            diff: 'beza',
            comment: 'Sunting ringkasan',
            size: 'Saiz semasa',
            created: 'Halaman dihasilkan.',
            loading: 'Memuatkan butiran-butiran suntingan terakhir',
            changes: 'Perubahan',
            link: 'Pautan',
            undo: 'Undo',
            cancel: 'Batal'
}

Brandon Pow (talk) 06:09, February 16, 2016 (UTC)

Added, thanks 空色バラ 11:00, October 14, 2016 (UTC)

Responsive Diff

When I click the diff on my mobile, I can't see or very hard to see all the content of the diff table? Can you make it work smoothly on mobile device? Thank you Chiến Thần Vương (talk) 10:37, June 4, 2016 (UTC)

I've updated the script to use the new modal, so it should be more responsive now. Let me know if you're still having issues 空色バラ 11:00, October 14, 2016 (UTC)
Could you add support for this css code, some changes pretty long make it display outside the modal popup so it can't be views fully on mobile Dai ca superman (talk) 09:54, October 18, 2016 (UTC)
#lastEdited-diff-changes table {
	word-break: break-all;
}

Rollback Button

Can you add support for rollback button? Thank you :) Dai ca superman (talk) 16:23, August 27, 2016 (UTC)

Added 空色バラ 11:00, October 14, 2016 (UTC)

Minor edits

Would it be possible to add the minor edit symbol (i.e., m) to the info shown? Thanks! :) — SpikeToronto 07:15, September 17, 2016 (UTC)

Bump! :) — SpikeToronto 20:25, October 13, 2016 (UTC)
Added. Minor edits are marked with a [m] after the diff link now. Let me know if it needs to be somewhere else 空色バラ 11:00, October 14, 2016 (UTC)
Thanks Slyst!! :) I’ll keep an eye out for the changes. — SpikeToronto 20:03, October 14, 2016 (UTC)
UPDATE: The [m] after the diff link looks terrific. Thanks! :) — SpikeToronto 09:08, October 16, 2016 (UTC)

Location of the text

Hi,

I love this, thanks a lot for creating it! I myself am not very good at JavaScript, so maybe you (or anyone) could help me a little. Currently, I use an obsolete version of the script on w:c:moderncombat. As you can see, the text is not on the place on which the latest version puts it. How can I edit the latest version so that the text is there, and not below the title?

I described my problem here, too: w::thread:1114992

Thanks in advance,

--ysbert 💬 📝 16:29, September 21, 2016 (UTC)

I've added the position variable in the options to accommodate for this. To reciprocate what you have on w:c:moderncombat, simply add
    position: {
        element: document.getElementById('WikiaPageHeader'),
        method: 'append'
    }
in the configurations (after the script has been approved, ofc) and you should be good to go. Although remember, the details also include the edit summary and size, so you might need some CSS to fix that 空色バラ 11:00, October 14, 2016 (UTC)

IT

Minor tweaks to the IT translation:

        // Italian
        it: {
            lastEdited: 'Ultima revisione di $1 $2',
            diff: 'diff',
            comment: 'Riassunto della modifica',
            size: 'Dimensione corrente',
            created: 'Pagina creata.',
            loading: 'Caricando i dettagli dell’ultima revisione',
            changes: 'Modifiche',
            link: 'Collegamento',
            undo: 'Annulla modifica',
            cancel: 'Annulla'
        },

Also, wouldn't it be more useful to know the size of the last edit rather the the current size of the page? leviathan_89 @fandom 18:44, September 21, 2016 (UTC)

Corrected, thanks 空色バラ 11:00, October 14, 2016 (UTC)

Suggestion

  • Add edit size
  • Retrieve localized mediawiki messages for talk/contribs/block leviathan_89 @fandom 10:10, October 5, 2016 (UTC)
  • Added
  • Is it really required? I could retrieve the messages through an API call, but I don't see the point in adding it just for that 空色バラ 11:00, October 14, 2016 (UTC)
Well, without it those 3 links remain in English regardless of the language used. If you want to avoid the API call, you could add them as i18n messages leviathan_89 @fandom 15:41, October 14, 2016 (UTC)
Yes I know, but it shouldn't be much of an issue? The main problem I have with adding new i18n messages is that the script already has 25+ languages, so it would be a hassle asking the authors to provide three meager translations that the script can do without 空色バラ 16:33, October 14, 2016 (UTC)
I think it's weird to have only some parts translated, especially since the script actually consists in few sentences, therefore you see it half in English and half in your language. I don't think you have to bother the translators, just add the strings and if the translation is not present it will fall back to EN anyway (like now), won't it? Also, technically the translations are already available, since they are the same messages as MediaWiki:talkpagelinktext, MediaWiki:contribslink, MediaWiki:blocklink. So you can just add the suffix of the language and copy the messages. If you want I can do it afterwards. P.S.: where did you add the edit size exactly? leviathan_89 @fandom 16:49, October 14, 2016 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── Well, there’s always the way multilingual scripts used to be done here at the Dev wiki: one script per language. For example:

  • LastEdited/code.js
  • LastEdited/code.js/fr
  • LastEdited/code.js/es
  • LastEdited/code.js/it
  • LastEdited/code.js/jp
  • etc.

This has the benefit of making much smaller scripts for us to load. But, it has the disadvantage of greatly multiplying the number of scripts you have to update whenever the code needs changing. — SpikeToronto 20:11, October 14, 2016 (UTC)

I don't really see the gain in doing that for a small script like this one... I think the simpler solution would be to just add the i18n for those 3 links, then me or anyone who wants to waste a bit of time can copy the messages over. If there is no translation, English will be shown like now, so nothing to lose. leviathan_89 @fandom 22:56, October 14, 2016 (UTC)

Bug in configuration

I believe I've found a bug with the configuration of this script. If exclude: [] is missing from the configuration object, the script will throw an error, cannot read property 'constructor' of undefined for the line 415, where a comparison is made. I'm not familiar with that stuff, but I'm assuming you're missing a check there that prevents the script from breaking if the exclude array is not provided. Mainframe98 talk·edits 15:35, October 14, 2016 (UTC)

This should be fixed once the script passes review 空色バラ 16:33, October 14, 2016 (UTC)

Time

Wouldn't make it more sense to display time in your local time like RC, history and logs? leviathan_89 @fandom 16:25, October 15, 2016 (UTC)

Or, make how time displays something that can be set: Some may want it in UTC, while others may want it in local time. Thanks! :) — SpikeToronto 09:06, October 16, 2016 (UTC)
Yes, probably the better solution would be display it with local time as default and add an option to display in UTC instead. leviathan_89 @fandom 11:41, October 16, 2016 (UTC)
Added 空色バラ 16:20, November 27, 2016 (UTC)

Double Run Portection

Could double run protection be added? --Sharkie 14:12, October 16, 2016 (UTC)

Yes please, it's been bugging me seeing two (or more commonly it seems the second one just shows the loading icon forever). Fewfre 🔎 K🧀21:43 Mon, 17 Oct 2016
Added; it should be up once the script passes review 空色バラ 16:20, November 27, 2016 (UTC)

Remove "shift minus" from username with blank

Could you remove "shift minus" symbol (I don't know what it called in English) from username by blanlk/gap like before your major update? Like "Dai_ca_superman" change to "Dai ca superman" Dai ca superman (talk) 10:04, October 18, 2016 (UTC)

Its called a underscore. --Sophie 07:47, November 7, 2016 (UTC)
This was fixed by Mainframe98 空色バラ 16:20, November 27, 2016 (UTC)

Avatar

It seem the avatar of anon's disappear for latest version. Could you add it back? And other thing could you make an option to change the default size of avatar? Thanks Dai ca superman (talk) 10:15, October 18, 2016 (UTC)

I can see anon avatars just fine. Can you link examples where you don't see them? And, added avatarsize 空色バラ 16:20, November 27, 2016 (UTC)

Request for tweaks

Hello, I'm an usual contributor to the Yu-Gi-Oh! Wikia. Ever since the rewrite, there have been a couple of minor problems I've spotted. For instance, this; it doesn't happen with all the users that have that default image as avatar, though; it only happens with some of them. Also, if a page was never edited after its creation, the script doesn't kick in like it used to. This applies to both wikia and monobook skins. Becasita on ygo (talkcontribs) 18:59, December 5, 2016 (UTC)

Update

With the upcoming page header redesign, this script needs to be updated, although I suppose that it will become a "personal only script" after the update. I also would like to suggest again to localize the links (talk/contribs/block), translations can be grabbed from MediaWiki:talkpagelinktext, MediaWiki:contribslink, MediaWiki:blocklink either by copy&pasting or API. leviathan_89 @fandom 12:06, June 5, 2017 (UTC)

ELI5 Why this is not for site-wide?

[ QlnwtheOctoGuy (talk) 12:46, July 25, 2017 (UTC) ] Basically, I don't know. So can anyone explain why and which rule it break to being this?

Have a look at Customization Policy. Both the new community and page header are strictly personal-only customizable unless there're icons for designing the article which can be up to 25x25, extra additions to the edit dropdown like this, AjaxRC or maybe the 1st body heading like in w:c:memory-alpha:MediaWiki:Wikia.css in which page titles are in Gold color. Thanks!!!! MarTsok 13:00, July 25, 2017 (UTC)

Console error

This script is causing a console error (Cannot read property 'replace' of undefined) when the page editor is open. leviathan_89 @fandom 15:54, October 19, 2017 (UTC)

Scroll bug

Since one of the last changes the script causes a scroll bug. If you open and close the dialog of template's type, you are unable to scroll on the whole page and you have to reload the page. -- DarkBarbarian.png Barbar (talk) 22:55, November 27, 2017 (UTC)

fixed. Fngplg (talk) 19:22, November 28, 2017 (UTC)

Unsusable on MS Edge/IE sometimes

I noticed that if I add LastEdited, I tested that it makes page reload with blank page which can make the wiki unsuable if I have personally installed LastEdited using JS (Personal JS), forcing user to reload page many times. On the other hand, it does not have this problem on other browsers such as Chrome and Opera so this needs tweaking so as not to happen this. Thank you!!! MarTsok 23:42, November 28, 2017 (UTC)

Main Page

For some strange reason, this does not show up on the main page of any community.—|| Grudgeholderr ||— 05:08, April 4, 2018 (UTC)

The script checks if the current page is the main page and will not run if this is the case, though I don't know why that is done. - OneTwoThreeFall talk 06:05, April 4, 2018 (UTC)
Could an option to enable this on the main page be added as a configuration? —|| Grudgeholderr ||—
It seems to have been disabled on the main page because it got cluttered, but that was when LastEdited was also a site-wide script. Now that this is only allowed for personal use, is it still necessary to prevent it from running on the main page?—|| Grudgeholderr ||— 10:14, November 7, 2018 (UTC)

Configuration

Hello!

First, thanks for creating this code, it's really cool and I've been using it on some wikias :) But my question is, how do I customize this code? I mean, where can I do it? That's the only thing that confuses me :/ I wanted to put this code for customization:

window.lastEdited = {

  avatar: true,
  avatarsize: 20,
  size: true,
  diff: true,
  comment: true,
  time: 'timestamp',
  timezone: 'UTC+2',
  lang: 'de',
  namespaces: {
      exclude: 
              [2, 3]
  },
  pages: []

};

But I actually don't know where to put it in, my English is not that well and my knowledge for coding.

It would be awesome if someone could explain it to me!

If there's anything more I can help with, ask me! ~Aki (talk) 16:37, May 15, 2018 (UTC)

Which wiki do you want to add that configuration to? -- Cube-shaped garbage can 18:39, May 15, 2018 (UTC)
To this wiki: http://de.florelias-sonic-tales.wikia.com/wiki/Florelias_Sonic_Tales_Wiki
If there's anything more I can help with, ask me! ~Aki (talk) 19:28, May 15, 2018 (UTC)
Well, the script is not supposed to be installed sitewidely since it's violating the customization policy. You can add the configuration to your common.js on that wiki, though. -- Cube-shaped garbage can 20:05, May 15, 2018 (UTC)

mw-usertoollinks

Could <span class="mw-usertoollinks"> be wrapped around (talk|contribs) to allow easier CSS styling?—|| Grudgeholderr ||— 08:07, May 28, 2018 (UTC)

Added --Sophie 05:16, September 17, 2018 (UTC)

No longer working

This seems to have stopped working. Could someone look into this? Santademon (talk) 03:11, November 6, 2018 (UTC)

It's already fixed. It's just awaiting review at the moment. -- Cube-shaped garbage can 07:44, November 6, 2018 (UTC)

Strange Name

When a user named WitherB0$$398 edited a page, this showed a user named "WitherB0$398" edited it. When I clicked on that user, it brought me to an nonexistent "WitherB0$398". The avatar showed correctly though. And when I went to the page history, it showed the name right. What happened? HerroPeople 00:47, January 23, 2019 (UTC)HerroPeople

Protection diff

Currently, when the last edit to a page is changing the protection level(s), LastEdited shows a diff link which, when clicked on, shows a blank modal. Could the diff link be made to hide when there is no actual page diff to show? --Sharkie 12:03, February 2, 2019 (UTC)

Why? If used in combination with QuickDiff, removing the diff link prevents users from quickly clicking on the diff link and going back through the page's history to see why was it protected in the first place. It's also inconsistent with page history's behavior. I doubt there's an API way to check whether the currently shown diff is also a log action. -- Cube-shaped garbage can 12:34, February 2, 2019 (UTC)

Problems under Edge and Safari

It seems that if the script is imported, it will cause Safari browser to lead into white screen once the script loads. It also happens in Edge if it is not imported under ImportJS. But if this phenomenon won’t happen, it just yields a loading animation of LastEdited and won’t load. Could you do something about this? Thanks. I’m sick of being incapable of using that script. HM100 17:00, March 30, 2019 (UTC)

Script problem

Sorry, English is not my native language. But I have problem with my script on Oxygen Not Included Wiki. In more detail about this I already wrote about 5 months ago to Kuzura, however, the problem has not been resolved. When I turn on the script in gadgets, some pages periodically simply stop loading, and I just see a white screen. Technically, working with this script is impossible. Can this problem be somehow solved? — TESERACT (talk) 12:53, August 3, 2019 (UTC)

Hide diff button for moves

If LastEdited is showing a move as the last "edit", then could the diff button be hidden, as it just opens up an empty modal. --20:30, July 9, 2020 (UTC)

If you're using LastEdited with QuickDiff, not showing the diff button means you won't be able to scroll back through other edits before the move without reloading the page. -- Cube-shaped garbage can 20:42, July 9, 2020 (UTC)
LastEdited has a config option for disabling its modal tho, so that could be checked when deciding to show the diff link. --Little Red 20:44, July 9, 2020 (UTC)

LastEdited On Everything on the Fictional Characters Fanon Wiki

I still have a problem with the LastEdited script on everything on the Fictional Characters Fanon Wiki. The LastEdited was imported via ImportJS but nothing is showing the Last Edited on top of each Wikia Page Header. Xandershelton183 14:51, July 24, 2020 (UTC)

The problem you describe is not the fault of LastEdited. It appears to be the result of an error thrown by CreateSpecialPage, one of the other scripts listed in your MediaWiki:ImportJS file. This uncaught error prevents the other scripts listed after CreateSpecialPage from being imported, hence why LastEdited doesn't seem to appear on certain pages. Either remove that import from your ImportJS or wait for my fix to the CreateSpecialPage script to be approved by Staff. EIZEN (Talk) 15:47, July 24, 2020 (UTC)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+