Difference between revisions of "Template:BMDb title"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Remove unused remnants copied from Template:IMDb title including Wikidata property, section parameter, and search URL. Add template for external link not in English. Show error message if no ID in template)
imported>Zyxw
(When ID not specified, use Wikidata property P3821 if available and add edit link. Update category for pages where template is missing ID and not in Wikidata)
Line 1: Line 1:
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}}
+
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3821}}
  
| [http://www.bmdb.com.bd/movie/{{Trim|{{{1|{{{id<includeonly>|</includeonly>}}}}}}}}/ ''{{#if:{{{2|{{{title<includeonly>|</includeonly>}}}}}}|{{{2|{{{title}}}}}}|{{PAGENAMEBASE}}}}''] the Bangla Movie Database {{bn icon}}
+
| [http://www.bmdb.com.bd/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | movie/{{Trim|{{{1|{{{id}}}}}}}} | {{First word|{{#property:P3821}}|sep=,}} }}/ ''{{#if: {{{2|{{{title<includeonly>|</includeonly>}}}}}} | {{{2|{{{title}}}}}} | {{PAGENAMEBASE}} }}''] the Bangla Movie Database {{bn icon}}<includeonly>{{EditAtWikidata|pid=P3821|{{{1|{{{id|}}}}}}}}</includeonly>
  
| <span class="error">&#123;&#123;[[Template:BMDb title|BMDb title]]&#125;&#125; template missing ID.</span>{{Main other|[[Category:BMDb template with no id set]]}}
+
| <span class="error">&#123;&#123;[[Template:BMDb title|BMDb title]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{Main other|[[Category:BMDb template missing ID and not in Wikidata]]}}
  
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
 
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
 
</noinclude>
 
</noinclude>

Revision as of 01:18, 30 March 2019

{{{title}}} the Bangla Movie Database Template:Bn icon

50px Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

Template:BMDb title displays an external link to a page for a movie title in the Bangla Movie Database. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw

Using Wikidata property Template:Property:

Template:Tlcw
Template:Tlcw

Examples

ID in template

Usage in the article Krishnopokkho (film), with article name as link text:

Template:Tlcw
Template:Tlcw

Usage with title parameter as link text:

Template:Tlcw
Template:Tlcw

Output:

URL:

http://www.bmdb.com.bd/movie/523/

ID in Wikidata

Usage in the article Matir Moina:

Template:Tlcw
Template:Tlcw

Output:

URL:

http://www.bmdb.com.bd/movie/203/

No ID in template or Wikidata

Usage:

Template:Tlcw

Output:

Tracking category

See also