Module:ATC code to template name: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

5 April 2024

  • curprev 13:2413:24, 5 April 2024 Fire talk contribs 605 bytes +605 Created page with "-- this module provides a lookup from ATC codes to their associated navbox templates -- local data = mw.loadData("Module:ATC code to template name/data") p = {} function p.translate(frame) local name = frame.args[1] for _, v in pairs(data) do if v.code == name then if v.template then return frame:expandTemplate{ title = v.template } else error("ATC code not specific enough - please use one further character (example: instead of M01, use M01A)") ret..."