Modul:TemplateData: Unterschied zwischen den Versionen
2017-03-28
w>PerfektesChaos (2017-03-27) |
w>PerfektesChaos (2017-03-28) |
||
| Zeile 1: | Zeile 1: | ||
local TemplateData = { serial = "2017-03- | local TemplateData = { serial = "2017-03-28", | ||
suite = "TemplateData" } | suite = "TemplateData" } | ||
--[=[ | --[=[ | ||
| Zeile 144: | Zeile 144: | ||
:wikitext( k ) ) | :wikitext( k ) ) | ||
:tag( "br" ) | :tag( "br" ) | ||
:wikitext( v:gsub( "</? | :wikitext( v:gsub( "</?noexport>", | ||
"" ) ) ) | "" ) ) ) | ||
end -- for k, v | end -- for k, v | ||
| Zeile 433: | Zeile 433: | ||
end | end | ||
end -- for k, v | end -- for k, v | ||
-- label | -- label | ||
sort = param.label or access | sort = param.label or access | ||
| Zeile 690: | Zeile 690: | ||
if adjust then | if adjust then | ||
r = adjust | r = adjust | ||
if r:find( "< | if r:find( "<noexport>", 1, true ) then | ||
r = r:gsub( "< | r = r:gsub( "<noexport>(.*)</noexport>", "" ) | ||
end | end | ||
if r:find( "''", 1, true ) or r:find( "<", 1, true ) then | if r:find( "''", 1, true ) or r:find( "<", 1, true ) then | ||
| Zeile 786: | Zeile 786: | ||
if scope:find( "I18N", 1, true ) then | if scope:find( "I18N", 1, true ) then | ||
if s == "string" then | if s == "string" then | ||
elem = v:gsub( "</? | elem = v:gsub( "</?noexport>", "" ) | ||
v = flat( v ) | v = flat( v ) | ||
else | else | ||
| Zeile 792: | Zeile 792: | ||
v, translated = faraway( v ) | v, translated = faraway( v ) | ||
if translated and k == "description" then | if translated and k == "description" then | ||
elem = { [ 1 ] = v:gsub( "</? | elem = { [ 1 ] = v:gsub( "</?noexport>", | ||
"" ), | "" ), | ||
[ 2 ] = translated } | [ 2 ] = translated } | ||
else | else | ||
elem = v:gsub( "</? | elem = v:gsub( "</?noexport>", "" ) | ||
end | end | ||
v = flat( v ) | v = flat( v ) | ||
| Zeile 947: | Zeile 947: | ||
Config.loudly = true | Config.loudly = true | ||
end | end | ||
if arglist.JSON then | if arglist.JSON then | ||
source = arglist.JSON | source = arglist.JSON | ||