Changes between Version 2 and Version 3 of TracWikiNegotiatorPlugin
- Timestamp:
- Oct 7, 2008, 5:19:25 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracWikiNegotiatorPlugin
v2 v3 81 81 == Bonus Macro == 82 82 83 For bonus, this plugin contains one new macro: `MultiLangTitleIndex`. 84 This is alternative macro of `TitleIndex`. 83 For bonus, this plugin contains two new macro: `MultiLangTitleIndex` 84 and `NTOC`. 85 The former is an alternative macro of `TitleIndex`. 86 The later is an alternative of `TOC` macro. 87 (see [th:wiki:tocmacro] in Trac-Hacs for more detail) 85 88 86 The difference of two are: 87 * Display in one line for variants like: "`* WikiStart (ja, en, other)`". 89 === `MultiLangTitleIndex` === 90 The differences against `TitleIndex` are: 91 * Display in one line for variants like: "* WikiStart (ja, en, other)". 88 92 * List pages in two columns: one is for user's pages, one is for 89 93 system provided pages. System pages are the pages made by trac. … … 94 98 You can use it by editing `TitleIndex` page. 95 99 100 === `NTOC` === 101 `NTOC` macro delives `TOC` macro, so all the features in `TOC` macro 102 are available except handling lang suffixed pages. 103 If you specify normal page name without explicit lang suffix 104 (i.e. `!WikiStart`), `NTOC` look up localized page for language same to 105 parent page the macro is put on. If not exist, look up localized page 106 for preferred langs. If not found, use specified name as is. 107 So, it is easy to get localized TOC by simply specifyng base page names 108 in argument. 109 110 `NTOC` also handles wildcard page argument by expanding and removing 111 suffixed pages. 112 113 So, `TOC` can be simply replaced to `NTOC`. 96 114 97 115 == Recent Changes ==