Changes between Version 5 and Version 6 of PageOutline
- Timestamp:
- Apr 16, 2015, 7:47:52 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PageOutline
v5 v6 1 = ![[PageOutline]] =1 = ![[PageOutline]] 2 2 3 One of the bundled macros, which displays a table of content for the Wiki page 4 in which the macro is inserted. 3 One of the bundled macros, which displays a table of contents for the Wiki page in which the macro is inserted. 5 4 6 == Usage == 5 == Usage 6 7 7 [[MacroList(PageOutline)]] 8 8 9 ---- 9 For [trachacks:HackIndex trac-hack / plugin] descriptions, the standard format is as follows: 10 10 11 == Examples == 11 {{{ 12 [[PageOutline(2-5,Contents,pullout)]] 13 }}} 12 14 13 == = Range of Headings Displayed ===15 == Examples 14 16 15 ![[PageOutline]]'s first parameter only appears to accept integers, and doesn't appear to have a coded value for displaying the default of all headings. It displays an error message when passed a non-integer value. 17 === Range of Headings Displayed 18 19 ![[PageOutline]]'s first parameter only accepts integers, and doesn't have a coded value for displaying the default of all headings. It displays an error message when a non-integer value is passed. 16 20 17 21 || ![[PageOutline(1)]] || Only level 1 heading: [[PageOutline(1)]] || 22 || ![[PageOutline(1-2)]] || Only first 2 levels of headings: [[PageOutline(1-2)]] || 23 || ![[PageOutline(1-100)]] || First 100 levels of headings: [[PageOutline(1-100)]] || 18 24 19 || ![[PageOutline(1-2)]] || Only first 2 levels of headings: [[PageOutline(1-2)]] || 25 === Outline Title 20 26 21 || ![[PageOutline(1-100)]] || All headings -- actually first 100 levels of headings: [[PageOutline(1-100)]] || 22 23 === Outline Title === 24 25 Apparently, in order to specify the title you must also give the range of headings; you can't just pass an empty first parameter (e.g. ![[PageOutline(,Title)]] ). 27 To specify the title, you must also give the range of headings. You can't just pass an empty first parameter, such as ![[PageOutline(,Title)]]. 26 28 27 29 || ![[PageOutline(1-100,Page Contents)]] || A title over 'all' headings -- actually the first 100 levels of headings: [[PageOutline(1-100,Page Contents)]] || 28 30 29 === Inline / Pullout ===31 === Inline / Pullout 30 32 31 'Inline' means 'part of the content' and not a floating box; it doesn't mean the text is a list without linebreaks, as one's HTML background might mislead you into thinking.33 'Inline' means 'part of the content' and not a floating box; it doesn't mean the text is a list without linebreaks, as one's HTML background might suggest. 32 34 33 35 || ![[PageOutline(1-100,Page Contents,inline)]] || Ditto, but '''inline''': [[PageOutline(1-100,Page Contents,inline)]] || 34 36 35 === Numbered / Unnumbered ===37 === Numbered / Unnumbered 36 38 37 Remember, only useful for inline contents.39 Only useful for inline content. 38 40 39 41 || ![[PageOutline(1-100,Page Contents,inline,unnumbered)]] || Ditto, but '''without numbering''': [[PageOutline(1-100,Page Contents,inline,unnumbered)]] ||