Template:Usc

From Soma-notes
Jump to navigation Jump to search

{{#ifeq:Template|File||{{#if:Note: The full template is only visible on transclusion and hidden from view on this page.||}}}}

Usage

This template uses Cornell's database.

You enter: {{UnitedStatesCode|x|y}} or {{usc|x|y}}
Template returns: {{#if:|{{{pipe}}}|{{#switch:x| 26 = 26 U.S.C. |x U.S.C.}} § y{{#if:|({{{3}}}){{#if:|({{{4}}}){{#if:|({{{5}}}){{#if:|({{{6}}}){{#if:|({{{7}}}){{#if:|({{{8}}})|}}|}}|}}|}}|}}|}}}}

You may also use this to specify a range of sections:

You enter: {{UnitedStatesCode|x|y|z}} or {{usc|x|y|z}}
Template returns: {{#if:|{{{pipe}}}|{{#switch:x| 26 = 26 U.S.C. |x U.S.C.}} § y{{#if:z|(z){{#if:|({{{4}}}){{#if:|({{{5}}}){{#if:|({{{6}}}){{#if:|({{{7}}}){{#if:|({{{8}}})|}}|}}|}}|}}|}}|}}}}

Please note that all titles have Wikipedia articles and the template will link to the Wikipedia article.

Examples