Installation

From empty
Jump to navigation Jump to search
This page contains changes which are not marked for translation.

Mediawiki[edit]

Family[edit]

Drupal-style of wiki family

  • mkdir /data and cd /data

update[edit]

run something like

... php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
... php -r "unlink('composer-setup.php');"
  • fill files by ccnet
  • apt install composer

Extensions[edit]

Google+[edit]

!!does not work in local network, Google allows only public domain names

Semantic MediaWiki (SMW)[edit]

  • PHP composer.phar require mediawiki/semantic-media-wiki "3.0"

mediawiki/semantic-media-wiki suggests installing mediawiki/semantic-result-formats (Additional result formats for SMW queries) 3.0.0

mediawiki/semantic-media-wiki suggests installing mediawiki/semantic-forms (Easy creation of forms to add semantic data) manually

Social[edit]

SocialProfile and Comments

voting[edit]

https://www.mediawiki.org/wiki/Extension:AJAXPoll - simple but impossible to see other people results(maybe to look in db)

https://www.mediawiki.org/wiki/Extension:PollNY - cannot modify(add variants) poll after creation

Extension:VoteNY - doesn't work in MediaWiki:Hf-nsfooter-

graphs[edit]

geo[edit]

Widgets[edit]

pdf[edit]

ElectronPdfService[edit]

https://www.mediawiki.org/wiki/Extension:ElectronPdfService is recommended on 2017


mw:Content_translation/cxserver/Setup#RESTBase_Server is not needed

usage[edit]

Use page-break-before: always; CSS style to force to print to a new page.

visual editor[edit]

wget https://extdist.wmflabs.org/dist/extensions/VisualEditor-REL1_32-21d40ce.tar.gz tar xvzf VisualEditor-REL1_32-21d40ce.tar.gz

  • parsoid

COMPATIBILITY for Parsoid 0.9.0 with MediaWiki before 1.31

Parsoid 0.9.0 seems to be not compatible with 1.31.1

tasks[edit]

"mediawiki/semantic-watchlist" : "1.2", should be added to composer.local.json

multi-languages[edit]

Translate[edit]

https://www.mediawiki.org/wiki/Help:Extension:Translate/Installation

  • it is better to copy manually then from git
    • cd /Projects/wiki/family
    • wget from
    • tar -jxvf MediaWikiLanguageExtensionBundle-2018.10.tar.bz2
    • MediaWikiLanguageExtensionBundle-2017.04.tar.bz2 has error on Mediawiki 32
Content languages[edit]

mw:Help:Extension:Translate/Page_translation_administration

If some text is written not in English and you need translation then please edit such page and mark text with

<translate></translate> 

or with

not clear<div>abrakadabra</div>

tags. Mediawiki admin will receive notification and translate it.

The translation of a translatable page will produce many pages, which all together compose the translatable page in the broadest sense: their title is determined by the title of the translatable Page:

  • Page (the source page)
  • Page/<language code> (the translation pages, plus a copy of the source page without markup)
  • Translations:Page/<translation unit identifier>/<language code> (all the translation unit pages)

In addition to this, there are the translation page template and the sources of translation units, extracted from the source page and stored in the database.

planned[edit]

http://www.mediawiki.org/wiki/Extension:Lingo

tried https://www.mediawiki.org/wiki/Extension:LanguageTag

for some sites[edit]

rss[edit]

math[edit]

music[edit]

other planned[edit]

http://www.mediawiki.org/wiki/Extension:Add_Article_to_Category

http://www.mediawiki.org/wiki/Extension:Popups

https://www.mediawiki.org/wiki/Extension:Flow

broken[edit]

I can say for sure that Extension:CSS is broken

Optimizations[edit]

  • http://www.mediawiki.org/wiki/User:Ilmari_Karonen/Performance_tuning
    • $wgResourceLoaderUseESI = true; прискорила майже Сѓ кілька разів! однак РїСЂРё цьому РІ CategoryTree відключилося відкривання піддерев..
    • added
      • in root .htaccess
<IfModule mod_headers.c>
<FilesMatch "\.(js|css|gz)$">
 Header set Cache-Control "max-age=60000"
 Header append Vary: Accept-Encoding
</FilesMatch>
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(php)$">
 Header set Cache-Control "max-age=300"
 Header append Vary: Accept-Encoding
</FilesMatch>
</IfModule>
      • in skins .htaccess
ExpiresActive On
ExpiresDefault "access plus 1 month"

http://ukraine.com.ua[edit]

  • має "Настройки параметров сайта"/"Кеширование"
  • має "Настройки оптимизации сайта"
    • extend_cache_images was set off to allowing proxy with only one IP opened

mail[edit]

  • для работы с библиотекой PEAR вы можете закачать необходимые библиотеки прямо к себе на сайт (допустим, в папку pear в корне сайта) и в начале скриптов (обычно достаточно в index.php) добавить строку: set_include_path(get_include_path().PATH_SEPARATOR.'/home/логин-аккаунта/ваш-сайт.com/www/pear/'); Это даст вам возможность использовать любые модули PEAR.

bugs[edit]

bugs: 1.31.1 has bug in normalizeUnicode() and VisualEditor+Parsoid9