Template:YYY0s in British law category header/doc

To create a Category:YYY0s in British law, e.g. Category:1840s in British law

No parameters are needed, because the year is extracted from the category's title.