Template:Usc

From Soma-notes
Revision as of 05:21, 8 March 2011 by Slyons (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{#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