Difference between revisions of "Template:DNA India/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Smart LION
(Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This is a template to generate a link to th...')
 
imported>Plastikspork
(Deleted)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
  
This is a [[Help:Template|template]] to generate a link to the [[Daily News and Analysis|DNA India]] website for a given celebrity.
+
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a news page for a person at the [[DNA India]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
  
=== How to use? See here: ===
+
== Usage ==
<pre>
+
Unnamed parameters:
* {{DNA India|LINK|TITLE}}
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>ID</var> }}</code>
</pre>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }}</code>
  
To link a celebrity's page on DNA India, simply type the above template, where LINK is the link which is after dnaindia.com/topic/, and TITLE is the name of the celebrity.
+
Named parameters
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>ID</var> }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>ID</var> | name= <var>NAME</var> }}</code>
  
=== Example 1===
+
== Examples ==
In the article [[Akshay Kumar]], the following:
 
  
<pre>
+
=== Unnamed parameters ===
* {{DNA India|akshay-kumar|Akshay Kumar}}
+
''Usage:''
</pre>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | akshay-kumar | Akshay Kumar }}</code>
  
can be used to generate the following:
+
''Output:''
<br><br>
+
:* {{{{BASEPAGENAME}} | akshay-kumar | Akshay Kumar }}
:{{DNA India|link=akshay-kumar|title=Akshay Kumar}}
 
  
=== Example 2===
+
''URL:''
In the article [[Sugandha Garg]], the following:
+
: <kbd>[https://www.dnaindia.com/topic/akshay-kumar https://www.dnaindia.com/topic/{{Hilite|akshay-kumar}}]</kbd>
  
<pre>
+
=== Named parameters ===
* {{DNA India|sugandha-garg|Sugandha Garg}}
+
''Usage:''
</pre>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= sugandha-garg | name= Sugandha Garg }}</code>
  
can be used to generate the following:
+
''Output:''
<br><br>
+
:* {{{{BASEPAGENAME}} | id= sugandha-garg | name= Sugandha Garg }}
:{{DNA India|link=sugandha-garg|title=Sugandha Garg}}
 
  
<includeonly>
+
''URL:''
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
: <kbd>[https://www.dnaindia.com/topic/sugandha-garg https://www.dnaindia.com/topic/{{Hilite|sugandha-garg}}]</kbd>
</includeonly>
+
 
 +
=== No ID in template ===
 +
''Usage:''
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 +
 
 +
''Output:''
 +
:* {{ {{BASEPAGENAME}} }}
 +
 
 +
== See also ==
 +
* {{tl|Bollywood Hungama person}}
 +
 
 +
<includeonly>{{Sandbox other||
 +
<!-- CATEGORIES HERE, THANKS -->
 +
[[Category:Film external link templates]]
 +
[[Category:People and person external link templates]]
 +
}}</includeonly>

Latest revision as of 13:14, 10 September 2020

Template:DNA India displays an external link to a news page for a person at the DNA India website. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{DNA India | ID }}
{{DNA India | ID | NAME }}

Named parameters

{{DNA India | id= ID }}
{{DNA India | id= ID | name= NAME }}

Examples

Unnamed parameters

Usage:

* {{DNA India | akshay-kumar | Akshay Kumar }}

Output:

URL:

https://www.dnaindia.com/topic/akshay-kumar

Named parameters

Usage:

* {{DNA India | id= sugandha-garg | name= Sugandha Garg }}

Output:

URL:

https://www.dnaindia.com/topic/sugandha-garg

No ID in template

Usage:

* {{DNA India}}

Output:

See also