Template:Bharatdata URL/doc: Difference between revisions
(Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Bharatdata (see Bharatpedia:Bharatdata) --> == Usage == Converts URLs from Bharatdata of the format <nowiki>http://</nowiki> to <nowiki>http://</nowiki> so that they can be used to generate external links. {{tlx|1=Bharatdata URL|2=1=''URL''}} {{tlx|1=Bharatdata URL|2=P=''Bharatdata ID or title of URL property''|3=from=''Bharatdata ID of source...") |
(→Examples: Clean up) |
||
Line 13: | Line 13: | ||
== Examples == | == Examples == | ||
{{tlx|1=Bharatdata URL|2=1=<nowiki>{{#property:P1630|from=p830}}</nowiki>}} → {{ | {{tlx|1=Bharatdata URL|2=1=<nowiki>{{#property:P1630|from=p830}}</nowiki>}} → {{Bharatdata URL|1={{#property:P1630|from=p830}}}} | ||
{{tlx|1=Bharatdata URL|2=P=formatter URL|3=from=P830}} → {{Bharatdata URL|P=formatter URL|from=P830}} | {{tlx|1=Bharatdata URL|2=P=formatter URL|3=from=P830}} → {{Bharatdata URL|P=formatter URL|from=P830}} |
Latest revision as of 09:57, 30 October 2024
![]() | 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