Extension talk:Lingo/2013
This page used the LiquidThreads extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Lingo not working - no errors, but no popups!
I've just installed Lingo v0.4 onto a MediaWiki 1.19.2 isntallation, with PHP 5.3.3 and MySQL 5.1.61. I've created a simple Terminology page, via the link on the Special:Version page, with the terms and definitions all on one line, as per several of the suggestions on this discussion page. I've then added the terms to pages in the main section of the Wiki, but I get no popup once the pages are saved.
Other extensions in use are:
- Confirm User Accounts
- Renameuser
- Translate
- DynamicPageList
- InputBox
- PerserFunctions
- StringFunctions
- SyntaxHighlight
- YAMBE Hierarchical Breadcrumb
I've tried enabling debugging, but am not seeing any error messages - it's as if the extension is simply being ignored, although it is definitely showing up on the Special:Version page.
Please note that I've only added the one require_once line to my LocalSettings.php file - I haven't used any of the other customisations.
This looks like an incredibly useful extension which will be great for our users, but it looks like I'll need some help to get it going. Any ideas, please? Jlandells (talk) 14:22, 3 January 2013 (UTC)
1.18.2 v0.4 appears to be u/s also
Product Version
MediaWiki 1.18.2 PHP 5.3.8 (apache2handler) MySQL 5.5.16
Vista XAMPP install
Install verifies, no errors, no indications no pop ups. Lingo (Version 0.4) Provides hover-over tool tips on pages from words defined on the Terminology page Barry Coughlan and Stephan Gambke 81.152.150.227 21:07, 3 February 2013 (UTC)
- Sorry, I don't understand your post. F.trott (talk) 19:30, 18 February 2013 (UTC)
- Hi, sorry the grammar of my post wasn't clear.
- Just simply saying that Lingo version 0.4 exhibits the same non-operation described in the preceding post by Jlandells, but on Mediawiki version 1.18.2. 81.152.152.245 18:52, 20 February 2013 (UTC)
- This should be fixed now in Lingo 0.4.1. Compatibility with MW pre1.20 was broken because the used hook ParserAfterParse was not available back then. F.trott (talk) 14:34, 24 February 2013 (UTC)
- Thanks very much for checking this out, this really handy extension is now working just fine ! on 1.18
- I did find it necessary to add $wgEnableParserCache = false; to localsettings.php to introduce any additions/changes to the "Terminology" page. 81.152.152.245 18:50, 4 March 2013 (UTC)
- This should be fixed now in Lingo 0.4.1. Compatibility with MW pre1.20 was broken because the used hook ParserAfterParse was not available back then. F.trott (talk) 14:34, 24 February 2013 (UTC)
Latest version breaks links, if term is part of the link
Hi,
In version 0.41 all links, where part of the link is a term, are corrupted - they do not appear as links but instead the wiki text is shown. With 0.3x it worked.
Another issue I have is with WikiEditor, which I use for editing texts. The problem is, that on the preview page all terms are shown together with the definitions. 94.113.242.66 11:27, 11 March 2013 (UTC)
- Same here. 200.201.1.11 13:19, 21 March 2013 (UTC)
Cleaning up the definition before displaying it
Thanks a lot for this extension!
My Glossary page contains some formatting codes of the entries (bold and italic). The tooltip displays the definition with the formatting codes (xxx and xx). Would it be possible for Lingo to clean the definition (stripping off all the ' or ) before its display?
Thanks. (and sorry for my bad English)
Rémi RevigBreizh (talk) 17:19, 15 March 2013 (UTC)
How do I make it so the term is a link as well as a Lingo?
Right now if I try to make it a link, it over rides the Lingo - thus the popup text doesn't appear.
Is there a way to make it so that it can show both poptext and act as a link when clicked? 24.212.129.251 17:42, 26 March 2013 (UTC)
my own "options"
I do Lingo with the following own "options":
1) Terms witch should appear only in the Lingo-page (e.g. glossary) but without any tooltip in any other sites, can be included with
<span style="font-weight:bold; border-bottom:1px dotted lightgray;">T</span> :Test</pre> 2) Terms that should only get tooltips but no entry in the Lingo-page, could be included with <pre><includeonly> ;automobile ;cars </includeonly> ;car:VW</pre> 3) You can split sections that must not appear as a tooltip with an blank line. Than you can use a : to indent opticaly in the Lingo-page: <pre>;t:Test :or not</pre> Hope it will help somebody. If there are any risks, please tell me. [[User:Paul Hema|Paul Hema]] ([[User talk:Paul Hema|talk]]) 12:26, 10 April 2013 (UTC) == Terms in Site Notice == I have terms in my MediaWiki:Sitenotice. They were displaying correctly in previous versions (using MW 1.16), but when we migrated to 1.20 and updated Lingo, they are no longer recognized as terms. It appears that the LingoParser code is looking for terms within only the article itself, and then will loadModules only on pages that have recognized terms within. Is there an available option to force Lingo to load the resource modules on every page? To be fair, I may have hacked the previous version to make this work - just looking for a more "portable" solution. :) Thanks! [[User:Jlemley|Jlemley]] ([[User talk:Jlemley|talk]]) 16:41, 22 April 2013 (UTC) :Doesn't make much sense to load the module if it is not needed, so I guess you will have to hack it in again. ;-) :Lingo was moved to a different hook in recent versions to avoid annotation of text between nowiki tags. Don't know if this has anything to do with it not annotating the site notice anymore. [[User:F.trott|F.trott]] ([[User talk:F.trott|talk]]) 20:33, 22 April 2013 (UTC) == Follow Templates == We have many, many special names in our Glossary. So the List is very long. I want to group the list under some headlines and sometimes to reuse in other sites. So i tried to use templates for some sections. Unfortunately Lingo does not follow Templates like: <code>{{GLOSSAR_REPORTS}}</code> [[Special:Contributions/46.5.176.184|46.5.176.184]] 09:56, 18 June 2013 (UTC) :I noted this as an enhancement request here: https://bugzilla.wikimedia.org/show_bug.cgi?id=55831 :If you want, add yourself to the CC list to get notified of updates. :Cheers [[User:F.trott|F.trott]] ([[User talk:F.trott|talk]]) 09:17, 17 October 2013 (UTC) ::Fixed. [[User:F.trott|F.trott]] ([[User talk:F.trott|talk]]) 23:35, 2 March 2014 (UTC) == Lingo works on Terminology page only == Hello, I have a mediawiki 1.21 installation which i just upgraded. I also upgraded lingo to latest one. However ,Lingo glossay terms with tooltip works only on the Terminology page but not on other pages. What could be the source of the problem for this behavior. [[User:Wikimanz|Wikimanz]] ([[User talk:Wikimanz|talk]]) 23:43, 7 July 2013 (UTC) :I had a similar problem, which I ended up resolving by installing the latest [http://git.wikimedia.org/summary/?r=mediawiki/extensions/Lingo.git development version] (0.4.3alpha). It's got a bug or two (sometimes, for instance, the tooltip ends up going off the page entirely), but it works well for me. [[User:Lightbinder|Lightbinder]] ([[User talk:Lightbinder|talk]]) 21:01, 26 August 2013 (UTC) :Hi! :I found a similar effect with the 1.21.2 mediawiki. :Adding Glossary is immediately visible on the Glossary page. :On regular wiki pages there are curious effects. :Some Glossary will be displayed sometimes.<br /> :After a page was displayed first time with glossary, new glossary entries will not be displayed until you edit and save the wiki page (the wiki content, not the glossary). :On the Special:Version page new glossary is displayed immediately. :It seems to me if there is any chaching happening with the wiki pages - but mediawiki configuration don't have caching enabled.<br /> :I'm not able to debug - too unexperienced in PHP. :Would someone have a look, please? :Regards, :Joerg [[Special:Contributions/212.66.144.234|212.66.144.234]] 07:54, 2 October 2013 (UTC) ::This really sounds as if wiki pages were cached. On a page, where glossary entries should appear, can you add <code>?action=purge</code> to the address in the address line and see if it helps? ::And is your wiki publicly available? [[User:F.trott|F.trott]] ([[User talk:F.trott|talk]]) 08:03, 2 October 2013 (UTC) :::Thanks for your help! :::Unfortunately the Wiki is company internal, so I'm not able to grant access to it. :::Indeed, <code>?action=purge</code> helps to show the content immediately. :::Now I can have a look and see, where the caching is enabled. :::Thanks and regards, :::Joerg [[Special:Contributions/212.66.144.234|212.66.144.234]] 06:42, 14 October 2013 (UTC) ::::I found, that $wgParserCacheType (http://www.mediawiki.org/wiki/Manual:$wgParserCacheType) was not defined in the localsetting.php. ::::This has the default CACHE_ANYTHING. ::::Setting it to CACHE_NONE fixes my problem. ::::All glossary using pages are displayed correctly after reload. ::::Thanks again for the hint with the purge action. ::::Regards, ::::Joerg [[Special:Contributions/212.66.144.234|212.66.144.234]] 07:26, 14 October 2013 (UTC) :::::No problem. Glad it workes now. :) [[User:F.trott|F.trott]] ([[User talk:F.trott|talk]]) 07:27, 14 October 2013 (UTC) == Line breaking bug in Lingo == I've got Lingo 0.4.3alpha running on MediaWiki 1.21.2, and for most part it works great. There's a corner case, though, where if you have a term with spaces in it (e.g. myocardial infarction), and the line happens to wrap in the middle of the term, you end up with a tooltip that goes off the right margin of the page. I'm doing some investigation, but one quick-and-dirty fix for it is to add <code>white-space: nowrap;</code> to the <code>.tooltip_abbr</code> CSS class in <code>skins/Lingo.css</code>. That portion of my <code>skins/Lingo.css</code>, for instance, reads: <pre>.tooltip_abbr { border-bottom: 1px dotted #bbf; white-space: nowrap; }
This solves the problem, but it means that you can get some ugly line breaking patterns as a result. I'll keep investigating to see if there isn't a more elegant way to fix this bug. Lightbinder (talk) 21:39, 26 August 2013 (UTC)
- Noted as a bug here: https://bugzilla.wikimedia.org/show_bug.cgi?id=55830
- Please add yourself to the CC list to get updates.
- Cheers F.trott (talk) 09:14, 17 October 2013 (UTC)
no lingo in ref-tag
There are no lingo tooltips within the < ref>
-tag (Extension:Cite).
Is there any way to get it? Paul Hema (talk) 13:25, 4 September 2013 (UTC)
- I agree that it would be great to have that feature. I think it has to do with these lines in LingoParser lines 198-200:
$elements = $xpath->query("//*[not(ancestor-or-self::*[@class='noglossary'] or ancestor-or-self::a)][text()!=' ']/text()");
which is only requesting regular text of the page and not reference text. Could this xpath query be changed to include reference text? I'm a newbee at mediawiki code so its just a guess. 129.98.196.203 05:00, 7 October 2013 (UTC)- I noted this as an enhancement request here: https://bugzilla.wikimedia.org/show_bug.cgi?id=55829
- If you want, add yourself to the CC list to get notified of updates.
- Cheers F.trott (talk) 09:06, 17 October 2013 (UTC)