आकृति:En dash range
दिखावट
{{{1}}}–{{{2}}}
This template uses Lua: |
This template is used on many pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
This template creates a en dash-separated range that is compliant with . Its main purpose is to automatically determine whether a spaced or unspaced dash is to be used, based on the presence of whitespace, hyphens, or dashes in either term.
Usage
[सम्पादन करी]Examples:
{{En dash range|2020|2021}}
: 2020–2021{{En dash range|2020|present}}
: 2020–present{{En dash range|1 January 2020|1 January 2021}}
: 1 January 2020 – 1 January 2021{{En dash range|1 January 2020|present}}
: 1 January 2020 – present{{En dash range|1 January 2020|2021}}
: 1 January 2020 – 2021{{En dash range|2020|1 January 2021}}
: 2020 – 1 January 2021{{En dash range|2020-01-01|2021-01-01}}
: 2020-01-01 – 2021-01-01{{En dash range|2020|2021<ref>...</ref>}}
: 2020 – 2021आकृति:Dummy reference
The above documentation is transcluded from आकृति:En dash range/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |