Board Thread:Lua Help/@comment-3134670-20160314150455/@comment-3134670-20160320030206

I stumbled upon Lua_templating/Style_guide, which claims module documentation should go to. I'll do just that in hope that wikia will eventually make it show in the module page.

Since it doesn't show right now, I cooked up a script to show it: if (window.location.href.indexOf('/Module:') !== -1) { jQuery('#mw-content-text').find('pre.lua.source-lua').first.each(function (idx, elem) {		var $doc = jQuery(elem).prev('.doc-lua');		if ($doc.length === 0) {			$doc = jQuery(' ').insertBefore(elem);		}		var url = window.location.href.replace('Module:', 'Lua:');		$doc.load(url + (url.indexOf('?') === -1 ? '?' : '&') + 'action=render', function { $doc.prepend(' Module Documentation '); $doc.append(' Module Source '); });	}); }