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
Ookami (talk | contribs)
m 37 revisions imported
 
(9 intermediate revisions by 6 users not shown)
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/>''
}}{{#switch:{{{lk|}}}
}}{{#switch:{{{lk|}}}
  |no|off  = c.
  |no|off  = <span title="circa">c.</span>
  |yes|on  = [[Circa|c.]]
  |yes|on  = [[Circa|c.]]
  |abbr
  |abbr
Line 14: Line 14:
}}{{#if:{{{2|}}}
}}{{#if:{{{2|}}}
  |&nbsp;– c.<span style="white-space:nowrap;">&thinsp;{{{2}}}</span>
  |&nbsp;– c.<span style="white-space:nowrap;">&thinsp;{{{2}}}</span>
}}<noinclude><!--
}}<noinclude>
--------------------------------------------
HISTORY:
25Nov2007 Created to format/link "c." years.
10Sep2009 Add new parameter "sortable=yes".
07Apr2016 Pad sortkey+"0" for years <100000.
07Apr2016 Set sortable=y span "speak:none".
-->
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 00:53, 3 September 2020

c.