OLD Testing

OLD Testing
  Current Sandbox
((expand section))
This section needs expansion. You can help by adding to it. (talk)
This section needs expansion. You can help by adding to it. (talk)
((expand section|category=))
This section needs expansion. You can help by adding to it. (talk)
This section needs expansion. You can help by adding to it. (talk)
((expand section|examples and additional citations))
This section needs expansion with: examples and additional citations. You can help by adding to it. (talk)
This section needs expansion with: examples and additional citations. You can help by adding to it. (talk)
((expand section|talksection=Example))
This section needs expansion. You can help by adding to it. (talk)
This section needs expansion. You can help by adding to it. (talk)
((expand section|talksection=Example|small=no))
This section needs expansion. You can help by adding to it. Relevant discussion may be found on the talk page.
This section needs expansion. You can help by adding to it. (talk)
((expand section|examples and additional citations|talksection=Example))
This section needs expansion with: examples and additional citations. You can help by adding to it. (talk)
This section needs expansion with: examples and additional citations. You can help by adding to it. (talk)
((expand section|catanyway=|date=March 2009))
This section needs expansion. You can help by adding to it. (talk) (March 2009)
This section needs expansion. You can help by adding to it. (talk) (March 2009)

Legacy

This section needs expansion. You can help by adding to it. (talk) (June 2013)
This section needs expansion with: June 2013. You can help by adding to it. (talk)
This section needs expansion. You can help by adding to it. (talk)

Test cases, 12 June 2013

Confirming example in description
((Expand section|((subst:DATE))))
Current:
This section needs expansion. You can help by adding to it. (talk) (June 2013)
Sandbox:
This section needs expansion. You can help by adding to it. (talk) (June 2013)
Expanded code
Current: '"`UNIQ--templatestyles-0000001D-QINU`"'<table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=&#91;icon&#93;]]</td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion'''. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit&section= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])</span> <span class='date-container'><i>(<span class='date'>June 2013</span>)</i></span></div></td></tr></table>
Sandbox: '"`UNIQ--templatestyles-0000001E-QINU`"'<table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation" style="width: auto;"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=&#91;icon&#93;]]</td><td class="mbox-text" style="width: auto;"><div class="mbox-text-span">This section '''needs expansion'''. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit&section= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])</span> <span class='date-container'><i>(<span class='date'>June 2013</span>)</i></span></div></td></tr></table>
But is it really working: Trying an earlier date
((Expand section|1 January 2010))
Current:
This section needs expansion with: 1 January 2010. You can help by adding to it. (talk)
Sandbox:
This section needs expansion with: 1 January 2010. You can help by adding to it. (talk)
Expanded code
Current: '"`UNIQ--templatestyles-00000022-QINU`"'<table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=&#91;icon&#93;]]</td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion'''&#32;with: 1 January 2010. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit&section= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])</span></div></td></tr></table>
Sandbox: '"`UNIQ--templatestyles-00000023-QINU`"'<table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation" style="width: auto;"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=&#91;icon&#93;]]</td><td class="mbox-text" style="width: auto;"><div class="mbox-text-span">This section '''needs expansion'''&#32;with: 1 January 2010. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit&section= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])</span></div></td></tr></table>

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))}:
This section needs expansion with: Foo bar baz quux. You can help by adding to it. (talk) (December 2011)
New (({with))}:
This section needs expansion with: Foo bar baz quux. You can help by adding to it. (talk) (December 2011)
Expanded code
Old (({1))}: '"`UNIQ--templatestyles-0000002B-QINU`"'<table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=&#91;icon&#93;]]</td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion'''&#32;with: Foo bar baz quux. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit&section= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])</span> <span class='date-container'><i>(<span class='date'>December 2011</span>)</i></span></div></td></tr></table>
New (({with))}: '"`UNIQ--templatestyles-0000002C-QINU`"'<table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation" style="width: auto;"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=&#91;icon&#93;]]</td><td class="mbox-text" style="width: auto;"><div class="mbox-text-span">This section '''needs expansion'''&#32;with: Foo bar baz quux. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit&section= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])</span> <span class='date-container'><i>(<span class='date'>December 2011</span>)</i></span></div></td></tr></table>


Line break in code fixes start-of-line display errors (lists, indents, etc.)
 ((Expand section/sandbox|1=
 *Foo bar
 *Baz quux
 |((subst:DATE))
Old:
This section needs expansion with: *Foo bar Baz quux. You can help by adding to it. (talk) (December 2011)
New:
This section needs expansion with: *Foo bar Baz quux. You can help by adding to it. (talk) (December 2011)
Expanded code
Old: '"`UNIQ--templatestyles-00000030-QINU`"'<table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=&#91;icon&#93;]]</td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion'''&#32;with: *Foo bar *Baz quux. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit&section= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])</span> <span class='date-container'><i>(<span class='date'>December 2011</span>)</i></span></div></td></tr></table>
New: '"`UNIQ--templatestyles-00000031-QINU`"'<table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation" style="width: auto;"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=&#91;icon&#93;]]</td><td class="mbox-text" style="width: auto;"><div class="mbox-text-span">This section '''needs expansion'''&#32;with: *Foo bar *Baz quux. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit&section= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])</span> <span class='date-container'><i>(<span class='date'>December 2011</span>)</i></span></div></td></tr></table>
Line break in code -- current workaround
 ((Expand section/sandbox|1=<nowiki />
 *Foo bar
 *Baz quux
 |((subst:DATE))
Old:
This section needs expansion with: Foo bar Baz quux. You can help by adding to it. (talk) (December 2011)
New:
This section needs expansion with: Foo bar Baz quux. You can help by adding to it. (talk) (December 2011)
Expanded code
Old: '"`UNIQ--templatestyles-00000036-QINU`"'<table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=&#91;icon&#93;]]</td><td class="mbox-text"><div class="mbox-text-span">This section '''needs expansion'''&#32;with: *Foo bar *Baz quux. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit&section= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])</span> <span class='date-container'><i>(<span class='date'>December 2011</span>)</i></span></div></td></tr></table>
New: '"`UNIQ--templatestyles-00000038-QINU`"'<table class="box-Expand_section plainlinks metadata ambox mbox-small-left ambox-content" role="presentation" style="width: auto;"><tr><td class="mbox-image">[[File:Wiki letter w cropped.svg|20px|alt=&#91;icon&#93;]]</td><td class="mbox-text" style="width: auto;"><div class="mbox-text-span">This section '''needs expansion'''&#32;with: *Foo bar *Baz quux. You can help by [//en.wikipedia.org/w/index.php?title=Template:Expand_section/testcases&action=edit&section= adding to it].<span class="hide-when-compact"> ([[Template talk:Expand section/testcases##|talk]])</span> <span class='date-container'><i>(<span class='date'>December 2011</span>)</i></span></div></td></tr></table>
Variable width parameter
((Expand section |date=March 2024 |small=left |width=variable))

((Expand section))

This section needs expansion. You can help by adding to it. (talk) (March 2024)

((Expand section/sandbox))

This section needs expansion. You can help by adding to it. (talk) (March 2024)
Variable width parameter (no small; shouldn't work)
((Expand section |date=March 2024 |small=no |width=variable))

((Expand section))

This section needs expansion. You can help by adding to it. Relevant discussion may be found on the talk page. (March 2024)

((Expand section/sandbox))

This section needs expansion. You can help by adding to it. (talk) (March 2024)


Variable width parameter (parameter not equal to "variable"; shouldn't work)
((Expand section |date=March 2024 |width=invalid))

((Expand section))

This section needs expansion. You can help by adding to it. (talk) (March 2024)

((Expand section/sandbox))

This section needs expansion. You can help by adding to it. (talk) (March 2024)


Find-sources params 'find' and 'find2'

5a. Control: plain search ⟶ small box, no 'find sources' output
((Expand section |date=March 2024))
Side by side comparison
((Expand section))((Expand section/sandbox))
This section needs expansion. You can help by adding to it. (talk) (March 2024)
This section needs expansion. You can help by adding to it. (talk) (March 2024)
5b. small='left' ⟶ small box, no 'find sources'
((Expand section |small=left))
Side by side comparison
((Expand section))((Expand section/sandbox))
This section needs expansion. You can help by adding to it. (talk)
This section needs expansion. You can help by adding to it. (talk)
5c. small='no' ⟶ wide box, no 'find sources'
((Expand section |small=no))

((Expand section))

This section needs expansion. You can help by adding to it. Relevant discussion may be found on the talk page.

((Expand section/sandbox))

This section needs expansion. You can help by adding to it. (talk)
5d. small='yes' ⟶ wide box, no 'find sources' (any value for small other than 'left' generates wide box; so 'yes' = 'no' !)
((Expand section |small=yes))

((Expand section))

This section needs expansion. You can help by adding to it. Relevant discussion may be found on the talk page.

((Expand section/sandbox))

This section needs expansion. You can help by adding to it. (talk)
5e. Find param present with small = 'left' ⟶ small box, and 'find sources' output with find param value as quoted search keywords
((Expand section |find=Liberation of France |small=left))
Side by side comparison
((Expand section))((Expand section/sandbox))
This section needs expansion. You can help by adding to it.Find sources: "Liberation of France" – news · newspapers · books · scholar · JSTOR (talk)
This section needs expansion. You can help by adding to it.Find sources: "Liberation of France" – news · newspapers · books · scholar · JSTOR (talk)
5f. Find param present, no small ⟶ small box w 'find sources' with find param value as quoted search keywords
((Expand section |find=Liberation of France))
Side by side comparison
((Expand section))((Expand section/sandbox))
This section needs expansion. You can help by adding to it.Find sources: "Liberation of France" – news · newspapers · books · scholar · JSTOR (talk)
This section needs expansion. You can help by adding to it.Find sources: "Liberation of France" – news · newspapers · books · scholar · JSTOR (talk)
5g. Find param present with small ≠ 'left' ⟶ wide box w 'find sources' with find param value as quoted search keywords
((Expand section |find=Merovingian dynasty |small=no))

((Expand section))

This section needs expansion. You can help by adding to it.Find sources: "Merovingian dynasty" – news · newspapers · books · scholar · JSTOR Relevant discussion may be found on the talk page.

((Expand section/sandbox))

This section needs expansion. You can help by adding to it.Find sources: "Merovingian dynasty" – news · newspapers · books · scholar · JSTOR (talk)
5h. Find param present, no small ⟶ wide box w 'find sources' with find param value as quoted search keywords
((Expand section |find=Merovingian dynasty))
Side by side comparison
((Expand section))((Expand section/sandbox))
This section needs expansion. You can help by adding to it.Find sources: "Merovingian dynasty" – news · newspapers · books · scholar · JSTOR (talk)
This section needs expansion. You can help by adding to it.Find sources: "Merovingian dynasty" – news · newspapers · books · scholar · JSTOR (talk)
5i. Two find params present, small='no' ⟶ wide box w 'find sources' with quoted and unquoted search keywords
((Expand section |find=World War I |find2=Eastern front |small=no))

((Expand section))

This section needs expansion. You can help by adding to it.Find sources: "World War I" Eastern front – news · newspapers · books · scholar · JSTOR Relevant discussion may be found on the talk page.

((Expand section/sandbox))

This section needs expansion. You can help by adding to it.Find sources: "World War I" Eastern front – news · newspapers · books · scholar · JSTOR (talk)
5j. Any value for small other than 'left' is the same as 'no' ⟶ same as above (i.e., 'yes' = 'no'!)
((Expand section |find=World War I |find2=Eastern front |small=yes))

((Expand section))

This section needs expansion. You can help by adding to it.Find sources: "World War I" Eastern front – news · newspapers · books · scholar · JSTOR Relevant discussion may be found on the talk page.

((Expand section/sandbox))

This section needs expansion. You can help by adding to it.Find sources: "World War I" Eastern front – news · newspapers · books · scholar · JSTOR (talk)
5k. Two find params present, no 'small' param ⟶ small box w 'find sources' with quoted and unquoted search keywords
((Expand section |find=World War I |find2=Eastern front))
Side by side comparison
((Expand section))((Expand section/sandbox))
This section needs expansion. You can help by adding to it.Find sources: "World War I" Eastern front – news · newspapers · books · scholar · JSTOR (talk)
This section needs expansion. You can help by adding to it.Find sources: "World War I" Eastern front – news · newspapers · books · scholar · JSTOR (talk)