Template:Wikidata URL/doc
| This is a documentation subpage for Template:Wikidata URL. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
Converts URLs from Wikidata of the format http:// to http:// so that they can be used to generate external links.
{{Wikidata URL|1=URL}}
{{Wikidata URL|P=Wikidata ID or title of URL property|from=Wikidata 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 official website (P856). - Parameter
|from=, if specified, is the ID of the Wikidata entity to fetch the URL property from. If it is not specified, it defaults to the current page.
Examples
{{Wikidata URL|1={{#property:P1630|from=p830}}}} → https://eol.org/pages/$1
{{Wikidata URL|P=formatter URL|from=P830}} → https://eol.org/pages/$1
{{Wikidata URL|P=P1630|from=P830}} → https://eol.org/pages/$1
{{Wikidata URL|from=Q328}} → https://en.wikipedia.org/
{{Wikidata URL}} (when placed on https://en.wikipedia.org/wiki/English_Wikipedia) → https://en.wikipedia.org/
{{Wikidata URL|1={{#property:P1630|from=p830}}|P=P856|from=Q328}} → https://eol.org/pages/$1 (|P= and |from= are ignored)
See also
- {{wikidata}}. If
|from=is set, then the output of this template is identical to{{wikidata|property|raw|fromEntity|P856}} - {{Wikidata ID line}}
- {{Wikidata property link}}
- {{Wikidata entity link}}
- Meta:Wikidata/Notes/Inclusion syntax v0.4
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.