This site is a developmental version of Wiki Law School. To go to the production site: www.wikilawschool.org

Template:Case Name/doc: Difference between revisions

From wikilawschool.net. Wiki Law School does not provide legal advice. For educational purposes only.
(Created page with "This template will check to see if a page (i.e. a case brief) exists for the given case name. If the page exists, it will return an italicized link to that page. If not, it wi...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
This template will check to see if a page (i.e. a case brief) exists for the given case name. If the page exists, it will return an italicized link to that page. If not, it will return an italicized case name.
Usage:
Usage:


Line 16: Line 14:


{{Case Name|case_name=Not a page}}
{{Case Name|case_name=Not a page}}
'''Note''': this template uses a parameter that is considered expensive, and is thus limited to 100 instances per page. If you already know that the page exists in the wiki for a given case, it is probably better to manually link and italicize it.

Latest revision as of 18:40, February 11, 2023

Usage:

{{Case Name|case_name=Shuey v. United States}}

will return

Shuey v. United States


{{Case Name|case_name=Not a page}}

will return

Not a page

Note: this template uses a parameter that is considered expensive, and is thus limited to 100 instances per page. If you already know that the page exists in the wiki for a given case, it is probably better to manually link and italicize it.