Template:Bharatdata URL/doc
![]() | This is a documentation subpage for Template:Bharatdata URL. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Converts URLs from Bharatdata of the format http:// to http:// so that they can be used to generate external links.
{{Bharatdata URL|1=URL}}
{{Bharatdata URL|P=Bharatdata ID or title of URL property|from=Bharatdata ID of source entity}}
- Parameter
|1=
, URL, is optional. If included, the specified URL will be converted to http://, and all other parameters will be ignored. - Parameter
|P=
, if specified, is the ID or name of the property that contains the URL. If it is not specified, it defaults to (P856). - Parameter
|from=
, if specified, is the ID of the Bharatdata entity to fetch the URL property from. If it is not specified, it defaults to the current page.
Examples
{{Bharatdata URL|1={{#property:P1630|from=p830}}}}
→ {{#property:P1630|from=p830}}
{{Bharatdata URL|P=formatter URL|from=P830}}
→ {{#property:formatter URL|from=P830}}
{{Bharatdata URL|P=P1630|from=P830}}
→ {{#property:P1630|from=P830}}
{{Bharatdata URL|from=Q328}}
→ {{#property:P856|from=Q328}}
{{Bharatdata URL}}
(when placed on https://en.bharatpedia.org/wiki/English_Bharatpedia) → {{#property:P856|from=Q328}}
{{Bharatdata URL|1={{#property:P1630|from=p830}}|P=P856|from=Q328}}
→ {{#property:P1630|from=p830}} (|P=
and |from=
are ignored)
See also
- {{bharatdata}}. If
|from=
is set, then the output of this template is identical to{{bharatdata|property|raw|fromEntity|P856}}
- {{Bharatdata ID line}}
- {{Bharatdata property link}}
- {{Bharatdata entity link}}
- Meta:Bharatdata/Notes/Inclusion syntax v0.4