Template:PrintWikiTree

Pagina modificata 16:03, 5 Mag 2010 da mauros | Cronologia
Indice (TOC)
Nessuna testata

Versione di 22:38, 20 Giu 2025

a questa versione.

Ritorno a Archivio Versioni.

Vista versione attuale

/* Input parameters */
var pth     = $path;            // path to the parent page of the subpages to merge

/* Admin parameters */
var toctext = 'Inhaltsangabe';

if ($include_toc) {
    if (String.toupper($include_toc) == 'TRUE') {
        web.html("<h1>"..(toctext).."</h1>");
        wiki.toc(page.path);
    }
} else {
    web.html("<h1>"..(toctext).."</h1>");
    wiki.toc(page.path);
}
if ($include_root) {
    if (String.toupper($include_root) == 'TRUE') {
        web.html("<h1>"..wiki.getpage(pth).title.."</h1>");
        wiki.page(""..(pth));
    }
}
var data = wiki.getpage(pth).subpages;
foreach (var p in data) {
    var s = '<h'..(#p.parents-#wiki.getpage(pth).parents)..' style="page-break-before: always;">'..p.title..'</h'..(#p.parents-#wiki.getpage(pth).parents)..'>';
    web.html(s);
    wiki.page(p.path);
}