Melvor Idle:How to edit/Lua: Difference between revisions

No edit summary
 
Line 1: Line 1:
==mw.html==
==mw.html==
In widicode, we use the table syntax to create tables. However, in Lua, using the [https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#HTML_library html library] is prefered. This is because the mw.html is a fluent interface that can be used to very easily add, remove or customise specific parts of a table (or otherwise html element).
In wikicode, we use the table syntax to create tables. However, in Lua, using the [https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#HTML_library html library] is preferred. This is because the mw.html is a fluent interface that can be used to very easily add, remove or customise specific parts of a table (or otherwise html element).


===Creating a basic table===
===Creating a basic table===
2,875

edits