Changes between Version 14 and Version 15 of TranslatedPagesMacro
- Timestamp:
- Jun 22, 2011, 1:20:12 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TranslatedPagesMacro
v14 v15 4 4 == Description == 5 5 6 A macro to output a list of translated versions of in current page. The English page should use the wiki name without language code, and translated wiki pages use !OriginalWiki/language_code format (language_code follows ISO 639.2 Alpha-2 format). The `[[TranslatedPages]]` macro generates a list of languages like6 A macro to output a list of translated versions of in current page. The English page should use the wiki name without language code, and translated wiki pages use a configurable version including language code. The `[[TranslatedPages]]` macro generates a list of languages like 7 7 8 [[Image(translated_pages_ sample_english.png)]]8 [[Image(translated_pages_1.0_sample_english.png)]] 9 9 10 10 to direct to translated versions of wiki pages. … … 57 57 For example, the page WikiStart was translated to Chinese version Zh_CN:WikiStart, Russian version Ru:WikiStart and Spanish version Es:WikiStart. Insert `[[TranslatedPages]]` to WikiStart will generate the following list: 58 58 59 [[Image(translated_pages_ sample_english.png)]]59 [[Image(translated_pages_1.0_sample_english.png)]] 60 60 61 61 And in Zh_CN:WikiStart will generate: 62 62 63 [[Image(translated_pages_sample_chinese.png)]] 63 [[Image(translated_pages_1.0_sample_chinese.png)]] 64 65 When translated page is outdated, Es:WikiStart will generate: 66 67 [[Image(translated_pages_1.0_sample_espanol_update.png)]] 64 68 65 69 An example of an actively used installation can be found at [http://josm.openstreetmap.de/wiki/Translations].