Zum Inhalt springen

Wikipedia:Lua/Modul/Vorlage:LuaModuleDoc/en

Aus Wikipedia
Vorlagenprogrammierung Diskussionen Lua Unterseiten
Modul Deutsch English Modul: Dokumentation
Weiterleitung der Diskussionsseite fehlt

Vorlog:LuaModuleDoc – Module for support of Template:LuaModuleDoc, and doing the major work of Lua module documentation.

On all the related documentation pages Template:LuaModuleDoc is transcluded. That one provides the project and language specific adaptions.

  • The first (three) optional template parameters also pass through some page specific adaptions, if necessary.

Functions for templates

[Am Gwëntext werkeln]
nav
Generate linkbox text.
  • On the central documentation page also
    • transclusion of first detected language version
    • transclusion of assistance for template transclusion (if not noHint)
    • category, with sort code (if not noCat).
Parameters:
langsRequest
(optional; for the current page)
Space separated list of explicitly requested language codes.
  • If not provided, show all from standard: langsDefault.
  • If defined, prepend all existing from langsDefault.
noCat
(optional; for the current page; any non-empty value)
Suppress categorisation of base documentation page.
noHint
(optional; for the current page; any non-empty value)
Suppress assistance for template transclusion after base documentation.
categoryDocs
Title of existing category for base documentation.
langsDefault
Space separated list of general language codes.
Order of codes does not matter.
langsMore
Space separated list of additional language codes, completing langsDefault, for which pages will be searched.
Only such codes can be displayed in the presentation.
Order of codes does not matter.
May be empty or undefined.
nsDocs
Number of namespace for documentation pages.
pageDocRoot
Title of base documentation page.
pageErr
Name of page for error message display.
pageNav
Name of page for navigation box.
pageTemplateInsert
Name of page for template transclusion assistance.
subTest
Name of subpage for tests.
Might be provided with uppercase letters; will be searched in lowercase as well.
Default: Test
Projekt-Konfiguration
Parameterdeutschsprachige Wikipedia
categoryDocsWikipedia:Lua/Modul
categoryWikiDataWikipedia:Lua/Modul/Global via WikiData
categoryWikiDataChildWikipedia:Lua/Modul/Global via WikiData/Kind
categoryWikiDataParentWikipedia:Lua/Modul/Global via WikiData/Mutter
categoryWikiDataReplicationWikipedia:Lua/Modul/Global via WikiData/Abgleich
langsDefaultde en
langsMoredsb eo fr hsb
nsDocs4
pageDocRootLua/Modul
pageErrWikipedia:Lua/Modul-Navigationsfehler
pageNavVorlage:LuaModuleDoc/Navigation
pageTemplateInsertWikipedia:Lua/Vorlagenprogrammierung
preloadCentralVorlage:LuaModuleDoc/preload-central
preloadRedirVorlage:LuaModuleDoc/preload-redir
subTestTest
templateGlobalLuaModuleDoc/Global

Nowhere than by Template:LuaModuleDoc.

Dependencies

[Am Gwëntext werkeln]

Exporting into other Wiki

[Am Gwëntext werkeln]
  1. Import the following pages into your project (this keeps version history and credits):
  2. Create files similar to the following, translate and adapt as you like:
  3. Edit your version of Template:LuaModuleDoc and adjust the settings to your needs.
  4. Create description page for categoryDocs if you want to categorize.