Template talk:Zero width space
Appearance
(Redirected from Template talk:Zero width space/testcases)
Template-protected edit request on 21 November 2024
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Add code copied from Template:Shy to allow, in addition to the existing zero-parameter form, a form which accepts parameters which will be separated by zero-width spaces. For example, {{zwsp|1,|520,|698,|109,|714,|272,|166,|094,|258,|063}}
to allow wrapping a very large number after any comma. The adaptation is pretty trivial, but here's what should go in <noinclude>...</noinclude>
:
{{#if:{{{1|}}}|{{#invoke:Separated entries|main|separator=​}}|​}}
You may copy the {{safesubst:<noinclude/>
trickery from {{shy}}
as well, if you like. That just makes {{subst:zwsp|...}} work recursively.
A more ambitious edit would extend this to some other Category:Inline spacing templates, but zwsp is what I miss right now. Thank you! 97.102.205.224 (talk) 18:01, 21 November 2024 (UTC)
- Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. – Jonesey95 (talk) 20:26, 21 November 2024 (UTC)
- @Jonesey95: Thank you! Tested in sandbox and reactivated with a typo fix. (Getting
{{
to show up in rendered wikitext requires an ugly hack.) See test cases at Template:Zero width space/testcases. (Should they be copied, or transcluded, here? Not sure what the convention is.) 97.102.205.224 (talk) 04:02, 22 November 2024 (UTC)
- @Jonesey95: Thank you! Tested in sandbox and reactivated with a typo fix. (Getting