Help:Wikitext: Difference between revisions

Content deleted Content added
fix VE bug (it tends to remove line breaks before templates that need it and to allow editors to insert such templates without line breaks)
No edit summary
Line 2,077:
|-
| <nowiki>{{CURRENTWEEK}}</nowiki> || {{CURRENTWEEK}}
|Number of weeks since January 1
|
|-
| <nowiki>{{CURRENTDOW}}</nowiki> || {{CURRENTDOW}}
|
Monday0 =Sunday, 1 = Monday, Tuesday2 = 2Tuesday, etc.,.. but Sunday6 = 0Saturday
 
|-
Line 2,089:
| <nowiki>{{CURRENTMONTHNAME}}</nowiki>
| {{CURRENTMONTHNAME}}
|The nominative (subject) form, as usually seen in English
|
|-
| <nowiki>{{CURRENTMONTHNAMEGEN}}</nowiki>
| {{CURRENTMONTHNAMEGEN}}
'''{{tlf|CURRENTMONTHNAMEGEN}}''' is theThe genitive (possessive) grammatical form of the month name, as used in some languages but not in English; '''{{tlf|CURRENTMONTHNAME}}''' is the nominative (subject) form, as usually seen in English.
|
|-
| <nowiki>{{CURRENTDAY}}</nowiki> || {{CURRENTDAY}}
Line 2,109:
| <nowiki>{{NUMBEROFARTICLES}}</nowiki>
| {{NUMBEROFARTICLES}}
'''{{tlf|NUMBEROFARTICLES}}''' is the numberNumber of pages in the main namespace that contain a link and are not a redirect. This includes full articles, stubs containing a link, and disambiguation pages.
|
|-
| <nowiki>{{NUMBEROFPAGES}}</nowiki>
Line 2,158:
|
|}
In languages where it makes a difference, you can use constructs like <syntaxhighlight lang="wikitext" inline>{{grammar:case|word}}</syntaxhighlight> to convert a word from the nominative case to some other case. For example, <syntaxhighlight lang="wikitext" inline>{{grammar:genitive|{{CURRENTMONTHNAME}}}}</syntaxhighlight> means the same as <syntaxhighlight lang="wikitext" inline>{{CURRENTMONTHNAMEGEN}}</syntaxhighlight>. <!-- Is there a reference for this, other than the source code (for example, phase3/languages/Lnaguage*.php) ? -->
 
'''{{tlf|NUMBEROFARTICLES}}''' is the number of pages in the main namespace that contain a link and are not a redirect. This includes full articles, stubs containing a link, and disambiguation pages.
 
'''{{tlf|CURRENTMONTHNAMEGEN}}''' is the genitive (possessive) grammatical form of the month name, as used in some languages but not in English; '''{{tlf|CURRENTMONTHNAME}}''' is the nominative (subject) form, as usually seen in English.
 
In languages where it makes a difference, you can use constructs like <syntaxhighlight lang="wikitext" inline>{{grammar:case|word}}</syntaxhighlight> to convert a word from the nominative case to some other case. For example, <syntaxhighlight lang="wikitext" inline>{{grammar:genitive|{{CURRENTMONTHNAME}}}}</syntaxhighlight> means the same as <syntaxhighlight lang="wikitext" inline>{{CURRENTMONTHNAMEGEN}}</syntaxhighlight>. <!-- Is there a reference for this, other than the source code (for example, phase3/languages/Lnaguage*.php) ? -->
 
==HTML==