Nuevo plugin Additionals 2.0.20
This commit is contained in:
parent
a2a901b71b
commit
93e1e28683
354 changed files with 40514 additions and 0 deletions
57
plugins/additionals/docs/macros/calendar.rst
Executable file
57
plugins/additionals/docs/macros/calendar.rst
Executable file
|
@ -0,0 +1,57 @@
|
|||
Calendar
|
||||
--------
|
||||
|
||||
Calendar wiki macros for Redmine.
|
||||
|
||||
.. function:: {{calendar([year=YEAR, month=MONTH, show_weeks=BOOL, select=DATE])}}
|
||||
|
||||
Show month calendar
|
||||
|
||||
:param int year: year to use, e.g. 2015
|
||||
:param int month: month to use, e.g. 4
|
||||
:param bool show_weeks: show week numbers if true
|
||||
:param date select: date or dates, which should be highlighted
|
||||
|
||||
Scope
|
||||
+++++
|
||||
|
||||
This macro only works in wiki page contexts.
|
||||
|
||||
Examples
|
||||
++++++++
|
||||
|
||||
show calendar for current date
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{calendar}}
|
||||
|
||||
show calendar for Juni in year ``2014``
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{calendar(year=2014,month=6)}}
|
||||
|
||||
show calendar with week numbers
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{calendar(show_weeks=true)}}
|
||||
|
||||
preselect a date
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{calendar(select=2015-07-12)}}
|
||||
|
||||
preselect dates and show week numbers
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{calendar(select=2015-07-12 2015-07-31, show_weeks=true)}}
|
||||
|
||||
preselect dates between 2016/3/13 and 2016/3/27
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{calendar(select=2016-03-13:2016-03-27)}}
|
Loading…
Add table
Add a link
Reference in a new issue