Difference between revisions of "Template:Filmjr/doc"
Line 151: | Line 151: | ||
"default": "0", | "default": "0", | ||
"suggested": true | "suggested": true | ||
}, | |||
"bw": { | |||
"type": "boolean" | |||
} | } | ||
}, | }, | ||
Line 175: | Line 178: | ||
"link", | "link", | ||
"produ", | "produ", | ||
"ani" | "ani", | ||
"bw" | |||
] | ] | ||
} | } |
Revision as of 15:08, 6 December 2021
Examples for Contributors
Unpopulated Examples
Ex 1
cut and past this example
{{Filmjr |title= |embid= |embsv= |heldby= |synop=0 |forma= |year= |up=|next=|prev=|step=1 |lang=English |pbrs= |len=00:00:00 |link= |bw= |ani= |ewid=|oembedid=|mdpi=|oclc= |dopt=2|athumb=}}
Ex 2
{{Filmjr|title=|oclc=|form=|year=|up=|next=|prev=|step=}}
Ex 3
For just a minimal embed video
{{Filmjr |title= |embid= |embsv= }}
HTML and CSS
Tpl output is wrapped in div.tplContainer. Then there is an initial p followed by div.tplFlex. After tplContainer an empty div div.tplEnd is placed on page.
the two ending divs before div.tplEnd end div.tplFlex and div.tplContainer respectively. </div><!-- /tplFlex --></div><!-- /tplContainer -->
- div.tplContainer
- p
- div.tplFlex
- small.jrdebug
- div.tplEnd
Templates
- Template:Ifdef
- Template:Ifwp
- Template:HeldbyUnpack
- Template:PubUnpack
- Template:DescUnpack
- Template:DispTitleUnpack
- Template:EmbedIdUnpack
- Template:DateUnpack
- Template:OCLCUnpack
- Transclusion Tpls (text in Example 1 is provided by Tclude2)
Templates to Maintain
When you update the fields, you need to update
- Template:Filmjr/Tclu - main Filmjr feeder
- Template:Filmjr/TcluIn - IUL Filmjr feeder
as appropriate
This is the main template to display Moving Image items. This template is used to describe a short film.
Parameter | Description | Type | Status | |
---|---|---|---|---|
title | title name | The title of the short film. If this short film's name was to be placed upon a marque or a printed program, how should it be rendered? Supply that here. This title will also be used to provide a display name for the page itself, and a title for embedded video if one is supplied.
| Page name | suggested |
year | year | Year released - uses the DateUnpack template
| Date | suggested |
form | forma | Format the film was primarily released upon (ie. 16mm) | Unknown | optional |
embid | embid | The video embed id (or code). This looks different for different services. In particular, for the IUL service (embsv=Insimple), embid is an 8 (ish?) alphanumeric code often found in the URL of the given item. The 8 character code IUL lists in their share widget is an oembed id. Archive.org calls this "Identifier." | Unknown | optional |
embsv | embsv | One of archiveorg, youtube, Insimple, Indiana, or vimeo. This field is probably case sensitive. Use Insimple for Indiana University Library. This code indicates the service hosting the video, and is used in conjunction with embid to generate the embedVideo code.
| Unknown | optional |
oembedid | oembedid | The video oembed id. For the IUL service (embsv=Insimple), embid is an 8 (ish?) alphanumeric code often found in the share widget. Potentially useful for both IUL and YouTube. | Unknown | optional |
In Collection | heldby | Is this film part of a collection or held by a library? Use '''IUL''' for the Indiana University Libraries Moving Image Archive, '''AVG''' for A/V Geeks, and '''PA''' for Prelinger Archives. Passed to template "HeldbyUnpack"
| String | optional |
desc | desc | A short description of the film
| String | suggested |
OCLC | oclc worldcat | The OCLC identifier, as used in the WorldCat database. It is optional. If given, it will link to it's WorldCat entity. This value is then from here fed into template [[Template:OCLCUnpack]]
| Number | optional |
lang | lang | Language the film primarily uses. English is provided as the default value.
| String | optional |
Publishers | pbrs | no description | String | optional |
step | step | An admin label used to track workflow. Ignore. | Unknown | deprecated |
next | next | If this film is episodic, the next episode is indicated here. Note no brackets | Page name | optional |
prev | prev | If this film is episodic, the preceding episode is given here. Note no brackets | Unknown | optional |
up | up | Parent page. Optional. If this film is episodic, the series overview is indicated here. Note no brackets
| Page name | optional |
link | link | A link to more information about the film. Optional.
| URL | optional |
produ | produ | Name of producer | String | deprecated |
Animation | ani | Animation? 1: yes 0:no
| Boolean | suggested |
bw | bw | no description | Boolean | optional |