| Vorlagenprogrammierung | Diskussionen | Lua | Unterseiten | |||
| Modul | Deutsch | English
|
Modul: | Dokumentation | ||
PageTree – Module for presentation and administration of wiki pages within a hierarchical structure.
From one unique page definition varoious consistent presentations may be retrieved:
Page structure is defined by a sub module.
All functions (except failsafe) have one mandatory parameter with the identifier of structure. More named parameters may be applied.
The return value is a string according to the request and current page name; even empty or error message.
light lineup list lazy stamped suppresslinked – Is every redirect declared as shift?lazy segmentsubpager – Pass sequence to that template.list lazy segment stamped suppress2024-04-021 – required version, or keyword wikidata2024-04-02) when wikidata or local if not found there# in total view, * on path* or :all without prefix.all continously without list bullet.shift).list=false in structures omitted.path at alternative root element./ then evaluated relative to start.#time etc.subpager=SubpageParameter names beginning with l are regarded as true if set to 1.
The definition is expected by a sub module, where the identifier has been appended to Module:PageTree/ root.
The following components might be delivered in that table:
/ in page names/A page entry may be contained in the table pages by one of three modes:
"pagename"["pagename"] = { detailA= ... }true value instead of the string with page name. That is the root element.seed element.
{ seed="Seitenname", detailA= ... }Every page name must not occur more than once in a pages table.
Every entry may contain the following properties:
true on root element./ then linked relative to start./ then linked relative to start.true./ then linked relative to start./.path – do not show deeper levels.list=true.list=falseall – if also marked by list=false then ignorepath – show for current page, even if otherwise marked by list=false.subpages – do not show for current page, if not recurring to a deklared root element.loose=trueThere are two functions for test and management purpose:
args are the arguments passed by #invoke otherwise in template syntax. Moreover can (must) be provided:
args.self – use as current page nameargs.series – identifier of structure in place of 1.args.service – type of action; name of functionargs.suite – path to module; here: Modul:PageTreeParameter names beginning with l are expecting boolean values.
args.hide is a table, whose entries are suppress."wikidata"General library; no limitations.
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.