<index> The index for the tutorial wiki. </index>The fact that the top element is an
index
is enough to specify that this article is our index. In all articles, the "Home" link will get us back to this article.<article desc="first article"> The content of the first article. </article>We will also add an internal wikilink to this article in our index file:
<index> The index for the tutorial wiki. A link to the <ref id="first article" />. </index>
<article desc="second article"> The content of the second article. <cat id="articles"/> </article>Let's also set the categories for the first article, for example:
<article desc="first article"> The content of the first article. <cat id="articles"/> <cat id="othercategory"/> </article>Now two categories appear on the Categories link, each contain Category its articles:
<header desc="My Header"/>For the footer:
<footer desc="docJGenerator Tutorial"/>Each of them must be on a different XML file.
<categories> <category id="articles" desc="All the articles" /> <category id="othercategory" desc="The other category" /> </categories>Now our categories have a description:
{{name:Mediawiki article}} The content of the Mediawiki article. [[Category:articles]]To allow Mediawiki Markup, you should now select the "Allow Mediawiki Markup" checkbox before the generation. The generation of this article will create the following html file[1]
<article desc="FAQ" > <meta desc="Frequently Asked Questions" /> This is a FAQ for the tutorial, without any questions. </article>You can remark here that we added at the start of the FAQ a meta element: it allows to show the text of this meta in the Dictionary or the Categories along-side the name of the article itself. Here it is better for example to see the text Frequently Asked Questions than This is a FAQ for the tutorial, without any questions for the FAQ[2]
meta
element, the text will be the first sentence the tool detects for this article<article desc="first article"> The content of the first article. Link to the <ref id="second article" />. <cat id="articles"/> <cat id="othercategory"/> </article>And for the second article:
<article desc="second article"> The content of the second article. Link to the <ref id="first article" />. <cat id="articles"/> </article>
leftMenu
root to customize what will appear in the left menu. In addition to the Categories and the Dictionary, we want to have:<leftMenu onIndex="true"> <menuItem desc="What Links Here" > <linksFromRef /> </menuItem> <menuItem desc="FAQ" > <itemInternalRef id="FAQ" /> </menuItem> </leftMenu>Now the left menu has changed:
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.