Module:String2/doc: Difference between revisions

Content deleted Content added
No edit summary
hyphen2dash: -temp note
Line 130:
=== hyphen2dash ===
Extracted hyphen_to_dash() function from [[Special:Permalink/1017669505|Module:Citation/CS1]].
 
'''Temporary note:''' Per [[Template_talk:Sfn#Add_automatic_endash_for_page_number_range%3F]] this will likely be moved back into CS1 after some minor changes there, so, if you use this function, please note it down here to make it easier to convert the code once this was done. Known usage so far: {{tl|r/ref}}, {{tl|rp}}<!-- add more here -&rarr;.
 
Converts a hyphen to a dash under certain conditions. The hyphen must separate like items; unlike items are returned unmodified. These forms are modified: