Changes
add 2 nested parameters for omitting terminal punctuation (e.g., when refs are included, as in Special:Permalink/847241424#Addiction)
{{SAFESUBST:<noinclude />#invoke:Unsubst||date=__DATE__ |$B=
<!--{{Expand section}} begin-->{{Ambox
| name = Expand section
| type = content
| small = {{{small|left}}}
| image = [[File:Wiki letter w cropped.svg|{{#ifeq:{{{small|}}}|no|44px|20px}}|alt=[icon]]]
| issue = This section '''needs expansion'''{{#if:{{{with|{{{for|{{{1|}}}}}}}}}
|  with: {{{with|{{{for|{{{1}}}}}}}}}}}{{#ifeq:{{{punctuation|{{{period|}}}}}}|no||.}} <small>You can help by [{{fullurl:{{FULLPAGENAME}}|action=edit§ion={{{section|}}}}} adding to it].</small>
| talk = {{{talk|{{{discuss|{{{talksection|}}}}}}}}}
| all = All articles to be expanded
| cat = Articles to be expanded
| date = {{{date|}}}
}}<!--{{Expand section}} end-->
}}<noinclude>
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
<!--{{Expand section}} begin-->{{Ambox
| name = Expand section
| type = content
| small = {{{small|left}}}
| image = [[File:Wiki letter w cropped.svg|{{#ifeq:{{{small|}}}|no|44px|20px}}|alt=[icon]]]
| issue = This section '''needs expansion'''{{#if:{{{with|{{{for|{{{1|}}}}}}}}}
|  with: {{{with|{{{for|{{{1}}}}}}}}}}}{{#ifeq:{{{punctuation|{{{period|}}}}}}|no||.}} <small>You can help by [{{fullurl:{{FULLPAGENAME}}|action=edit§ion={{{section|}}}}} adding to it].</small>
| talk = {{{talk|{{{discuss|{{{talksection|}}}}}}}}}
| all = All articles to be expanded
| cat = Articles to be expanded
| date = {{{date|}}}
}}<!--{{Expand section}} end-->
}}<noinclude>
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>