Template:Infobox Case Brief/Case Video: Difference between revisions
Lost Student (talk | contribs) mNo edit summary |
Lost Student (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><li>{{#ev:{{{service|}}}|{{{id|}}}| | <includeonly><li>{{#ev:{{{service|}}}|{{{id|}}}||left|||start={{{start|}}}&end={{{end|}}}}}</li></includeonly> | ||
<noinclude><templatedata> | <noinclude><templatedata> | ||
{ | { | ||
Line 9: | Line 9: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
"start": { | "start": { | ||
Line 62: | Line 40: | ||
} | } | ||
}, | }, | ||
"description": " | "description": "Insert this subtemplate into the case_text_links variable in [[Template:Infobox Case Brief]] to embed a video in a case brief.", | ||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
"service", | "service", | ||
"id", | "id", | ||
"start", | "start", | ||
"end" | "end" |
Revision as of 01:07, October 12, 2023
Insert this subtemplate into the case_text_links variable in [[Template:Infobox Case Brief]] to embed a video in a case brief.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Streaming Service | service | The streaming video provider
| String | required |
Video ID | id | The video ID. Can be found in the video url. For example, the id of the video at https://www.youtube.com/watch?v=34976SngvrY is "34976SngvrY". For some services, insert the url as the id.
| String | required |
Start Time (seconds) | start | Time to start playing the video | Number | optional |
End Time (seconds) | end | Time to end playing the video | Number | optional |
Usage
This subtemplate should look like:
{{Infobox Case Brief/Case Video |service= |id=}}
"start" and "end" may be added as parameters if desired.
This subtemplate may be repeated, one after another, following the equals sign of the case_videos
variable for each video.
This template is inserted in Template:Infobox Case Brief like this:
{{Infobox Case Brief | court = | citation = | date = | subject = | appealed_from = | overturned = | partially_overturned = | reaffirmed = | questioned = | criticized = | distinguished = | cited = | followed = | related = | facts = | procedural_history = | issues = | arguments = | holding = | judgment = | reasons = | rule = | comments = | case_text_links ={{Infobox Case Brief/Case Text Link |link= www.example.com/First_URL |case_text_source= Justia}} |case_videos ={{Infobox Case Brief/Case Video |service=youtube |id= NDXma8D6UEA}} | Court_opinion_parts = {{Court opinion part | opinion_type = | written_by = | joined_by = }} }}