Content deleted Content added
→Spaces in separators: reply |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 47:
end
</pre>
{{ping|Dave Braunschweig}} I could use such a function so I just added it to the sandbox. Now I'll improve it to fit my needs. Thanks for the code! [[User:Sophivorus|Sophivorus]] ([[User talk:Sophivorus|talk]]) 13:15, 24 May 2020 (UTC)
: This seems like too niche functionality to be added to the main [[Module:Random]] (as opposed to another module) [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 17:35, 24 May 2020 (UTC)
== Spaces in separators ==
Line 54 ⟶ 56:
to strip out the double quotation marks. That allows you to set a parameter such as {{para|separator|", "}} in the template call. HTH --[[User:RexxS|RexxS]] ([[User talk:RexxS|talk]]) 19:11, 7 June 2018 (UTC)
:{{ping|RexxS}} Interesting idea. You can still allow double quotes in such a system, btw - you just have to also convert <code>""</code> to <code>"</code>. Or you could do something like replace every instance of <code><space></code> with an actual space. At the moment, you still have the option of using an [[HTML entity]]: <code>separator = &#32;</code>. I'd be interested to know how much demand there is for things like this that isn't already possible with the <code>comma</code> separator. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 12:13, 8 June 2018 (UTC)
:: {{re|Mr. Stradivarius}} I use it in [[Module:WikidataIB/sandbox]] (around line 444) in case somebody wants the list of returned values to have something other than ", " – perhaps a spaced dash of some sort: " – " or a spaced middot (although hlist handles that more accessibly). As you never can tell what odd applications editors will think up, I always to try to maximise the flexibility, and minimise the requirements for the users know something (e.g. html entities). Cheers --[[User:RexxS|RexxS]] ([[User talk:RexxS|talk]]) 13:23, 8 June 2018 (UTC)
|