Module:Lang

-- This is an experiment to see what is required to consolodate all of the myriad templates and their subtemplates into a single module with a data table

require('Module:No globals'); local getArgs = require('Module:Arguments').getArgs;

local p = {};

--[=[-< L A N G >--

has parameters: text - required or defaults to 'yes' literal translation

has parameters: iso language code - required language name in English - superfluous? text - required or literal translation or set to 'no' disables '{{{2}} language' wikilinks passed through to passed through to

has parameters: iso language code - required text - required if set to any value, set dir="rtl" attribute and inserts &lrm; after the tag if set to any value, disables categorization

How it works now: 1. receives text as  to which it adds italic markup, sets |links to  or  or yes, sets |lit to, and calls. ignored for this example 2. renders Spanish ( not set) or Spanish ( set) and calls 3. wraps the text in the text and adds categorization

]=]

function p.Lang (frame) local args = getArgs(frame); end

return p;