Template:Format start end
Jump to navigation
Jump to search
Description[edit]
Format the contents of a date range with an intermediate delimiter. It is intended to be invoked from complex list-building treatment with Wikidades's table function, where the possible non-existence of one of the two dates requires a code-compliant treatment.
The parameters are all manual. No WD recovery.
Syntax[edit]
It accepts both, named or positional parameters. Use the two options by the same parameter generates a conflict. This must be avoided.
{{Format start end | start = | end = | open = | close = | separator =}}
If there is no start
or end
, the result is null
Ignore dates with no value content.
- start or
<parameter 1>
= start date. If it is not informed, it is blank.
- end or
<parameter 2>
= end date. If it is not informed, it is blank. - open or
<parameter 3>
= left symbol to circle dates. If not reported set(
by default. - close or
<parameter 4>
= right symbol to circle dates. If not reported set default to)
. - separator or
<parameter 5>
= symbol to separate the two dates. The default is-
. It will show even if we only have one of the two dates to indicate if the information is the start or end date.
The above documentation is transcluded from Template:Format start end/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |