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.
Lost Student (talk | contribs) mNo edit summary |
Lost Student (talk | contribs) 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", | ||
" | "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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Case name | case_name | The name of the case
| String | required |
Usage:
{{Case Name|case_name=Shuey v. United States}}
will return
{{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.