Table of contents

From Redazione
Jump to navigation Jump to search
Line 6: Line 6:
  
 
The Table of contents can be interactively edited through the related form (pages can be shown/hidden and rearranged) and will be used as reference to create the organization' page on the front-end, which will include all the pages present in the Table of contents on the back-end, in the same order.
 
The Table of contents can be interactively edited through the related form (pages can be shown/hidden and rearranged) and will be used as reference to create the organization' page on the front-end, which will include all the pages present in the Table of contents on the back-end, in the same order.
<noinclude>
 
Also, because where the page language is not directly specified on the back-end (for instance through an [https://www.semantic-mediawiki.org/wiki/Help:Setting_values annotated semantic property], or using the language code suffix on the page title as foreseen by the [https://www.mediawiki.org/wiki/Template:Languages template Languages]) the system will try to detect it using some [[How it works/Technology_we_use|external libraries]], we plan to extend the Table of content's form in order to allow to set the page language through it when the language detection has failed.
 
 
This way, the menu on the top right on the front-end, allowing to filter the contents by languages, will always contain the complete set of languages, and all the articles in a given language will be included/excluded consistently from the navigation.\
 
  
 +
Also, because where the page language is not directly specified on the back-end (for instance through an [https://www.semantic-mediawiki.org/wiki/Help:Setting_values annotated semantic property], or using the language code suffix on the page title as foreseen by the [https://www.mediawiki.org/wiki/Template:Languages template Languages]) the system will try to detect it using some [[How it works/Technology_we_use|external libraries]], we plan to extend the Table of content's form in order to allow to set the page language through it when the language detection has failed. (the script has been set to accept only high index of confidence, therefore rather than indicating a wrong language, it will omit the information)<noinclude>This way, the menu on the top right on the front-end, allowing to filter the contents by languages, will always contain the complete set of languages, and all the articles in a given language will be included/excluded consistently from the navigation.
  
 
Below, is the table of contents of the root pages of this wiki, as appears once rendered, and when edited through the related form.
 
Below, is the table of contents of the root pages of this wiki, as appears once rendered, and when edited through the related form.

Revision as of 12:09, 19 July 2020

The system automatically creates a Table of contents for each organization (as well as for all the other pages of this wiki not belonging to an organization) containing the tree of all its subpages, at a location like the following:

https://culturaitaliana.org/wiki/[organization name]/Table of contents

The Table of contents can be interactively edited through the related form (pages can be shown/hidden and rearranged) and will be used as reference to create the organization' page on the front-end, which will include all the pages present in the Table of contents on the back-end, in the same order.

Also, because where the page language is not directly specified on the back-end (for instance through an annotated semantic property, or using the language code suffix on the page title as foreseen by the template Languages) the system will try to detect it using some external libraries, we plan to extend the Table of content's form in order to allow to set the page language through it when the language detection has failed. (the script has been set to accept only high index of confidence, therefore rather than indicating a wrong language, it will omit the information)This way, the menu on the top right on the front-end, allowing to filter the contents by languages, will always contain the complete set of languages, and all the articles in a given language will be included/excluded consistently from the navigation.

Below, is the table of contents of the root pages of this wiki, as appears once rendered, and when edited through the related form.

To be noted that as soon as the number of sub-pages included in the tree exceed 30 or 40 items (where a precise as well as a different threshold is determined by the specificity of the contents) the table of contents has to be split between more than one parent node (and contextually deactivated on the root page) and the current implementation can be easily enhanced to support that.


How it works/Table of contents/Table of contents-screenshot.png

How it works/Table of contents/Table of contents form-screenshot.png