Experiments
Example[edit | edit source]
This is the best way to get a simple list of chapters. Create a separate page for each chapter as you have done. Then add the following code to each one, edited as required.
A simpler way of doing this would be to simply name the pages with the actual chapter titles and then you can adjust the format of the query output to just include the word Chapter. A similar process can be used to sub-chapters/sections if you want to separate them into pages. Then you would just need to to use a different category, such as [[Category:Sub chapter]] and then also add an extra property to indicate which parent chapter a page belongs to. If you take this approach then it would also be possible to develop an automatic template that created you breadcrumbs at the top of each page.
It might also be possible for you to actually include small sections multiple times under different parents at the same time, but this gets a little more complex.
[[Category:Main Chapter]][[Has chapter number::1| ]][[Has title::Purpose of the Project| ]]
Then the following inline query will simply display an ordered list of all of the pages you have tagged as chapters.
Example Query[edit | edit source]
{{#ask: [[Category:Main Chapter]] |sort=Has chapter number |?Has title= |order=asc |format=ul }}
Result[edit | edit source]
This is just the automatic output and you can do more to specifically define the formatting, and even include a line intro etc.
{{#ask:
|sort=Has chapter number |?Has title= |order=asc |format=ul
}}