Template:Expand section/testcases

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

Lua error in package.lua at line 80: module 'strict' not found. Lua error in package.lua at line 80: module 'strict' not found. Lua error in package.lua at line 80: module 'strict' not found. Lua error in package.lua at line 80: module 'strict' not found.

Test cases, 12 June 2013

Confirming example in description
{{Expand section|{{subst:DATE}}}}
Current: Lua error in package.lua at line 80: module 'strict' not found.
Sandbox: Lua error in package.lua at line 80: module 'strict' not found.
But is it really working: Trying an earlier date
{{Expand section|1 January 2010}}
Current: Lua error in package.lua at line 80: module 'strict' not found.
Sandbox: Lua error in package.lua at line 80: module 'strict' not found.

OK, so there's special code in {{Ambox}} that checks for {{subst:Date}}.

Once I look at this saved page, I see {{subst:DATE}} has actually been changed to "date=June 2013". (C.f. {{subst:CURRENTDATE}}:"03:01, Wednesday June 12, 2013 (UTC)") Note also {{DATE}}:"date={{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", which will be identical when I save, but the difference is it isn't substed in the preview until the template page is used (transcribed).

Test cases, 2011-12-22

Parameter |with= equivalent to |1=
{{Expand section/sandbox|with=Foo bar baz quux|{{subst:DATE}}}}
Old {{{1}}}: Lua error in package.lua at line 80: module 'strict' not found.
New {{{with}}}: Lua error in package.lua at line 80: module 'strict' not found.


Line break in code fixes start-of-line display errors (lists, indents, etc.)
 {{Expand section/sandbox|1=
 *Foo bar
 *Baz quux
 |{{subst:DATE}}
Old:

Lua error in package.lua at line 80: module 'strict' not found.

New:

Lua error in package.lua at line 80: module 'strict' not found.

Line break in code -- current workaround
 {{Expand section/sandbox|1=<nowiki />
 *Foo bar
 *Baz quux
 |{{subst:DATE}}
Old:

Lua error in package.lua at line 80: module 'strict' not found.

New:

Lua error in package.lua at line 80: module 'strict' not found.


OLD Testing
  Current Sandbox
{{expand section}} Lua error in package.lua at line 80: module 'strict' not found. Lua error in package.lua at line 80: module 'strict' not found.
{{expand section|category=}} Lua error in package.lua at line 80: module 'strict' not found. Lua error in package.lua at line 80: module 'strict' not found.
{{expand section|examples and additional citations}} Lua error in package.lua at line 80: module 'strict' not found. Lua error in package.lua at line 80: module 'strict' not found.
{{expand section|talksection=Example}} Lua error in package.lua at line 80: module 'strict' not found. Lua error in package.lua at line 80: module 'strict' not found.
{{expand section|talksection=Example|small=no}} Lua error in package.lua at line 80: module 'strict' not found. Lua error in package.lua at line 80: module 'strict' not found.
{{expand section|examples and additional citations|talksection=Example}} Lua error in package.lua at line 80: module 'strict' not found. Lua error in package.lua at line 80: module 'strict' not found.
{{expand section|catanyway=|date=March 2009}} Lua error in package.lua at line 80: module 'strict' not found. Lua error in package.lua at line 80: module 'strict' not found.