m →To try |
|||
| Line 12: | Line 12: | ||
This is a long process that dispatch data back and forth from the [[database]] and format the output to the screen. | This is a long process that dispatch data back and forth from the [[database]] and format the output to the screen. | ||
Mediawiki, the software that organizes the data and arrange its transformation into [[HTML]], distributes its content into different ''namespaces''. The main content is in the ''Main'' namespace which ha no prefix. On most [[Wiki]]s, you have the User: and the Talk: namespaces. | |||
<syntaxhighlight lang="sql"> | |||
MariaDB [laussywiki]> SELECT page_id, page_title, page_namespace, page_is_redirect, page_len | |||
FROM page | |||
WHERE page_namespace = 0 AND page_title = 'Laussy'; | |||
+---------+------------+----------------+------------------+----------+ | |||
| page_id | page_title | page_namespace | page_is_redirect | page_len | | |||
+---------+------------+----------------+------------------+----------+ | |||
| 405 | Laussy | 0 | 0 | 10962 | | |||
+---------+------------+----------------+------------------+----------+ | |||
1 row in set (0,000 sec) | |||
</syntaxhighlight> | |||
{{stub}} | {{stub}} | ||
MediaWiki is the software that powers websites like Wikipedia and, more modestly, various wikis that we run or where we collaborate. In particular, it powers this (laussy.org) website.
Unless you care about the underlying technical details, there is little to know about MediaWiki, but that it is managed by Wikimedia [1], a foundation that maintains and develops the work. Besides, this is worth knowing only for the pun on media and wiki to make up both the organization and its product.
This page is not about the wiki itself, which is the language to feed MediaWiki with.
If you care about the software, read on.
This is a long process that dispatch data back and forth from the database and format the output to the screen.
Mediawiki, the software that organizes the data and arrange its transformation into HTML, distributes its content into different namespaces. The main content is in the Main namespace which ha no prefix. On most Wikis, you have the User: and the Talk: namespaces.
MariaDB [laussywiki]> SELECT page_id, page_title, page_namespace, page_is_redirect, page_len
FROM page
WHERE page_namespace = 0 AND page_title = 'Laussy';
+---------+------------+----------------+------------------+----------+
| page_id | page_title | page_namespace | page_is_redirect | page_len |
+---------+------------+----------------+------------------+----------+
| 405 | Laussy | 0 | 0 | 10962 |
+---------+------------+----------------+------------------+----------+
1 row in set (0,000 sec)
This page is still largely in progress.
Downloading from MediaWiki's Extensions web and following the instruction is the basic way. More convenient is:
cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/YouTube
Then check the version:
cd YouTube git tab
Look for a tag like REL1_43, and if present:
git checkout REL1_43
And then add in LocalSettings.php the link to new functionalities: wfLoadExtension( 'YouTube' );