Difference between revisions of "Template:CodeFedReg/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Gurnec
(more fixes)
imported>Gurnec
(reworked a few parts to make troubleshooting easier)
Line 16: Line 16:
 
     sp
 
     sp
 
   | pt
 
   | pt
   }}}}}}}}{{{1}}}.0.{{lc:{{{2}}}}}{{#if: {{{appendix|}}} |
+
   }} }} }} }}{{{1}}}.0.{{lc:{{{2}}}}}{{#if: {{{appendix|}}} |
 
     {{{appendix}}}
 
     {{{appendix}}}
 
   | {{#if: {{{prefix|}}}  |
 
   | {{#if: {{{prefix|}}}  |
Line 23: Line 23:
 
   | {{#if: {{{subpart|}}} |
 
   | {{#if: {{{subpart|}}} |
 
     .{{lc:{{{subpart}}}}}
 
     .{{lc:{{{subpart}}}}}
   }}}}}}}}{{#ifexist: Title {{{1}}} CFR Part {{lc:{{{2}}}}} |
+
   }} }} }} }}
  | {{#if: {{{subtitle|}}}{{{volume|}}}{{{chapter|}}}{{{subpart|}}}{{{prefix|}}} |
 
    | {{#if: {{{3|}}} |
 
      <nowiki /> &sect; }}
 
    }}{{lc:{{{2}}}}}
 
  }}
 
 
|
 
|
 
   [[Title {{{1|1}}} of the Code of Federal Regulations|{{{1|1}}} C.F.R.]] [https://www.ecfr.gov/cgi-bin/text-idx?tpl=/ecfrbrowse/Title{{padleft:{{{1|1}}}|2}}/{{{1|1}}}{{#if: {{{chapter|}}} |
 
   [[Title {{{1|1}}} of the Code of Federal Regulations|{{{1|1}}} C.F.R.]] [https://www.ecfr.gov/cgi-bin/text-idx?tpl=/ecfrbrowse/Title{{padleft:{{{1|1}}}|2}}/{{{1|1}}}{{#if: {{{chapter|}}} |
Line 40: Line 35:
 
   |
 
   |
 
     tab_02
 
     tab_02
   }}}}}}.tpl
+
   }} }} }}.tpl
 
}}{{#if: {{{subtitle|}}}{{{volume|}}}{{{chapter|}}}{{{subpart|}}}{{{prefix|}}} |
 
}}{{#if: {{{subtitle|}}}{{{volume|}}}{{{chapter|}}}{{{subpart|}}}{{{prefix|}}} |
   {{#if: {{{subtitle|}}} |
+
   {{#if: {{{2|}}} |
     <nowiki /> Subtitle {{uc:{{{subtitle}}}}} }}
+
    {{#ifexist: Title {{{1}}} CFR Part {{lc:{{{2}}}}} |
  {{#if: {{{volume|}}} |
+
      | <nowiki /> {{lc:{{{2}}}}} }}
     <nowiki /> Volume {{{volume}}} }}
+
  }}{{#if: {{{subtitle|}}} |
  {{#if: {{{chapter|}}} |
+
     <nowiki /> Subtitle {{uc:{{{subtitle}}}}}
     <nowiki /> Chapter {{uc:{{{chapter}}}}} }}
+
  }}{{#if: {{{volume|}}} |
  {{#if: {{{subchapter|}}} |
+
     <nowiki /> Volume {{{volume}}}
     <nowiki /> Subchapter {{uc:{{{subchapter}}}}} }}
+
  }}{{#if: {{{chapter|}}} |
  {{#if: {{{subpart|}}} |
+
     <nowiki /> Chapter {{uc:{{{chapter}}}}}
     <nowiki /> Subpart {{uc:{{{subpart}}}}} }}
+
  }}{{#if: {{{subchapter|}}} |
  {{#if: {{{prefix|}}} |
+
     <nowiki /> Subchapter {{uc:{{{subchapter}}}}}
 +
  }}{{#if: {{{subpart|}}} |
 +
     <nowiki /> Subpart {{uc:{{{subpart}}}}}
 +
  }}{{#if: {{{prefix|}}} |
 
     <nowiki /> {{{prefix}}} {{{3|}}}
 
     <nowiki /> {{{prefix}}} {{{3|}}}
 
   | {{#if: {{{3|}}} |
 
   | {{#if: {{{3|}}} |
 
     <nowiki /> &sect;{{lc:{{{3}}}}}{{{4|}}}
 
     <nowiki /> &sect;{{lc:{{{3}}}}}{{{4|}}}
   }}}}
+
   }} }}
 
|
 
|
   {{#if: {{{3|}}} |
+
   {{#if: {{{2|}}} |
     <nowiki /> .{{lc:{{{3}}}}}{{{4|}}} }}
+
     {{#ifexist: Title {{{1}}} CFR Part {{lc:{{{2}}}}} |
 +
      {{#if: {{3|}} |
 +
        <nowiki /> <nowiki /> }}
 +
      | <nowiki /> {{#if: {{3|}} | &sect;}}{{lc:{{{2}}}}}
 +
    }}{{#if: {{{3|}}} |
 +
      .{{lc:{{{3}}}}}{{{4|}}} }}
 +
  }}
 
}}{{#if: {{{appendix_desc|}}} |
 
}}{{#if: {{{appendix_desc|}}} |
 
   <nowiki /> {{{appendix_desc}}} }}]</span><noinclude>
 
   <nowiki /> {{{appendix_desc}}} }}]</span><noinclude>

Revision as of 00:04, 27 February 2019

1 C.F.R. [1]