Difference between revisions of "Template:CodeFedReg/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Gurnec
(support parts which are split across multiple volumes)
imported>Gurnec
(replace accessdate-based "Retrieved" message by linking to the specific version; deprecate year argument)
Line 36: Line 36:
 
     tab_02
 
     tab_02
 
   }} }} }}.tpl
 
   }} }} }}.tpl
 +
}}{{#ifexpr: {{{accessdate|0}}} and (not {{{year|0}}} or {{#time: Y | {{{accessdate|1900}}} }} = {{{year|0}}}) |
 +
  {{#ifexpr: {{#time: xnU | {{{accessdate}}} }} >= 1407715200 |
 +
    &m={{#time: m | {{{accessdate}}} }}&d={{#time: d | {{{accessdate}}} }}&y={{#time: Y | {{{accessdate}}} }} }}
 +
| {{#if: {{{year|}}} |
 +
  {{#ifexpr: {{{year}}} > 2014 |
 +
    &m=07&d=01&y={{{year}}}
 +
  | {{#ifexpr: {{{year}}} = 2014 |
 +
    &m=08&d=11&y=2014 }} }} }}
 
}} {{#if: {{{subtitle|}}}{{{volume|}}}{{{chapter|}}}{{{subpart|}}}{{{appendix_desc|}}}{{{prefix|}}} |
 
}} {{#if: {{{subtitle|}}}{{{volume|}}}{{{chapter|}}}{{{subpart|}}}{{{appendix_desc|}}}{{{prefix|}}} |
 
   {{#if: {{{2|}}} |
 
   {{#if: {{{2|}}} |
Line 64: Line 72:
 
       .{{lc:{{{3}}}}}{{{4|}}} }}
 
       .{{lc:{{{3}}}}}{{{4|}}} }}
 
   }}
 
   }}
}}]{{#if: {{{accessdate|}}} |
+
}}{{#ifexpr: {{{accessdate|0}}} and (not {{{year|0}}} or {{#time: Y | {{{accessdate|1900}}} }} = {{{year|0}}}) |
   . <span class="reference-accessdate">Retrieved {{{accessdate}}}</span>.
+
  {{#ifexpr: {{#time: xnU | {{{accessdate}}} }} >= 1407715200 |
}}</span><noinclude>
+
    <nowiki /> as of {{#time j M Y | {{{accessdate}}} }}]
 +
  | ] as of {{#time: j M Y | {{{accessdate}}} }} {{error-small|(This date is unavailable online&mdash;linked to current instead.)}} }}
 +
| {{#if: {{{year|}}} |
 +
   {{#ifexpr: {{{year}}} > 2014 |
 +
    <nowiki /> as of 1 Jul {{{year}}}]
 +
  | {{#ifexpr: {{{year}}} = 2014 |
 +
    <nowiki /> as of 11 Aug 2014]
 +
  | ] as of {{{year}}} <nowiki /> {{error-small|(This year is unavailable online&mdash;linked to current instead.)}} }} }}
 +
| ]
 +
}} }}</span><noinclude>
  
 
{{template sandbox notice}}
 
{{template sandbox notice}}
 
</noinclude>
 
</noinclude>

Revision as of 18:48, 1 March 2019

1 C.F.R. [1]