You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wikilinks, with the directive `trail`, will register the target page as an element of a trail.
Each `trail` are chained together and will display navigational link `prev` for the previous page of the trail, `next` for the next page of the trail and `up` to go to the pages that has used the `trail` wikilink.
For instance, if the page `doc.md` has the following content:
~~~md
To use nitiwiki, first [[trail: install|install it]],
then [[trail: simple_wiki|create a first wiki]].
You can also do advanced things like:
* [[trail: github|editing pages with github]]
* [[trail: templating| adapting the templates]]
~~~
A trail will be made and will consist of the sequence of pages `install`, `simple_wiki`, `github` and `templating`.
On each one of these pages, there will be links for the previous, the next page and the `doc.md` pae.
If a page includes trail wikilinks and is also the target for trail wikilinks, then the two trails are merged and pages will be visitable in a depth-first order.
This nesting of trails can be used to have sections and sub-sections.
Demo is up: http://info.uqam.ca/~privat/nitlanguage/manual/
Pull-Request: #1830
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Copy file name to clipboardExpand all lines: contrib/nitiwiki/README.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,6 +174,29 @@ will appear like this: `Contact me!`.
174
174
175
175
You can link to an anchor inside a page, using something like `[[WikiLink#foo]]`.
176
176
177
+
#### Trails of Pages
178
+
179
+
Wikilinks, with the directive `trail`, will register the target page as an element of a trail.
180
+
Each `trail` are chained together and will display navigational link `prev` for the previous page of the trail, `next` for the next page of the trail and `up` to go to the pages that has used the `trail` wikilink.
181
+
182
+
For instance, if the page `doc.md` has the following content:
183
+
184
+
~~~md
185
+
To use nitiwiki, first [[trail: install|install it]],
186
+
then [[trail: simple_wiki|create a first wiki]].
187
+
188
+
You can also do advanced things like:
189
+
190
+
* [[trail: github|editing pages with github]]
191
+
* [[trail: templating| adapting the templates]]
192
+
~~~
193
+
194
+
A trail will be made and will consist of the sequence of pages `install`, `simple_wiki`, `github` and `templating`.
195
+
On each one of these pages, there will be links for the previous page, the next page and the `doc.md` page.
196
+
197
+
If a page includes trail wikilinks and is also the target for trail wikilinks, then the two trails are merged and pages will be visitable in a depth-first order.
198
+
This nesting of trails can be used to have sections and sub-sections.
199
+
177
200
#### Render the wiki in HTML
178
201
179
202
Once you have done your changes, use:
@@ -243,7 +266,9 @@ The template file `template.html` represents the overall structure of your wiki
243
266
%HEADER%
244
267
%TOP_MENU%
245
268
<div>
269
+
%TRAIL%
246
270
%BODY%
271
+
%TRAIL%
247
272
%FOOTER%
248
273
</div>
249
274
</body>
@@ -256,6 +281,7 @@ Additionnal macros:
256
281
*`TOP_MENU`: Wiki top menu (see [Topmenu template](#Topmenu_template))
257
282
*`HEADER`: Wiki header (see [Header template](#Header_template))
258
283
*`BODY`: Wiki body content
284
+
*`TRAIL`: content of the trail navigational links, if any (see [Trails of Pages](#Trails_of_Pages))
0 commit comments