Template:CodeFedReg/testcases

From blackwiki
< Template:CodeFedReg
Revision as of 17:39, 20 April 2012 by imported>Int21h (sandbox)
Jump to navigation Jump to search

Testing main template

Title exists on Wikipedia

{{CodeFedReg/sandbox|47}} — title only
47 C.F.R. [1]

Title XXX CFR Part YYY exists as a Wikipedia article

{{CodeFedReg/sandbox|47|15}} — title+part only
47 C.F.R. 15
{{CodeFedReg/sandbox|47|15|239}} — title+part+section (and no subpart)
47 C.F.R. 15.239
{{CodeFedReg/sandbox|47|15|subpart=C}} — title+part+subpart and no section
47 C.F.R. 15
{{CodeFedReg/sandbox|47|15|subpart=C|239}} — both subpart and section given, so section should override in link
47 C.F.R. 15.239

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

{{CodeFedReg/sandbox|47|73}} — title+part only
47 C.F.R. 73
{{CodeFedReg/sandbox|47|73|1650}} — title+part+section (and no subpart)
47 C.F.R. 73.1650
{{CodeFedReg/sandbox|47|73|subpart=H}} — title+part+subpart and no section
47 C.F.R. 73
{{CodeFedReg/sandbox|47|73|subpart=H|1650}} — both subpart and section given, so section should override in link
47 C.F.R. 73.1650

No part of title exists on Wikipedia

{{CodeFedReg/sandbox|37}} — title only
37 C.F.R. [2]
{{CodeFedReg/sandbox|37|401}} — title+part only
37 C.F.R. 401
{{CodeFedReg/sandbox|37|401|16}} — title+part+section (and no subpart)
37 C.F.R. 401.16
{{CodeFedReg/sandbox|34|200|subpart=C}} — title+part+subpart and no section
34 C.F.R. 200
{{CodeFedReg/sandbox|34|200|subpart=C|83}} — both subpart and section given, so section should override in link
34 C.F.R. 200.83

Unusual prefixed section IDs

{{CodeFedReg/sandbox|14|91|prefix=SFAR|60}} — oddly prefixed section given
14 C.F.R. 91.60
{{CodeFedReg/sandbox|14|91|subpart=L|prefix=App|G}} — subpart and oddly prefixed section given
14 C.F.R. 91.G