Difference between revisions of "Template:As of"

From Bitcoin Wiki
Jump to: navigation, search
(Created page with "<!--{{As of}} begin--><includeonly><!-- ## param 1 is the year ## optional param 2 is the month ## optional param 3 is the day of the month ## optional named parameter alt=[t...")
 
(make documentation visible in template page)
 
Line 1: Line 1:
<!--{{As of}} begin--><includeonly><!--
+
<noinclude>
  
## param 1 is the year
+
;Usage
## optional param 2 is the month
+
* mandatory parameter 1 is the year
## optional param 3 is the day of the month
+
* optional parameter 2 is the month
## optional named parameter alt=[text] is alternative display text (may include wiki markup)
+
* optional parameter 3 is the day of the month
## optional named parameter df=US produces American date format in displayed text
+
* optional named parameter <code>alt=[text]</code> is alternative display text (may include wiki markup)
## optional named parameter lc=on gives lower-case-first output
+
* optional named parameter <code>df=US</code> produces American date format in displayed text
## optional named parameter url=[URL] gives statement reference
+
* optional named parameter <code>lc=on</code> gives lower-case-first output
 +
* optional named parameter <code>url=[URL]</code> gives statement reference
 +
 
 +
</noinclude><!--{{As of}} begin--><includeonly><!--
  
 
## displayed text ([A/a]s of [Start date] by default)
 
## displayed text ([A/a]s of [Start date] by default)
Line 29: Line 32:
 
## dynamic example (as of today, self ref)
 
## dynamic example (as of today, self ref)
  
-->As of {{Start date|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|df=yes}}<sup class="plainlinks">[http://en.wikipedia.org/wiki/Template:As_of &#91;ref&#93;]</sup>
+
-->;Example output: As of {{Start date|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|df=yes}}<sup class="plainlinks">[http://en.wikipedia.org/wiki/Template:As_of &#91;ref&#93;]</sup>
 
 
{{documentation}}
 
 
 
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->  
 
  
 
</noinclude>
 
</noinclude>

Latest revision as of 16:29, 19 September 2018


Usage
  • mandatory parameter 1 is the year
  • optional parameter 2 is the month
  • optional parameter 3 is the day of the month
  • optional named parameter alt=[text] is alternative display text (may include wiki markup)
  • optional named parameter df=US produces American date format in displayed text
  • optional named parameter lc=on gives lower-case-first output
  • optional named parameter url=[URL] gives statement reference
Example output
As of 20 June 2019 (2019-06-20)[ref]