Template:Nepali date: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
AD→BS converter |
fix |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#invoke:Nepali date|ad2bs|year={{{year|{{{1}}}}}}|month={{{month|{{{2}}}}}}|day={{{day|{{{3}}}}}}}}</includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude> |
|||
{{#if:{{{year|}}}{{{month|}}}{{{day|}}} |
|||
| {{#invoke:Nepali date|ad2bs |
|||
|year={{{year|}}} |
|||
|month={{{month|}}} |
|||
|day={{{day|}}} |
|||
|format={{{format|iso}}} |
|||
}} |
|||
| <!-- nothing displayed if no parameters --> |
|||
}} |
|||
<noinclude> |
|||
== Usage == |
|||
* To use this template, provide AD year, month, and day: |
|||
* Example: <nowiki>{{Nepali date|year=2025|month=9|day=17}}</nowiki> |
|||
* Example with Nepali format: <nowiki>{{Nepali date|year=2025|month=9|day=17|format=nepali}}</nowiki> |
|||
== Parameters == |
|||
* <code>year</code> = AD year (required) |
|||
* <code>month</code> = AD month (required) |
|||
* <code>day</code> = AD day (required) |
|||
* <code>format</code> = either <code>iso</code> (default) or <code>nepali</code> |
|||
== Example output == |
|||
* ISO: 2025-09-17 (वि.सं. 2082-06-01) |
|||
* Nepali style: १७ सेप्टेम्बर २०२५ (वि.सं. २०८२ भाद्र १) |
|||
</noinclude> |
|||
Latest revision as of 15:23, 17 September 2025
Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.