Changes between Version 2 and Version 3 of TracWikiNegotiatorPlugin


Ignore:
Timestamp:
Oct 7, 2008, 7:19:25 PM (6 years ago)
Author:
gotoh
Comment:

Update for ver. 1.4 (r4422)

Legend:

Unmodified
Added
Removed
Modified
  • TracWikiNegotiatorPlugin

    v2 v3  
    8181==  Bonus Macro ==
    8282
    83 For bonus, this plugin contains one new macro: `MultiLangTitleIndex`.
    84 This is alternative macro of `TitleIndex`.
     83For bonus, this plugin contains two new macro: `MultiLangTitleIndex`
     84and `NTOC`.
     85The former is an alternative macro of `TitleIndex`.
     86The later is an alternative of `TOC` macro.
     87(see [th:wiki:tocmacro] in Trac-Hacs for more detail)
    8588
    86 The difference of two are:
    87  * Display in one line for variants like: "`* WikiStart (ja, en, other)`".
     89=== `MultiLangTitleIndex` ===
     90The differences against `TitleIndex` are:
     91 * Display in one line for variants like: "* WikiStart (ja, en, other)".
    8892 * List pages in two columns: one is for user's pages, one is for
    8993   system provided pages. System pages are the pages made by trac.
     
    9498You can use it by editing `TitleIndex` page.
    9599
     100=== `NTOC` ===
     101`NTOC` macro delives `TOC` macro, so all the features in `TOC` macro
     102are available except handling lang suffixed pages.
     103If you specify normal page name without explicit lang suffix
     104(i.e. `!WikiStart`), `NTOC` look up localized page for language same to
     105parent page the macro is put on. If not exist, look up localized page
     106for preferred langs. If not found, use specified name as is.
     107So, it is easy to get localized TOC by simply specifyng base page names
     108in argument.
     109
     110`NTOC` also handles wildcard page argument by expanding and removing
     111suffixed pages.
     112
     113So, `TOC` can be simply replaced to `NTOC`.
    96114
    97115== Recent Changes ==