Modul:TemplateData: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
2018-02-13
wp>PerfektesChaos (2018-02-12T04) |
wp>PerfektesChaos (2018-02-13) |
||
Zeile 1: | Zeile 1: | ||
local TemplateData = { suite = "TemplateData", | local TemplateData = { suite = "TemplateData", | ||
serial = "2018-02- | serial = "2018-02-13", | ||
item = 46997995 } | item = 46997995 } | ||
--[=[ | --[=[ | ||
Zeile 1.124: | Zeile 1.124: | ||
elseif Permit.builder.grouped == true then | elseif Permit.builder.grouped == true then | ||
show = "inline grouped" | show = "inline grouped" | ||
code = "{{_ | _=_ }}" | code = "{{_ | _=_}}" | ||
elseif Permit.builder.spaced == true then | elseif Permit.builder.spaced == true then | ||
show = "inline spaced" | show = "inline spaced" | ||
Zeile 1.130: | Zeile 1.130: | ||
end | end | ||
elseif start == "block" then | elseif start == "block" then | ||
local space = " " | local space = "" -- amid "|" and name | ||
local spaced = " " -- preceding "=" | local spaced = " " -- preceding "=" | ||
local spacer = " " -- following "=" | local spacer = " " -- following "=" | ||
Zeile 1.142: | Zeile 1.142: | ||
end | end | ||
if Permit.builder.compressed == true then | if Permit.builder.compressed == true then | ||
spaced = "" | spaced = "" | ||
spacer = "" | spacer = "" | ||
Zeile 1.153: | Zeile 1.152: | ||
else | else | ||
if Permit.builder.lead == true then | if Permit.builder.lead == true then | ||
show = show .. " lead" | show = show .. " lead" | ||
space = " " | |||
space = "" | |||
end | end | ||
if Permit.builder.align == true then | if Permit.builder.align == true then | ||
Zeile 1.163: | Zeile 1.161: | ||
for k, v in pairs( Data.got.params ) do | for k, v in pairs( Data.got.params ) do | ||
if type( v ) == "table" and | if type( v ) == "table" and | ||
v.deprecated and | not v.deprecated and | ||
type( k ) == "string" and | type( k ) == "string" and | ||
#k > n then | #k > n then | ||
Zeile 1.174: | Zeile 1.172: | ||
end | end | ||
show = show .. " align" | show = show .. " align" | ||
elseif Permit.builder.after == true then | |||
spaced = "" | |||
show = show .. " after" | |||
elseif Permit.builder.dense == true then | elseif Permit.builder.dense == true then | ||
spaced = "" | spaced = "" |