<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://files.wikijournal.org/w-wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ADescription</id>
	<title>Module:Description - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://files.wikijournal.org/w-wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ADescription"/>
	<link rel="alternate" type="text/html" href="https://files.wikijournal.org/w-wiki/index.php?title=Module:Description&amp;action=history"/>
	<updated>2026-04-21T21:17:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://files.wikijournal.org/w-wiki/index.php?title=Module:Description&amp;diff=1014&amp;oldid=prev</id>
		<title>Philip: Created page with &quot;--[[     __  __           _       _        ____                      _       _   _               |  \/  | ___   __| |_   _| | ___ _|  _ \  ___  ___  ___ _ __(_)_ __ | |_(_) ___  _ __    | |\/| |/ _ \ / _` | | | | |/ _ (_) | | |/ _ \/ __|/ __| &#039;__| | &#039;_ \| __| |/ _ \| &#039;_ \   | |  | | (_) | (_| | |_| | |  __/_| |_| |  __/\__ \ (__| |  | | |_) | |_| | (_) | | | |  |_|  |_|\___/ \__,_|\__,_|_|\___(_)____/ \___||___/\___|_|  |_| .__/ \__|_|\___/|_| |_|...&quot;</title>
		<link rel="alternate" type="text/html" href="https://files.wikijournal.org/w-wiki/index.php?title=Module:Description&amp;diff=1014&amp;oldid=prev"/>
		<updated>2022-06-23T14:56:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;--[[     __  __           _       _        ____                      _       _   _               |  \/  | ___   __| |_   _| | ___ _|  _ \  ___  ___  ___ _ __(_)_ __ | |_(_) ___  _ __    | |\/| |/ _ \ / _` | | | | |/ _ (_) | | |/ _ \/ __|/ __| &amp;#039;__| | &amp;#039;_ \| __| |/ _ \| &amp;#039;_ \   | |  | | (_) | (_| | |_| | |  __/_| |_| |  __/\__ \ (__| |  | | |_) | |_| | (_) | | | |  |_|  |_|\___/ \__,_|\__,_|_|\___(_)____/ \___||___/\___|_|  |_| .__/ \__|_|\___/|_| |_|...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--[[  &lt;br /&gt;
  __  __           _       _        ____                      _       _   _             &lt;br /&gt;
 |  \/  | ___   __| |_   _| | ___ _|  _ \  ___  ___  ___ _ __(_)_ __ | |_(_) ___  _ __  &lt;br /&gt;
 | |\/| |/ _ \ / _` | | | | |/ _ (_) | | |/ _ \/ __|/ __| &amp;#039;__| | &amp;#039;_ \| __| |/ _ \| &amp;#039;_ \ &lt;br /&gt;
 | |  | | (_) | (_| | |_| | |  __/_| |_| |  __/\__ \ (__| |  | | |_) | |_| | (_) | | | |&lt;br /&gt;
 |_|  |_|\___/ \__,_|\__,_|_|\___(_)____/ \___||___/\___|_|  |_| .__/ \__|_|\___/|_| |_|&lt;br /&gt;
                                                               |_|                      &lt;br /&gt;
&lt;br /&gt;
Description is a module implementing functionality of {{Description}}&lt;br /&gt;
template, which is used by {{en}}, {{de}} and other language templates.&lt;br /&gt;
&lt;br /&gt;
Authors and maintainers:&lt;br /&gt;
* User:Jarekt  &lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local core = require(&amp;#039;Module:Core&amp;#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------&lt;br /&gt;
local function missing_text_error(args) &lt;br /&gt;
	-- Empty text field -&amp;gt; display error message and add maintenance category&lt;br /&gt;
	-- &amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[{{fullurl:Category:Language templates with no text displayed}} &amp;lt;span class=&amp;quot;error&amp;quot;&amp;gt;{{Description/i18n}}&amp;lt;/span&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
	local cat = &amp;#039;Category:Language templates with no text displayed&amp;#039;&lt;br /&gt;
	local msg  = core.formatMessage(&amp;#039;I18n/DescriptionError.tab&amp;#039;, &amp;#039;missing text&amp;#039;, args.user_lang)&lt;br /&gt;
	local frame = mw.getCurrentFrame()&lt;br /&gt;
	msg = mw.html.create(&amp;#039;span&amp;#039;):addClass(&amp;quot;error&amp;quot;):wikitext(msg)&lt;br /&gt;
	msg = &amp;#039;[&amp;#039; .. frame:callParserFunction{ name = &amp;#039;fullurl&amp;#039;, args={cat} }  .. tostring(msg) .. &amp;#039;]&amp;#039;&lt;br /&gt;
	msg = mw.html.create(&amp;#039;span&amp;#039;):addClass(&amp;quot;plainlinks&amp;quot;):wikitext(msg)&lt;br /&gt;
	desc = core.langWrapper(args.text_lang, tostring(msg), args)&lt;br /&gt;
	local namespace = mw.title.getCurrentTitle().namespace&lt;br /&gt;
	local LUT = {[0]=1, [6]=1, [10]=1, [14]=1, [100]=1, [106]=1}&lt;br /&gt;
	if LUT[namespace]==1 then&lt;br /&gt;
		desc = desc .. &amp;#039;[[&amp;#039; .. cat .. &amp;#039;]]&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	return desc&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------&lt;br /&gt;
function p.description(frame) &lt;br /&gt;
	local args = core.getArgs(frame)&lt;br /&gt;
	args.user_lang = args.user_lang or args.lang -- core.getArgs sets args.lang&lt;br /&gt;
	if args.text == nil then -- if no string than add error message and a category&lt;br /&gt;
		return missing_text_error(args) &lt;br /&gt;
	else&lt;br /&gt;
		return core.langWrapper(args.text_lang, args.text, args)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Philip</name></author>
	</entry>
</feed>