Difference between revisions of "Command/month"

From Wiki
Jump to navigation Jump to search
(Create reference page)
 
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=month
 
|name=month
Line 6: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>month</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
Line 13: Line 13:
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
 
     <td class="cmd">{...}</td>
 
     <td class="cmd">{...}</td>
     <td><i>text</i> </td>
+
     <td><i>number</i> </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
Line 20: Line 20:
 
== Description ==  
 
== Description ==  
  
 +
Produces the lowercase language label text for the month given by number, which should be between 1 and 12.
  
 +
== Example ==
 +
<context source=yes>
 +
% In English, months have initial capitals even in lowercase text.
 +
\month{1}--\month{6}
 +
 +
\language[ro] % merely changes the hyphenation language
 +
\month{1}--\month{6}
 +
 +
\mainlanguage[ro] % changes the language the document is in
 +
\month{1}--\month{6}
 +
</context>
  
== Example ==
 
<!-- Please fill in an example if you can -->
 
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|MONTH}} for the month in all caps
 +
* {{cmd|weekday}} and {{cmd|WEEKDAY|}} to print days of the week
 +
* {{cmd|mainlanguage}} to choose the language the month appears in
 +
* This command uses the labels mechanism. See {{cmd|setuplabeltext}} and {{cmd|labeltext}} to set up and use your own labeled concepts.
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Reference/en|month]]
+
[[Category:Command/DateTime|month]]

Latest revision as of 14:50, 13 October 2019

\month

Syntax (autogenerated)

\month{...}
{...}number


Syntax

\month{...}
{...} number


Description

Produces the lowercase language label text for the month given by number, which should be between 1 and 12.

Example

% In English, months have initial capitals even in lowercase text.
\month{1}--\month{6}

\language[ro] % merely changes the hyphenation language
\month{1}--\month{6}

\mainlanguage[ro] % changes the language the document is in
\month{1}--\month{6}


See also

Help from ConTeXt-Mailinglist/Forum

All issues with: