Difference between revisions of "Smart Text"
m |
|||
(13 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
<br/> | <br/> | ||
=====System===== | =====System===== | ||
+ | ---- | ||
<nowiki>{{CURRENTVERSION}}</nowiki> Current Version: {{CURRENTVERSION}} <br/> | <nowiki>{{CURRENTVERSION}}</nowiki> Current Version: {{CURRENTVERSION}} <br/> | ||
<nowiki>{{SITENAME}}</nowiki> Site Name: {{SITENAME}} <br/> | <nowiki>{{SITENAME}}</nowiki> Site Name: {{SITENAME}} <br/> | ||
Line 8: | Line 9: | ||
<nowiki>{{SERVERNAME}}</nowiki> Server Name: {{SERVERNAME}} <br/> | <nowiki>{{SERVERNAME}}</nowiki> Server Name: {{SERVERNAME}} <br/> | ||
<br/> | <br/> | ||
+ | |||
=====Site Info===== | =====Site Info===== | ||
---- | ---- | ||
Line 14: | Line 16: | ||
<nowiki>{{NUMBEROFUSERS}}</nowiki> Current Users: {{NUMBEROFUSERS}} <br/> | <nowiki>{{NUMBEROFUSERS}}</nowiki> Current Users: {{NUMBEROFUSERS}} <br/> | ||
<br/> | <br/> | ||
− | + | <br/> | |
+ | =====Page Info===== | ||
+ | ---- | ||
+ | Version 1.7 is needed for these ''magic words'' | ||
+ | <br/> | ||
+ | <nowiki>{{FULLPAGENAME}}</nowiki> | ||
=====Date & Time===== | =====Date & Time===== | ||
+ | ----- | ||
<nowiki>{{CURRENTWEEK}}</nowiki> Current Week: {{CURRENTWEEK}} <br/> | <nowiki>{{CURRENTWEEK}}</nowiki> Current Week: {{CURRENTWEEK}} <br/> | ||
<nowiki>{{CURRENTMONTH}}</nowiki> Current Month: {{CURRENTMONTH}} <br/> | <nowiki>{{CURRENTMONTH}}</nowiki> Current Month: {{CURRENTMONTH}} <br/> | ||
Line 25: | Line 33: | ||
<nowiki>{{CURRENTTIME}}</nowiki> Current Time: {{CURRENTTIME}} <br/> | <nowiki>{{CURRENTTIME}}</nowiki> Current Time: {{CURRENTTIME}} <br/> | ||
<br/> | <br/> | ||
− | + | <nowiki>{{CURRENTTIMESTAMP}}</nowiki> TimeStamp: {{CURRENTTIMESTAMP}} | |
− | + | <br/> | |
− | <nowiki>{{CURRENTTIMESTAMP}}</nowiki> TimeStamp: {{CURRENTTIMESTAMP}} | + | Autoformatting date to ISO 8601 |
− | + | <br/> | |
+ | <nowiki>{{#formatdate:Jan 1 2012|ISO 8601}}</nowiki> | ||
+ | <br/> | ||
+ | {{#formatdate:Jan 1 2012|ISO 8601}} | ||
===Examples=== | ===Examples=== | ||
Line 35: | Line 46: | ||
<br/> | <br/> | ||
{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} {{CURRENTTIME}} | {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} {{CURRENTTIME}} | ||
+ | <br/> | ||
+ | <br/> | ||
+ | =====User Related Info===== | ||
+ | <nowiki> | ||
+ | {{gender:username | ||
+ | |return text if user is male | ||
+ | |return text if user is female | ||
+ | |return text if user hasn't defined their gender}} | ||
+ | </nowiki> | ||
+ | <br/> | ||
+ | <br/> | ||
+ | User Sex:{{gender:username | ||
+ | |male | ||
+ | |female | ||
+ | |other}} | ||
+ | |||
+ | [[Category:Mediawiki]] |
Latest revision as of 15:15, 10 April 2017
Contents
Smart Text (Magic Words)
System
{{CURRENTVERSION}} Current Version: 1.26.3
{{SITENAME}} Site Name: Help Wiki
{{Server}} Server: http://helpwiki.evergreen.edu
{{SERVERNAME}} Server Name: helpwiki.evergreen.edu
Site Info
{{NUMBEROFARTICLES}} Current Articles: 1,422
{{NUMBEROFPAGES}} Current Pages: 5,401
{{NUMBEROFUSERS}} Current Users: 10,291
Page Info
Version 1.7 is needed for these magic words
{{FULLPAGENAME}}
Date & Time
{{CURRENTWEEK}} Current Week: 47
{{CURRENTMONTH}} Current Month: 11
{{CURRENTMONTHNAME}} Current Month: November
{{CURRENTDAY}} Current Day: 23
{{CURRENTDAYNAME}} Current Day of the Week: Saturday
{{CURRENTYEAR}} Current Year: 2024
{{CURRENTTIME}} Current Time: 18:46
{{CURRENTTIMESTAMP}} TimeStamp: 20241123184601
Autoformatting date to ISO 8601
{{#formatdate:Jan 1 2012|ISO 8601}}
2012-01-01
Examples
ISO 8601
2024-11-23 18:46
User Related Info
{{gender:username
|return text if user is male
|return text if user is female
|return text if user hasn't defined their gender}}
User Sex:other