Module:TemplateDataGenerator – Module for generation of a skeleton for TemplateData from the parameter usage within template programming.
Module:TemplateDataGenerator – Module for generation of a skeleton for TemplateData from the parameter usage within template programming.
#invoke.The module is supposed to be wrapped for convenience into something like a template
{{#invoke:TemplateDataGenerator|f}}
Documentation
That template may be transcluded with one parameter: sort alias 1 – if that is provided with the value 1, parameter list will be sorted in alphabetical order.
When editing a template (documentation) page, users are supposed to insert the following line, where TemplateData shall appear:
{{subst:#invoke:TemplateDataGenerator|f}}
After click on [Preview], the generated lines are displayed and can be inserted by copy & paste to replace the temporary transclusion.
If forgotten to remove on saving, subst comes into effect and the plain lines are stored into source text. Next time someone will do the cleanup.
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.