Difference between revisions of "Template:BMDb name"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Trim any leading or trailing spaces from unnamed parameter for ID. Add fix for empty parameter for name. Add template for external link not in English. Show error message if no ID in template.)
imported>Zyxw
(add trailing / in url to prevent redirect at website)
Line 1: Line 1:
 
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}}
 
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}}
  
| [http://www.bmdb.com.bd/person/{{Trim|{{{1|{{{id<includeonly>|</includeonly>}}}}}}}} {{#if:{{{2|{{{name<includeonly>|</includeonly>}}}}}}|{{{2|{{{name}}}}}}|{{PAGENAMEBASE}}}}] the Bangla Movie Database {{bn icon}}
+
| [http://www.bmdb.com.bd/person/{{Trim|{{{1|{{{id<includeonly>|</includeonly>}}}}}}}}/ {{#if:{{{2|{{{name<includeonly>|</includeonly>}}}}}}|{{{2|{{{name}}}}}}|{{PAGENAMEBASE}}}}] the Bangla Movie Database {{bn icon}}
  
 
| <span class="error">&#123;&#123;[[Template:BMDb name|BMDb name]]&#125;&#125; template missing ID.</span>{{Main other|[[Category:BMDb template with no id set]]}}
 
| <span class="error">&#123;&#123;[[Template:BMDb name|BMDb name]]&#125;&#125; template missing ID.</span>{{Main other|[[Category:BMDb template with no id set]]}}

Revision as of 19:46, 28 March 2019

{{{name}}} 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 name displays an external link to a page for a person 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 Sohana Saba, with article name as link text:

Template:Tlcw
Template:Tlcw

Usage with name parameter as link text:

Template:Tlcw
Template:Tlcw

Output:

URL:

http://www.bmdb.com.bd/person/755/

ID in Wikidata

Usage in the article Tareque Masud:

Template:Tlcw
Template:Tlcw

Output:

URL:

http://www.bmdb.com.bd/person/1133/

No ID in template or Wikidata

Usage:

Template:Tlcw

Output:

Tracking category

See also