Template:Circa: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77
pad sortkey+"0" zeroes before years <100,000 to sort A 1; set sortable=y span-tag with "speak:none" for screenreaders
meta>Wikid77
narrowed pad of sortkey+"0" for years <1000, in case other years not sortkey-prefixed
Line 1: Line 1:
{{#if:{{{sortable|}}}
{{#if:{{{sortable|}}}
  |<span style="display:none; speak:none;">{{padleft:{{{1|}}}|5|0}}&nbsp;</span>
  |<span style="display:none; speak:none;">{{padleft:{{{1|}}}|4|0}}&nbsp;</span>
}}{{#if:{{{i|}}}
}}{{#if:{{{i|}}}
  |<nowiki/>''
  |<nowiki/>''
Line 19: Line 19:
25Nov2007 Created to format/link "c." years.
25Nov2007 Created to format/link "c." years.
10Sep2009 Add new parameter "sortable=yes".
10Sep2009 Add new parameter "sortable=yes".
07Apr2016 Pad sortkey+"0" for years <100000.
07Apr2016 Pad sortkey+"0" for years <1000.
07Apr2016 Set sortable=y span "speak:none".
07Apr2016 Set sortable=y span "speak:none".
-->
-->
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 18:16, 7 April 2016

c.