Extension:SaneCase/pl

Category:MIT licensed extensions/pl
Podręcznik rozszerzeń MediaWiki
SaneCase
Status wydania: stabilneCategory:Stable extensions/pl
Realizacja Interfejs użytkownikaCategory:User interface extensions/pl
Opis Automatic correct case mistakes.
Autor(zy) Martin Tournoij (Carpetsmokerdyskusja)
Opiekun(owie) Ciencia Al Poderdyskusja
Ostatnia wersja 3.1 (2025-03-23)
MediaWiki 1.40+Category:Extensions with manual MediaWiki version/pl
PHP 7.3+
Licencja Licencja MIT
Pobieranie Category:Extensions in GitHub version control/pl
  • $wgSaneCaseAutofixSpecialCharBreak
Category:All extensions/pl

The SaneCase extension automatically corrects case mistakes. For example if the page Test exists, and someone goes to TEST, they will be automatically redirected to Test with a 301.

This is really much more sane than the default case-sensitivity.

This implements the "Auto redirect option" from Case sensitivity of page names:

Automatically redirect to a page that has same spelling but different capitalization (have the computer do the disambiguation pages when a spelling doesn't match an existing page)

Negatives: Performance and possible search engine duplicate content penalties caused by MediaWiki's redirection mechanism.

My response to that:

  • It's one very simple query, the performance hit should be almost unnoticeable for most sites.
  • The user having to figure out the correct URL is often more of a performance hit, not to mention a huge usability hit. Plus these are the sort of responses that can be cached very well in Varnish or whatnot.
  • This extension uses a 301 "Moved Permanently" redirect, that should be fine for search engines.

Also note that bing bot usually likes to crawl your site assuming it's case insensitive, rewriting all your valid URLs into lowercase, causing lots of 404 error responses in the logs, and possible crawl errors that could prevent some of your pages to be indexed properly on that search engine.

Instalacja

  • Download i umieść plik(i) w katalogu o nazwie SaneCase w swoim katalogu extensions/.
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'SaneCase' );
    
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Sometimes, titles have some special characters, like parentheses, exclamation or question marks, or other punctuation or special characters. When sharing such links on IRC or social media, sometimes the link gets cut off at the presence of that special character, pointing to nowhere.

With this new feature, the extension will try to find a title with the same prefix, followed by a special character, and if it finds it, you'll get redirected automatically to it.

The emphasis in followed by a special character.

Just displaying any title with the same prefix may be undesirable, since there may be more than one.

Matching only titles followed by a special character will drastically reduce the chance to get a naive redirect to a very common prefix.

This feature is disabled by default. To activate it, set $wgSaneCaseAutofixSpecialCharBreak = true; in LocalSettings.php.

Category:Redirect extensions/pl
Category:All extensions/pl Category:BeforeDisplayNoArticleText extensions/pl Category:Extensions in GitHub version control/pl Category:Extensions included in Miraheze/pl Category:Extensions included in WikiForge/pl Category:Extensions with manual MediaWiki version/pl Category:MIT licensed extensions/pl Category:Redirect extensions/pl Category:Stable extensions/pl Category:User interface extensions/pl