Difference between revisions of "Template:BMDb title/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(create documention based on Template:BMDb name/doc)
 
imported>Zyxw
(updates for use of Wikidata)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 +
{{Uses Wikidata|P3821}}
 +
 +
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a page for a movie title in the Bangla Movie Database. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
  
 
== Usage ==
 
== Usage ==
The '''required''' parameter is the ID number. The template then uses the article title as the [[anchor text]]:
+
Unnamed parameters:
<pre>
+
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }}
* {{BMDb title | ID }}
+
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> }}
* {{BMDb title | id= ID }}
+
 
</pre>
+
Named parameters:
To have the link text be other than the article name, use second parameter:
+
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }}
<pre>
+
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> }}
* {{BMDb title | ID | Title }}
+
 
* {{BMDb title | id= ID | title= Title }}
+
Using [[Wikidata]] property {{Property|P3821}}:
</pre>
+
: {{tlcw|{{BASEPAGENAME}} }}
 +
: {{tlcw|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> }}
  
 
== Examples ==
 
== Examples ==
  
=== Unnamed parameters ===
+
=== ID in template ===
''URL:''
+
''Usage in the article [[Krishnopokkho (film)]], with article name as [[link text]]:''
: <kbd>[http://www.bmdb.com.bd/movie/523/ http://www.bmdb.com.bd/movie/{{Hilite|523}}/]</kbd>
+
: {{tlcw|a=1|{{BASEPAGENAME}} | 523 }}
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 523 }}
  
''Usage:''
+
''Usage with title parameter as link text:''
: {{tlcw|{{BASEPAGENAME}} | 523 | Krishnopokkho }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | 523 | Krishnopokkho }}
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 523 | title{{=}} Krishnopokkho }}
  
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}} | 523 | Krishnopokkho }}
+
:* {{{{BASEPAGENAME}} | 523 | Krishnopokkho }}
  
=== Named parameters ===
 
 
''URL:''
 
''URL:''
: <kbd>[http://www.bmdb.com.bd/movie/400/ http://www.bmdb.com.bd/movie/{{Hilite|400}}/]</kbd>
+
: <kbd>[http://www.bmdb.com.bd/movie/523/ http://www.bmdb.com.bd/movie/{{Hilite|523}}/]</kbd>
  
''Usage:''
+
=== ID in Wikidata ===
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 400 | title{{=}} Miya Bibi Raji }}
+
''Usage in the article [[Matir Moina]]:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} }}
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | title{{=}} Matir Moina }}
  
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}} | id= 400 | title= Miya Bibi Raji }}
+
:* {{{{BASEPAGENAME}} | 203 | Matir Moina }} [[File:Blue pencil.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/Q3204464#P3821 |Edit this at Wikidata]]
 +
 
 +
''URL:''
 +
: <kbd>[http://www.bmdb.com.bd/movie/203/ http://www.bmdb.com.bd/movie/{{Hilite|203}}/]</kbd>
  
=== No parameters ===
+
=== No ID in template or Wikidata ===
 
''Usage:''
 
''Usage:''
: {{tlcw|{{BASEPAGENAME}}}}
+
: {{tlcw|a=1|{{BASEPAGENAME}} }}
  
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}}<!-- -->}}
+
:* {{{{BASEPAGENAME}} }}
  
 
== Tracking category ==
 
== Tracking category ==
* {{clc|BMDb template with no id set}}
+
* {{clc|BMDb template missing ID and not in Wikidata}}
  
 
== See also ==
 
== See also ==
Line 53: Line 63:
 
[[Category:Film external link templates]]
 
[[Category:Film external link templates]]
 
[[Category:Templates that add a tracking category]]
 
[[Category:Templates that add a tracking category]]
 +
[[Category:External link templates using Wikidata]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 01:53, 30 March 2019

Template:Uses Wikidata

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:

  • Krishnopokkho at the Bangla Movie Database (in Bengali)Script error: No such module "EditAtWikidata".

URL:

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

ID in Wikidata

Usage in the article Matir Moina:

Template:Tlcw
Template:Tlcw

Output:

  • Matir Moina at the Bangla Movie Database (in Bengali)Script error: No such module "EditAtWikidata". Edit this at Wikidata

URL:

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

No ID in template or Wikidata

Usage:

Template:Tlcw

Output:

  • Template:PAGENAMEBASE at the Bangla Movie Database (in Bengali)Script error: No such module "EditAtWikidata".

Tracking category

See also