Difference between revisions of "Template:Bollywood Hungama person"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (update tracking)
imported>Zyxw
(add parameter for old numeric id (see example in documentation))
Line 9: Line 9:
 
   }}
 
   }}
  
| {{#if: {{#property:P7923}}
+
| {{#if: {{{old_id|}}}
  
   | [https://www.bollywoodhungama.com/celebrity/{{First word|1={{#property:P7923}}|sep=,}}/ {{#if: {{{2|{{{title|{{{name<includeonly>|</includeonly>}}}}}}}}} | {{{2|{{{title|{{{name}}}}}}}}} | {{PAGENAMEBASE}} }}] at [[Bollywood Hungama]]{{EditAtWikidata|pid=P7923}}
+
   | [https://web.archive.org/web/20120930000000/http://www.bollywoodhungama.com/celebrities/filmography/{{{old_id}}}/index.html {{#if: {{{name|}}} | {{{name}}} | {{PAGENAMEBASE}} }}] at [[Bollywood Hungama]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Bollywood Hungama person template using numeric ID]]}}
  
   | {{#if: {{#property:P3910}}
+
   | {{#if: {{#property:P7923}}
  
     | [https://www.bollywoodhungama.com/celebritymicro/index/id/{{First word|1={{#property:P3910}}|sep=,}} {{#if: {{{2|{{{title|{{{name|}}}}}}}}} | {{{2|{{{title|{{{name}}}}}}}}} | {{PAGENAMEBASE}} }}] at [[Bollywood Hungama]]{{EditAtWikidata|pid=P3910}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Bollywood Hungama person template using numeric ID]]}}
+
     | [https://www.bollywoodhungama.com/celebrity/{{First word|1={{#property:P7923}}|sep=,}}/ {{#if: {{{2|{{{title|{{{name<includeonly>|</includeonly>}}}}}}}}} | {{{2|{{{title|{{{name}}}}}}}}} | {{PAGENAMEBASE}} }}] at [[Bollywood Hungama]]{{EditAtWikidata|pid=P7923}}
  
     | <span class="error">&#123;&#123;[[Template:Bollywood Hungama person|Bollywood Hungama person]]&#125;&#125; template missing ID and not present in Wikidata.</span>
+
     | {{#if: {{#property:P3910}}
  
 +
      | [https://www.bollywoodhungama.com/celebritymicro/index/id/{{First word|1={{#property:P3910}}|sep=,}} {{#if: {{{2|{{{title|{{{name|}}}}}}}}} | {{{2|{{{title|{{{name}}}}}}}}} | {{PAGENAMEBASE}} }}] at [[Bollywood Hungama]]{{EditAtWikidata|pid=P3910}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Bollywood Hungama person template using numeric ID]]}}
 +
 +
      | <span class="error">&#123;&#123;[[Template:Bollywood Hungama person|Bollywood Hungama person]]&#125;&#125; template missing ID and not present in Wikidata.</span>
 +
 +
      }}
 
     }}
 
     }}
 
   }}
 
   }}

Revision as of 02:37, 23 August 2020

{{{name}}} at Bollywood Hungama

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:Bollywood Hungama person displays an external link to a page for a person 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 celebrity on the Bollywood Hungama website that identifies the absolute Uniform Resource Identifier for a celebrity. An optional second parameter, NAME, can be used to specify the anchor text.

Unnamed parameters:

{{Bollywood Hungama person | ID }}
{{Bollywood Hungama person | ID | NAME }}

Named parameters

{{Bollywood Hungama person | id= ID }}
{{Bollywood Hungama person | id= ID | name= NAME }}
{{Bollywood Hungama person | old_id= ID }}
{{Bollywood Hungama person | old_id= ID | name= NAME }}

Using Wikidata property Template:Property or Template:Property:

{{Bollywood Hungama person}}
{{Bollywood Hungama person | name= NAME }}

Examples

Unnamed parameters

Usage:

* {{Bollywood Hungama person | alia-bhatt | Alia Bhatt }}
* {{Bollywood Hungama person | 85672 | Alia Bhatt }}

Output:

Current URL:

https://www.bollywoodhungama.com/celebrity/alia-bhatt/filmography/

Former URL:

https://www.bollywoodhungama.com/celebritymicro/films/id/85672 (archived 26 March 2016)

Named parameters

Usage:

* {{Bollywood Hungama person | id= ranvir-shorey | name= Ranvir Shorey }}
* {{Bollywood Hungama person | id= 5943 | name= Ranvir Shorey }}
* {{Bollywood Hungama person | old_id= 12728 | name= Ranvir Shorey }}

Output:

Current URL:

https://www.bollywoodhungama.com/celebrity/ranvir-shorey/filmography/

Former URLs:

https://www.bollywoodhungama.com/celebritymicro/films/id/5943 (archived 18 October 2015)
http://www.bollywoodhungama.com/celebrities/filmography/12728/index.html (archived 16 October 2011)

No ID in template or Wikidata

Usage:

* {{Bollywood Hungama person}}

Output:

Tracking categories

See also