« Modèle:Menu C » : différence entre les versions

De Guide de l'Installation Electrique
Aller à :navigation, rechercher
m (1 révision importée : importer pages, templates etc de PPR-FR - X2)
(modified chapter navigation template for MW1.35 and to add chapter letter to all pages of the chapter)
Ligne 1 : Ligne 1 :
{{#set:Has parent page={{#hierarchyParent:{{#titleparts:{{FULLPAGENAME}}}}|{{MediaWiki:eig-hierarchy}}|hierarchyargtype=wikitext|link=none}}}}
<includeonly>
<!---------- modify the chapter letter below, to adapt to each chapter ---------->
<!---------- modify the chapter letter below, to adapt to each chapter ---------->
{{#vardefine:letter|C}}
{{#vardefine:letter|C}}
<!---------------------------------------------------------------------------------------------------->
<!---------------------------------------------------------------------------------------------------->
{{#set:Has parent page={{#hierarchyParent:{{#titleparts:{{FULLPAGENAME}}}}|{{MediaWiki:eig-hierarchy}}|hierarchyargtype=wikitext|link=none}}}}
{{#set:Has chapter letter={{#var:letter}}}}
{{#vardefine:menuMsg|eig-ch-menu-{{#var:letter}}}}
{{#vardefine:menuMsg|eig-ch-menu-{{#var:letter}}}}
{{#sideSummary:{{#var:menuMsg}}}}
{{#sideSummary:{{#var:menuMsg}}}}
<includeonly>{{ch-category|{{#var:letter}}}}[[Category:eig-content-pages]]</includeonly><noinclude>[[Category:eig-ch-menus]]<templatedata>
{{ch-category|{{#var:letter}}}}[[Category:eig-content-pages]]</includeonly><noinclude>[[Category:eig-ch-menus]]<templatedata>
{
{
"params": {},
"params": {},

Version du 30 juin 2022 à 15:53

This template is used to add common information to pages of a same chapter: semantic property for parent page, chapter category, and sidemenu

Paramètres du modèle

ParamètreDescriptionTypeÉtat
Aucun paramètre spécifié