Difference between revisions of "Smart Text"

From Help Wiki
m
 
(29 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
==Smart Text (Magic Words)==
 
==Smart Text (Magic Words)==
 +
[http://www.mediawiki.org/wiki/Help:Magic_words ''media wiki source'']
 +
<br/>
 +
=====System=====
 +
----
 +
<nowiki>{{CURRENTVERSION}}</nowiki> Current Version: {{CURRENTVERSION}}  <br/>
 +
<nowiki>{{SITENAME}}</nowiki> Site Name: {{SITENAME}} <br/>
 +
<nowiki>{{Server}}</nowiki> Server: {{SERVER}} <br/>
 +
<nowiki>{{SERVERNAME}}</nowiki> Server Name: {{SERVERNAME}} <br/>
 +
<br/>
 +
 +
=====Site Info=====
 +
----
 +
<nowiki>{{NUMBEROFARTICLES}}</nowiki> Current Articles: {{NUMBEROFARTICLES}} <br/>
 +
<nowiki>{{NUMBEROFPAGES}}</nowiki> Current Pages:    {{NUMBEROFPAGES}} <br/>
 +
<nowiki>{{NUMBEROFUSERS}}</nowiki> Current Users:    {{NUMBEROFUSERS}} <br/>
 +
<br/>
 +
<br/>
 +
=====Page Info=====
 +
----
 +
Version 1.7 is needed for these ''magic words''
 +
<br/>
 +
<nowiki>{{FULLPAGENAME}}</nowiki>
 +
 +
=====Date & Time=====
 +
-----
 
<nowiki>{{CURRENTWEEK}}</nowiki> Current Week: {{CURRENTWEEK}} <br/>
 
<nowiki>{{CURRENTWEEK}}</nowiki> Current Week: {{CURRENTWEEK}} <br/>
<nowiki>{{CURRENTMONTHNAME}}</nowiki>Current Month: {{CURRENTMONTHNAME}} <br/>
+
<nowiki>{{CURRENTMONTH}}</nowiki> Current Month: {{CURRENTMONTH}} <br/>
<nowiki>{{CURRENTDAY}}</nowiki>Current Day: {{CURRENTDAY}} <br/>
+
<nowiki>{{CURRENTMONTHNAME}}</nowiki> Current Month: {{CURRENTMONTHNAME}} <br/>
<nowiki>{{CURRENTDAYNAME}}</nowiki>Current Day of the Week: {{CURRENTDAYNAME}} <br/>
+
<nowiki>{{CURRENTDAY}}</nowiki> Current Day: {{CURRENTDAY}} <br/>
<nowiki>{{CURRENTYEAR}}</nowiki>Current Year: {{CURRENTYEAR}} <br/>
+
<nowiki>{{CURRENTDAYNAME}}</nowiki> Current Day of the Week: {{CURRENTDAYNAME}} <br/>
<nowiki>{{CURRENTTIME}}</nowiki>Current Time: {{CURRENTTIME}} <br/>
+
<nowiki>{{CURRENTYEAR}}</nowiki> Current Year: {{CURRENTYEAR}} <br/>
 +
<nowiki>{{CURRENTTIME}}</nowiki> Current Time: {{CURRENTTIME}} <br/>
 +
<br/>
 +
<nowiki>{{CURRENTTIMESTAMP}}</nowiki> TimeStamp: {{CURRENTTIMESTAMP}}
 +
<br/>
 +
Autoformatting date to ISO 8601
 +
<br/>
 +
<nowiki>{{#formatdate:Jan 1 2012|ISO 8601}}</nowiki>
 +
<br/>
 +
{{#formatdate:Jan 1 2012|ISO 8601}}
 +
 
 +
===Examples===
 +
----
 +
''ISO 8601''
 +
<br/>
 +
{{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/>
<nowiki>{{SITENAME}}</nowiki>Site name: {{SITENAME}}
 
<nowiki>{{NUMBEROFARTICLES}}</nowiki>Current Articles: {{NUMBEROFARTICLES}} <br/>
 
<nowiki>{{NUMBEROFPAGES}}</nowiki>Current Pages:    {{NUMBEROFPAGES}} <br/>
 
<nowiki>{{NUMBEROFUSERS}}</nowiki>Current Users:    {{NUMBEROFUSERS}} <br/>
 
 
<br/>
 
<br/>
 +
User Sex:{{gender:username
 +
|male
 +
|female
 +
|other}}
 +
 +
[[Category:Mediawiki]]

Latest revision as of 16:15, 10 April 2017

Smart Text (Magic Words)

media wiki source

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,314
{{NUMBEROFPAGES}} Current Pages: 4,508
{{NUMBEROFUSERS}} Current Users: 8,888


Page Info

Version 1.7 is needed for these magic words
{{FULLPAGENAME}}

Date & Time

{{CURRENTWEEK}} Current Week: 34
{{CURRENTMONTH}} Current Month: 08
{{CURRENTMONTHNAME}} Current Month: August
{{CURRENTDAY}} Current Day: 24
{{CURRENTDAYNAME}} Current Day of the Week: Saturday
{{CURRENTYEAR}} Current Year: 2019
{{CURRENTTIME}} Current Time: 06:43

{{CURRENTTIMESTAMP}} TimeStamp: 20190824064348
Autoformatting date to ISO 8601
{{#formatdate:Jan 1 2012|ISO 8601}}
2012-01-01

Examples


ISO 8601
2019-08-24 06:43

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