Main Idea
Create infobox in wiki page from stratch using lua script
Reading
- Syntax writing - https://id.wikipedia.org/wiki/Templat:Infobox
- CSS customization (in page-side) - https://id.wikipedia.org/wiki/Templat:Infobox#Optional_CSS_styling
How to
Create and submit this module and template
Template:Infobox
Source code: https://bimagv.miraheze.org/w/index.php?title=Template:Infobox&action=edit
Module:Infobox
Source code: https://bimagv.miraheze.org/w/index.php?title=Module:Infobox&action=edit
Module:Navbar
Source code: https://bimagv.miraheze.org/w/index.php?title=Module:Navbar&action=edit
Example syntax infobox in wiki page
{{Infobox
|name = Infobox/doc
|title = Test Infobox
|image = [[File:Bash.png|200px]]
|caption = Caption for Bash.png
|headerstyle = background:#ccf;
|labelstyle = background:#ddf;
|header1 = Header defined alone
|label1 =
|data1 =
|header2 =
|label2 = Label defined alone
|data2 =
|header3 =
|label3 =
|data3 = Data defined alone
|header4 = All three defined (header)
|label4 = All three defined (label)
|data4 = All three defined (data)
|header5 =
|label5 = Label and data defined (label)
|data5 = Label and data defined (data)
|belowstyle = background:#ddf;
|below = Below text
}}
Result
That’s all.