Template:PrintWikiTree

Pagina modificata 16:15, 5 Mag 2010 da mauros | Cronologia
Indice (TOC)
Nessuna testata
/* Input parameters */
var pth     = $path;            // path to the parent page of the subpages to merge

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

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);
}
Etichette
Statistiche pagina
1358 view(s), 2 edit(s), and 982 character(s)

Commenti

Aggiungi file

Allegati