Difference between revisions of "Template:BCDB title"
imported>Zyxw m (Zyxw moved page Template:Bcdb title to Template:BCDB title over redirect: caps as shown at website) |
imported>Zyxw (When ID not specified, use Wikidata property P4933 if available and add edit link. Display message if no ID and no Wikidata. Add fix for empty name parameter.) |
||
| Line 1: | Line 1: | ||
| − | [https://www.bcdb.com/bcdb/cartoon.cgi?film={{ | + | {{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} {{#property:P4933}} |
| + | |||
| + | | [https://www.bcdb.com/bcdb/cartoon.cgi?film={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|{{#property:P4933}}|sep=,}} }} {{#if:{{{quotes|}}}|"|''}}{{#if: {{{2|{{{title<includeonly>|</includeonly>}}}}}} | {{{2|{{{title}}}}}} | {{PAGENAMEBASE}} }}{{#if:{{{quotes|}}}|"|''}}] at [[The Big Cartoon DataBase]]<includeonly>{{EditAtWikidata|pid=P4933|{{{1|{{{id|}}}}}}}}</includeonly> | ||
| + | |||
| + | | <span class="error">{{[[Template:BCDB title|BCDB title]]}} template missing ID and not present in Wikidata.</span> | ||
| + | |||
| + | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 04:28, 30 July 2018
{{{title}}} at The Big Cartoon DataBase
Template:Template redirect Template:Uses Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
Template:BCDB title displays an external link to a film entry in The Big Cartoon DataBase (BCDB). It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
{{BCDB title | ID }}{{BCDB title | ID | TITLE }}
Named parameters:
{{BCDB title | id= ID }}{{BCDB title | id= ID | title= TITLE }}
Using Wikidata property P4933:
{{BCDB title}}{{BCDB title | title= TITLE }}
Where TITLE is the hypertext, and ID is the number highlighted in these two sample URLs:
https://www.bcdb.com/bcdb/cartoon.cgi?film=25028 https://www.bcdb.com/cartoon/25028-Antz
As with the IMDb title template, the title defaults to the current article title.
Typically this is a list item in the external links section (even if there is only one link), so you should add * in front of the template.
- Quotation marks for short films
The template's default italics for titles should be changed to quotation marks for short works (including episode titles of TV series), per MOS:TITLES. This is done with |quotes=yes (or any other value for that parameter, e.g. |quotes=y or |quotes=true.
Examples
Feature or series title
URLs:
- https://www.bcdb.com/bcdb/cartoon.cgi?film=79999
- https://www.bcdb.com/cartoon/79999-Punk-Farm
Usage:
* {{BCDB title | 79999 | Punk Farm }}
Output:
- Punk Farm at The Big Cartoon DataBaseScript error: No such module "EditAtWikidata".
Short film or episode titles
URLs:
- https://www.bcdb.com/bcdb/cartoon.cgi?film=3168
- https://www.bcdb.com/cartoon/3168-Cue-Ball-Cat
Usage:
* {{BCDB title | id= 3168 | title= Cue Ball Cat | quotes= y }}
Output:
- "Cue Ball Cat" at The Big Cartoon DataBaseScript error: No such module "EditAtWikidata".
No ID in template or Wikidata
Usage:
{{BCDB title}}
Output:
- Template:PAGENAMEBASE at The Big Cartoon DataBaseScript error: No such module "EditAtWikidata".
See also
| The above documentation is transcluded from Template:BCDB title/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |