Difference between revisions of "Template:Bollywood Hungama movie"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (update tracking)
imported>Zyxw
(move old numeric id link to separate parameter)
Line 3: Line 3:
 
| {{#if: {{Isnumeric| {{{1|{{{id}}}}}} }}
 
| {{#if: {{Isnumeric| {{{1|{{{id}}}}}} }}
  
   | {{#ifexpr: {{{1|{{{id|}}}}}} < 14800
+
   | [https://www.bollywoodhungama.com/moviemicro/cast/id/{{Trim| {{{1|{{{id}}}}}} }} ''{{#if: {{{2|{{{title<includeonly>|</includeonly>}}}}}} | {{{2|{{{title}}}}}} | {{PAGENAMEBASE}} }}''] at [[Bollywood Hungama]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Bollywood Hungama movie template using numeric ID]]}}
  
    | [https://web.archive.org/web/20120930000000/http://www.bollywoodhungama.com/movies/cast/{{Trim| {{{1|{{{id}}}}}} }}/index.html ''{{#if: {{{2|{{{title<includeonly>|</includeonly>}}}}}} | {{{2|{{{title}}}}}} | {{PAGENAMEBASE}} }}''] at [[Bollywood Hungama]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Bollywood Hungama movie template using numeric ID]]}}
+
  | [https://www.bollywoodhungama.com/movie/{{Trim| {{{1|{{{id}}}}}} }}/cast/ ''{{#if: {{{2|{{{title<includeonly>|</includeonly>}}}}}} | {{{2|{{{title}}}}}} | {{PAGENAMEBASE}} }}''] at [[Bollywood Hungama]]
  
    | [https://www.bollywoodhungama.com/moviemicro/cast/id/{{Trim| {{{1|{{{id}}}}}} }} ''{{#if: {{{2|{{{title<includeonly>|</includeonly>}}}}}} | {{{2|{{{title}}}}}} | {{PAGENAMEBASE}} }}''] at [[Bollywood Hungama]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Bollywood Hungama movie template using numeric ID]]}}
+
  }}
  
    }}
+
| {{#if: {{{old_id|}}}
  
   | [https://www.bollywoodhungama.com/movie/{{Trim| {{{1|{{{id}}}}}} }}/cast/ ''{{#if: {{{2|{{{title<includeonly>|</includeonly>}}}}}} | {{{2|{{{title}}}}}} | {{PAGENAMEBASE}} }}''] at [[Bollywood Hungama]]
+
   | [https://web.archive.org/web/20120930000000/http://www.bollywoodhungama.com/movies/cast/{{{old_id}}}/index.html ''{{#if: {{{2|{{{title<includeonly>|</includeonly>}}}}}} | {{{title}}} | {{PAGENAMEBASE}} }}''] at [[Bollywood Hungama]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Bollywood Hungama movie template using numeric ID]]}}
 +
 
 +
  | <span class="error">&#123;&#123;[[Template:Bollywood Hungama movie|Bollywood Hungama movie]]&#125;&#125; template missing ID.</span>
  
 
   }}
 
   }}
 
| <span class="error">&#123;&#123;[[Template:Bollywood Hungama movie|Bollywood Hungama movie]]&#125;&#125; template missing ID.</span>
 
  
 
}}<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:59, 23 August 2020

{{{title}}} at Bollywood Hungama

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

Template:Bollywood Hungama movie displays an external link to a page for a film title at the Bollywood Hungama website. It is intended for use in the external links section of an article.

Usage

The template has two parameters, one of which is optional. The required parameter is the ID, which is the unique code in the URL of the film on the Bollywood Hungama website that identifies the absolute Uniform Resource Identifier for a film. An optional second parameter, TITLE, can be used to specify the anchor text.

Unnamed parameters:

{{Bollywood Hungama movie | ID }}
{{Bollywood Hungama movie | ID | TITLE }}

Named parameters

{{Bollywood Hungama movie | id= ID }}
{{Bollywood Hungama movie | id= ID | title= TITLE }}
{{Bollywood Hungama movie | old_id= ID }}
{{Bollywood Hungama movie | old_id= ID | title= TITLE }}

Examples

Unnamed parameters

Usage:

* {{Bollywood Hungama movie | bbuddah-hoga-terra-baap | Bbuddah…Hoga Terra Baap }}
* {{Bollywood Hungama movie | 542573 | Bbuddah…Hoga Terra Baap }}

Output:

Current URL:

https://www.bollywoodhungama.com/movie/bbuddah-hoga-terra-baap/cast/

Former URLs:

https://www.bollywoodhungama.com/moviemicro/cast/id/542573 (archived 27 August 2016)
http://www.bollywoodhungama.com/movies/cast/14428/index.html (archived 4 December 2011)

Named parameters

Usage:

* {{Bollywood Hungama movie | id= tulsi-3 | title= Tulsi }}
* {{Bollywood Hungama movie | id= 540512 | title= Tulsi }}
* {{Bollywood Hungama movie | old_id= 13803 | title= Tulsi }}

Output:

Current URL:

https://www.bollywoodhungama.com/movie/tulsi-3/cast/

Former URLs:

https://www.bollywoodhungama.com/moviemicro/cast/id/540512 (archived 24 September 2015)
http://www.bollywoodhungama.com/movies/cast/13803/index.html (archived 26 November 2011)

No ID in template

Usage:

* {{Bollywood Hungama movie}}

Output:

Tracking categories

See also