Content deleted Content added
Added the page to Category:Module documentation pages |
|||
(7 intermediate revisions by 6 users not shown) | |||
Line 1:
{{Lua|Module:
Core functionality is improved presentation on documentation pages.
Line 52:
Two aspects were found to be particularly disturbing in 2013–2017:
# Even if no parameters at all were defined, a table head is always displayed for a table without content. Even more, this is sortable.
#* A reduction was rejected with {{Phab|
#* This ridiculous statement led to the development of this module in 2016.
# Even if the context does not permit that default values or even AutoValue specifications will be defined ever, a content-free six-line definition list is output for each individual parameter value.
#* {{Phab|
#* MediaWiki did not even deign to answer the disastrous documentation page situation.
The general comments show that MediaWiki only regards the presentation of TemplateData specifications in the VisualEditor as important. However, someone has to program and maintain the templates and someone needs to generate the template description and make it manageable beside the functionality in the VisualEditor form, but that is beyond ken.
* Two years later the relatively easy task {{Phab|
== General workflow ==
Line 118:
Some functions described above can be used by other modules:
<syntaxhighlight lang="lua">
local lucky, TemplateData = pcall( require, "
if type( TemplateData ) == "table" then
TemplateData = TemplateData.TemplateData()
Line 143:
Currently focussing on one template only:
* [[Template:Format TemplateData]]
== {{Anker|config}} Configuration ==
Line 212 ⟶ 207:
::; deprecated
::: ''table'' with CSS for <code>deprecated</code>
<noinclude>
[[Category:Module documentation pages]]
</noinclude>
|