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) (Created page with "{{#if:{{localurl:{{{case_name|}}}}}|''[[{{{case_name|}}}]]''|''{{{case_name|}}}''}}") |
Lost Student (talk | contribs) mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{# | <includeonly>{{#ifexist:{{{case_name|}}}|''[[{{{case_name|}}}]]''|''{{{case_name|}}}''}}</includeonly><noinclude><templatedata> | ||
{ | |||
"params": { | |||
"case_name": { | |||
"label": "Case name", | |||
"description": "The name of the case", | |||
"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.", | |||
"paramOrder": [ | |||
"case_name" | |||
] | |||
} | |||
</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.