Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Format TemplateData/doc
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== {{Anker|template}} Functions for templates == === Details === ; f {{Anker|f}} : Improve TemplateData-presentation; used in [[Template:Format TemplateData]] : ''Parameters of template transclusion environment (all optional):''<section begin="templatePar" /> ::; 1 ::: JSON string or <code><templatedata></code> object ::; JSON ::: JSON string ::: (precedes '''1''') ::: Transition from <code><templatedata></code> objects with pipe symbols needs special attention: Pipes are to be represented as <code><nowiki>{{!}}</nowiki></code>, on double curly brackets one should be encoded by HTML entity. ::; TOC ::: <code>1</code> β Insert table of contents after general purpose descriptions; but before parameter list, if present ::: [[:de:Wikipedia:Lua/Modul/TemplateData/TOC|Example]] ::; lang ::: Language code according to [[ISO 639]] etc. ::; lazy ::: <code>1</code> β Presentation only, do not generate an effective data block ::: For general method descriptions. ::; debug ::: <code>1</code> β developer mode ::; source ::: <code>1</code> β show effective JSON source text (after template expansion) for debugging<section end="templatePar" /> : ''Parameters of'' <code>#invoke</code> ''for particular project adaption (all optional):'' ::; lang ::: Language code according to [[ISO 639]] etc. ::; debug ::: Development mode, if provided and not equal <code>0</code> ::; cat ::: Title of a maintenance category on invalid parameter value etc. ::: '''Deprecated''' β use [[#config|configuration module]] ::; docpageCreate ::: Pattern for creation of subpage names; <code>%s/Doku</code> ::: '''Deprecated''' β use [[#config|configuration module]] ::; docpageDetect ::: Pattern for recognition of subpage names; <code>/Doku$</code> ::: '''Deprecated''' β use [[#config|configuration module]] ::; msgDescMiss ::: Localisation: complaint text on missing <code>description</code> ::: '''Deprecated''' β use [[#config|configuration module]] : ''Returns:'' HTML code; and/or error message, probably with <code>class="error"</code> ; failsafe {{Anker|failsafe}} : Version management
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)