From 2602619fe99a1f61e2605297eaf1e5fd0750ff3d Mon Sep 17 00:00:00 2001 From: John Internet Date: Thu, 5 Dec 2019 11:01:30 +0000 Subject: [PATCH] Format lua wiki references. --- config.ld | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config.ld b/config.ld index f2055d4f..d1b63c7d 100644 --- a/config.ld +++ b/config.ld @@ -3,4 +3,10 @@ tparam_alias("vec", "Vector") tparam_alias("ent", "Entity") tparam_alias("color", "Color") tparam_alias("veh", "Vehicle") -tparam_alias("ang", "Angle") \ No newline at end of file +tparam_alias("ang", "Angle") + +local luaWikiUrl = "http://lua-users.org/wiki/%s" +local luaWikiName = "Lua Users Wiki: %s" +custom_see_handler("^lua%-wiki%((%w+)%)$", function(page) + return luaWikiName:format(page), luaWikiUrl:format(page) +end) \ No newline at end of file