Difference between revisions of "WikiSetup"
Jump to navigation
Jump to search
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
= Wiki use = | = Wiki use = | ||
− | * The goal is ease of use and editing, not perfection. E.g. it is OK if languages are mixed. | + | * For multiple languages we use the Polyglot extension. For instance the English version of the page on energy saving is https://embargo.energy/index.php/Saving, its German counterpart is https://embargo.energy/index.php/Saving/de, Ukrainian is https://embargo.energy/index.php/Saving/uk. That, is the default language is English. To create a new page or language just use "PageName/language" e.g. "Petitions/de" for "Petitions" in German. Then the language links appear automatically. |
− | * It is suggested to maintain long link lists preferably in the English version. You can use [https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion | Labeled Section Transclusion] to mark these relatively efficiently for just translating headings or other selected parts. E.g. there are named sections in the | + | * The goal is ease of use and editing, not perfection. E.g. it is OK if languages are mixed (e.g. a good combination is to start with English summary followed by some local language content) |
− | * The | + | * It is suggested to maintain long link lists (even of mixed-language content) preferably in the English version. You can use [https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion | Labeled Section Transclusion] to mark these relatively efficiently for just translating headings or other selected parts. |
− | + | ** E.g. there are named sections in the source code of the English https://embargo.energy/index.php/Saving, such for a Section <code>"heating"</code> as <code><nowiki><section begin="heating"/></nowiki></code> and <code><nowiki><section end="heating"/></nowiki></code>. | |
+ | *** This section <code>heating</code> is then referred to by the German page https://embargo.energy/index.php/Saving/de as <code><nowiki>{{#lst:Saving|heating}}</nowiki></code>. | ||
+ | * The navigation bar uses a customized script https://embargo.energy/index.php/MediaWiki:Common.js. To add a new navigation bar in a new language, drop mail to hb3141@gmail.com. | ||
= Wiki setup = | = Wiki setup = | ||
Line 10: | Line 12: | ||
* Basics see Special:Version https://embargo.energy/index.php/Special:Version | * Basics see Special:Version https://embargo.energy/index.php/Special:Version | ||
* Polyglot extension has been installed with fix in Skin.php as documented in https://www.mediawiki.org/wiki/Extension_talk:Polyglot | * Polyglot extension has been installed with fix in Skin.php as documented in https://www.mediawiki.org/wiki/Extension_talk:Polyglot | ||
− |
Latest revision as of 21:29, 26 July 2022
Wiki use[edit | edit source]
- For multiple languages we use the Polyglot extension. For instance the English version of the page on energy saving is https://embargo.energy/index.php/Saving, its German counterpart is https://embargo.energy/index.php/Saving/de, Ukrainian is https://embargo.energy/index.php/Saving/uk. That, is the default language is English. To create a new page or language just use "PageName/language" e.g. "Petitions/de" for "Petitions" in German. Then the language links appear automatically.
- The goal is ease of use and editing, not perfection. E.g. it is OK if languages are mixed (e.g. a good combination is to start with English summary followed by some local language content)
- It is suggested to maintain long link lists (even of mixed-language content) preferably in the English version. You can use | Labeled Section Transclusion to mark these relatively efficiently for just translating headings or other selected parts.
- E.g. there are named sections in the source code of the English https://embargo.energy/index.php/Saving, such for a Section
"heating"
as<section begin="heating"/>
and<section end="heating"/>
.- This section
heating
is then referred to by the German page https://embargo.energy/index.php/Saving/de as{{#lst:Saving|heating}}
.
- This section
- E.g. there are named sections in the source code of the English https://embargo.energy/index.php/Saving, such for a Section
- The navigation bar uses a customized script https://embargo.energy/index.php/MediaWiki:Common.js. To add a new navigation bar in a new language, drop mail to hb3141@gmail.com.
Wiki setup[edit | edit source]
- Basics see Special:Version https://embargo.energy/index.php/Special:Version
- Polyglot extension has been installed with fix in Skin.php as documented in https://www.mediawiki.org/wiki/Extension_talk:Polyglot