Extension:Lingo
Lingo Sürüm durumu: kararlı |
|
---|---|
Uygulama | Genişletilmiş sözdizimi , Görünüm |
Açıklama | Bir viki sayfasında tanımlanan kelimelerin sayfalarında üzerine gelme araç ipuçları sağlar |
Yazar(lar) | |
Sürdürücü(ler) | WikiTeq team |
En son sürüm | 3.2.4 (2024-12-12) |
Uyumluluk politikası | Uzun Süreli Destek sürümü olan her MediaWiki sürümü için uzantıda karşılık gelen bir dal vardır. |
MediaWiki | 1.39 |
PHP | 7.4+ |
Veritabanı değişiklikleri | Hayır |
Composer | mediawiki/lingo |
Lisans | GNU Genel Kamu Lisansı 2.0 veya üstü |
İndir | README Release notes |
|
|
Quarterly downloads | 28 (Ranked 101st) |
Translatewiki.net adresinde mevcutsa, Lingo uzantısını çevirin | |
Sorunlar | Açık görevler · Hata bildir |
Lingo is a glossary extension. It lets you define a list of abbreviations and their definitions on a page and then displays them whenever an abbreviation is hovered over in an article.
The encoding of definitions is WCAG compliant, and should be available in screen readers as well.
Kullanım
Terminoloji sayfası
By default, Lingo will mark up any page with the terms and definitions defined on the Terminology page of your wiki (or the respective page in the language of your wiki). Create that page and insert some entries using the following syntax:
;FTP:File Transfer Protocol ;AAAAA:American Association Against Acronym Abuse ;ACK:Acknowledge ;AFAIK:As Far As I Know ;AWGTHTGTATA:Are We Going To Have To Go Through All This Again ;HTTP:HyperText Transfer Protocol
You can use any characters in a term (including punctuation, spaces, and all UTF-8 characters, but excluding the colon (:), of course); you are not limited to only letters.
To structure the Terminology page, you are also allowed to have Terms and Definitions on separate lines. Any lines not starting with a semicolon (;) or a colon (:) are ignored, so go ahead and insert empty lines, headlines, explanatory text.
Using this format, you may assign one definition to multiple terms, e.g., to cover grammatical variants (see the U.S.A. example below), and multiple definitions to one term, e.g., to cover different meanings (see the ACK example). You may even combine this, i.e., have multiple definitions for a set of multiple terms. Finally, you may also use transclusion, e.g., to have different glossaries for different topics and pull them all together on the Terminology page.
;FTP :File Transfer Protocol ;AAAAA :American Association Against Acronym Abuse ;ACK :Acknowledge :Acklington railway station ;U.S.A. ;USA :United States of America Pull in more terminology from elsewhere: {{:MoreTerminology}}
Metni işaretlemeden hariç tutma
You can exclude an article from markup by including the magic word __NOGLOSSARY__
anywhere in that article's text.
In some cases, it may be necessary to exclude only portions of a page, e.g., because Lingo interferes with some JavaScript. This can be achieved by wrapping that part in an HTML element (e.g., a span or a div) and specifying class="noglossary"
. As a shorthand for <span class="noglossary">
you can just use the <noglossary>
tag.
ApprovedRevs
Lingo supports the Approved Revs extension for the Terminology page. See Customization below.
Uluslararasılaştırma
The extension is pretty well internationalized by now, thanks to the efforts of the volunteers on https://translatewiki.net. (If your language is not supported yet, get an account there and help yourself. It's easy!) To find out the name of the Terminology page and of the __NOGLOSSARY__
magic word in your wiki's language, have a look at the files in the i18n
folder and the Lingo.i18n.magic.php
file. If you want to change the name of the Terminology page, you can do so by editing the page on your wiki named MediaWiki:lingo-terminologypagename.
Kurulum
Composer
Lingo should be installed using Composer. The package name is mediawiki/lingo
. For instructions on how to install Composer, see MediaWiki's Composer User manual .
- Run
COMPOSER=composer.local.json php composer.phar require --no-update mediawiki/lingo ^3.0
from the MediaWiki installation directory. - Run
php composer.phar update --no-dev mediawiki/lingo
from the MediaWiki installation directory.- Any future update is then just a call to
php composer.phar update --no-dev mediawiki/lingo
.
- Any future update is then just a call to
- Add to the end of LocalSettings.php :
wfLoadExtension('Lingo');
- Do some customization if necessary (see below)
- Go to the Special:Version page of your wiki and verify that an entry for Lingo exists
- From Lingo's entry on the Special:Version page follow the link to the Terminology page of your wiki and insert some entries OR (if this page exists already) edit and re-save it to trigger the recreation of the glossary
Paketlenmiş indirmeleri kullanma
If Composer is not an option, you may also install it like this:
- Download Lingo 3.2.0 or the current development version (Alternatively you can clone Lingo using git.)
- Extract the files to the
$IP/extensions
directory - If necessary rename the newly created directory to Lingo
- Add to the end of LocalSettings.php :
wfLoadExtension('Lingo');
- Do some customization if necessary (see below)
- Go to the Special:Version page of your wiki and verify that an entry for Lingo exists
- From Lingo's entry on the Special:Version page follow the link to the Terminology page of your wiki and insert some entries OR (if this page exists already) edit and re-save it to trigger the recreation of the glossary
Özelleştirme
Add the following to LocalSettings.php
and uncomment/modify as needed:
// specify a different name for the terminology page (Default: 'Terminology' (or localised version). See MediaWiki:Lingo-terminologypagename.)
//$wgexLingoPage = 'Terminology';
// specify that each term should be annotated only once per page (Default: false)
//$wgexLingoDisplayOnce = false;
// specify what namespaces should or should not be used (Default: Empty, i.e. use all namespaces)
//$wgexLingoUseNamespaces[NS_SPECIAL] = false;
// set default cache type (Default: null, i.e. use main cache)
//$wgexLingoCacheType = CACHE_NONE;
// use ApprovedRevs extension on the Terminology page (Default: false)
//$wgexLingoEnableApprovedRevs = true;
MobileFrontend suppresses Lingo's styling, which makes all Definitions used on the article appear at the end of the page. To avoid this add the following to your LocalSettings.php when using MobileFrontend:
$wgMFRemovableClasses = [ 'base' => [ '.mw-lingo-tooltip' ] ];
Lingo also provides an interface to plug in alternative dictionaries (backends). If you are interested in that, see Semantic Glossary for an example. You can also drop me a mail.
Finally you can provide your own styling. For the classes used by Lingo for the various HTML elements, please have a look at the style file.
Vitrinler
- NORA online - Dutch Government Reference Architecture website
- Helminthic Therapy Wiki - Information database about helminth replacement therapy - see notes here)
- https://www.wissensmanagement.gv.at - Website for Knowledge Management in Austrian Government
Add your wiki here!
You can find other examples on the usage and version matrix
Sürüm geçmişi
Katkıda bulunanlar
Lingo is a rewrite of extension Terminology, written by BarkerJr with modifications by Benjamin Kahn. Lingo was originally written by Barry Coughlan and is currently maintained by WikiTeq.
Lingo makes use of the jQuery qTip2 library.
Hataları bildirme
Bugs and feature requests should preferably be reported on the Wikimedia bug tracker.
Comments, questions and suggestions should be sent or posted to:
- the Lingo discussion page
- the maintainer
Ayrıca bakınız
This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
- Extensions by WikiTeq/tr
- Stable extensions/tr
- Extended syntax extensions/tr
- Skin extensions/tr
- Extensions supporting Composer/tr
- GPL licensed extensions/tr
- Extensions in Wikimedia version control/tr
- ArticlePurge extensions/tr
- PageContentSave extensions/tr
- ContentAlterParserOutput extensions/tr
- ApiMakeParserOptions extensions/tr
- GetDoubleUnderscoreIDs extensions/tr
- ParserFirstCallInit extensions/tr
- SpecialPageBeforeExecute extensions/tr
- All extensions/tr
- Extensions included in BlueSpice/tr
- Extensions included in Canasta/tr
- Extensions included in semantic::core/tr
- Extensions included in WikiForge/tr
- Referencing extensions/tr
- Popup extensions/tr
- Dictionary extensions/tr