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

Template:Case Name: Difference between revisions

From wikilawschool.net. Wiki Law School does not provide legal advice. For educational purposes only.
mNo edit summary
mNo edit summary
 
Line 3: Line 3:
"params": {
"params": {
"case_name": {
"case_name": {
"label": "Case name",
"description": "The name of the case",
"description": "The name of the case",
"example": "Shuey v. United States",
"example": "Shuey v. United States",
"required": true,
"type": "string",
"type": "string"
"required": true
}
}
},
},
"description": "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."
"description": "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.",
"paramOrder": [
"case_name"
]
}
}
</templatedata>{{Documentation}}</noinclude>
</templatedata>{{Documentation}}</noinclude>

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

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.

Template parameters

ParameterDescriptionTypeStatus
Case namecase_name

The name of the case

Example
Shuey v. United States
Stringrequired

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.