Template:Code of Federal Regulations/testcases

Testing main template
For every example (two lines), first is the main template, the second is the sandbox template.

No part argument provided

 * &mdash; title only


 * &mdash; title+subtitle


 * &mdash; title+volume


 * &mdash; title+chapter


 * &mdash; title+chapter+subchapter

Title XXX CFR Part YYY exists as a Wikipedia article

 * &mdash; title+part only


 * &mdash; title+part+section (and no subpart)


 * &mdash; title+part+subpart and no section


 * &mdash; both subpart and section given, so section should override in link

Title XXX CFR Part YYY doesn't exist as a Wikipedia article

 * &mdash; title+part only


 * &mdash; title+part+volume (where the part is split across multiple volumes)


 * &mdash; title+part+section (and no subpart)


 * &mdash; title+part+subpart and no section


 * &mdash; both subpart and section given, so section should override in link

Appendices and other special sections

 * &mdash; title+part+section containing a dash


 * &mdash; title+part+appendix


 * &mdash; title+part+special section

Deprecated unusual prefixed section IDs
Displays as it did before but now links only to the part.


 * &mdash; oddly prefixed section given


 * &mdash; subpart and oddly prefixed section given