[03:22:48] hi [03:24:43] anyone? [06:13:45] Hi all, just getting started editing and want to know if this is possible before I spend a lot of time: A template that will make a small number disappear when its value is surpassed by some other value. The logic is easy, but not sure about the presentation. [06:15:17] Hi mack-. [06:15:33] Like "if x > 5" logic? [06:15:44] I'm guessing it's not possible with standard parsers. CSS + JS? some other script? Or, am I reinventing a wheel that is already out there? (Example is software version number. I want a little tag by a feature if it's Beta, but it to go away when the Stable version > that beta version is passed) [06:16:17] You can use the ParserFunctions extension for that. Or Scribunto is another extension that adds Lua support. [06:16:32] Version comparisons are a lot more complicated than integer comparisons. [06:16:59] yeah, that logic is straight-forward.. I'm pretty sure I can manage to pull version numbers from the front page to compare. It's the disappearing tag I'm concerned about. [06:17:10] Concerned about why? [06:17:29] Most logic conditionals support an else branch. [06:17:40] this software is thankfully easy. counts sequentially with time, lol [06:17:57] Like {{#ifexpr: {{{version}}} > 5 | do something | otherwise do this }} [06:18:30] concerned that it's possible. Like I said, that logic is easy. I don't know if the formatting I'm thinking of is possible. [06:18:32] "do something" or "otherwise do this" disappear depending on the evaluation of {{{version}}} > 5. [06:19:05] I'm still not really sure what the concern is. Yes, any of this is possible with some light coding. [06:19:14] it sounds like CSS twiddling at first glance, but really don't want to have to do that if there's another way [06:20:09] CSS is trivial. [06:20:29] ok, what is the code acting on? Am I right to go the CSS route? [06:20:41] I'm not sure you need CSS. [06:20:42] the "light coding" acting on, I mean [06:20:58] If you're going to do this with server-side logic, you can just output HTML or not. [06:21:03] And don't need to hide anything with CSS. [06:21:15] Are you trying to do this on your wiki? [06:22:17] I don't own it no. If there's not much work involved, I might be able to convince a server admin to take some action. [06:23:56] ok, I wasn't aware that server-side logic was easy for a wiki. Like I said.. just getting started :) [06:24:13] Sure. [06:24:21] As I said, you can install extensions that do it. [06:24:32] One is ParserFunctions. Another is Scribunto. [06:24:40] Or if you like JavaScript, you can easily use that. [06:24:55] JavaScript in MediaWiki is typically written server-side, but executed client-side. [06:25:01] I can set up a test server and if it's something I came give to an admin to copy-paste, sounds nice [06:25:21] https://test.wikipedia.org/wiki/Template:Version_check [06:25:25] is an example template. [06:25:35] https://test.wikipedia.org/wiki/Template_talk:Version_check has sample usage. [06:25:46] That's using #ifexpr from the ParserFunctions extension. [06:25:51] !pf [06:25:52] "Parser functions" are a way to extend the wiki syntax. ParserFunctions is an extension that provides the basic set of parser functions (you have to install it separately!). For help using parser functions, please see . For details about the extension, see . [06:25:55] !lua [06:25:55] Scribunto is a new extension that makes it easier to write repeatable code in Lua, rather than in complex wikitext templates. See http://www.mediawiki.org/wiki/Lua_scripting and http://www.mediawiki.org/wiki/Extension:Scribunto for more information. [06:26:51] I search wp for a template like that and didn't find it. Thanks for pointing me to test.wp [06:27:12] The English Wikipedia has thousands of templates like that. [06:27:28] But many of the popular ones have probably been converted to Lua modules. [06:28:28] yeah, I only managed to find a List Them All link, with no search. I gave up scrolling Next Page after I never got out of "A" and wanted "V" for version [06:29:39] ok, thanks Esther for giving me pointers! [06:42:07] yeah, this seems trivial with scribunto. Just return something or not in the function. [11:33:31] Hi, can I change the configuration so that when a user clicks a red link, s/he gets into the visual editor, not the wikitext editor? [20:50:09] Hi. Which extension is for deleting changes? [20:50:40] in articles [20:52:34] like on wiki projects.. Administrator remove change from history of article [20:52:54] Which is name of extension? [20:54:40] I found on: https://www.mediawiki.org/wiki/Manual:RevisionDelete [20:54:41] Thanks [22:00:38] I have problem with ssh on laptop.. I tryed to use updating from webbrowser to enable extension Echo on vezba.in.rs but this method no create in database what extension need and then I got error [22:02:08] MediaWiki internal error. [22:02:08] Original exception: [WfT@H2UfuGmkUO03uWjrJAAAABI] /wiki/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B0 Wikimedia\Rdbms\DBQueryError from line 1075 of /home/vezba/public_html/wiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? [22:02:08] Query: SELECT * FROM `mwp0_echo_event` INNER JOIN `mwp0_echo_notification` ON ((notification_event=event_id)) INNER JOIN `mwp0_echo_target_page` ON ((etp_event=event_id)) WHERE event_deleted = '0' AND notification_user = '1' AND notification_read_timestamp IS NULL AND etp_page = '2' [22:02:09] Function: EchoEventMapper::fetchUnreadByUserAndPage [22:02:11] Error: 1146 Table 'vezba_mw28704.mwp0_echo_event' doesn't exist (localhost) [22:02:13] Backtrace: [22:02:15] #0 /home/vezba/public_html/wiki/includes/libs/rdbms/database/Database.php(933): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) [22:02:20] #1 /home/vezba/public_html/wiki/includes/libs/rdbms/database/Database.php(1269): Wikimedia\Rdbms\Database->query(string, string) [22:02:23] #2 /home/vezba/public_html/wiki/extensions/Echo/includes/mapper/EventMapper.php(161): Wikimedia\Rdbms\Database->select(array, string, array, string, NULL, array) [22:20:59] Did you run update.php?