Template:Scholia/doc: Difference between revisions
Added note about usage, per my talk page comment |
imported>Voidxor m Rm duplicate links. |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]). --> | ||
{{ | {{High-use}} | ||
{{Tlf|Scholia}} produces a box with a link from a Wikipedia article to the [[:wikidata:Wikidata:Scholia|Scholia]] profile for the subject of that article. The box is comparable to the existing popular templates for linking to {{Tl|Commons}} or any {{Tl|Sister project}}. | |||
== Status == | == Status == | ||
Line 7: | Line 8: | ||
== Usage == | == Usage == | ||
Use this template in the same way as {{ | Use this template in the same way as {{Tlf|Commons}} or {{Tlf|Sister project}}, which is to put this box in the "external links" section at the bottom of a Wikipedia article. | ||
This box connects Wikipedia articles to select information in Wikidata. Unlike with the other sister projects, in Wikidata there are endless ways to match Wikipedia readers with content on Wikidata. Scholia is one option; anyone else might propose other options. | This box connects Wikipedia articles to select information in Wikidata. Unlike with the other sister projects, in Wikidata there are endless ways to match Wikipedia readers with content on Wikidata. Scholia is one option; anyone else might propose other options. | ||
Line 14: | Line 15: | ||
=== With Scholia aspects === | === With Scholia aspects === | ||
The template supports different aspects of | The template supports different aspects of Scholia: | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
Line 58: | Line 59: | ||
| [[:toolforge:scholia/award{{!}}award]] || <code><nowiki>{{Scholia|award}}</nowiki></code> || [[ISCB Fellow]] | | [[:toolforge:scholia/award{{!}}award]] || <code><nowiki>{{Scholia|award}}</nowiki></code> || [[ISCB Fellow]] | ||
|} | |} | ||
==== Example ==== | |||
{{Scholia|topic}} | |||
{{code|<nowiki>{{Scholia|topic}}</nowiki>}} produces: → → → | |||
{{-}} | |||
=== With a Wikidata QID === | === With a Wikidata QID === | ||
To link to the | To link to the Scholia profile for an arbitrary [[Wikidata]] item from an arbitrary Wikipedia page, use | ||
{{Scholia|Q202864}} | {{Scholia|Q202864}} | ||
<code><nowiki>{{Scholia|Q202864}}</nowiki></code> | <code><nowiki>{{Scholia|Q202864}}</nowiki></code> | ||
=== Without a Wikidata QID === | === Without a Wikidata QID === | ||
To link to the | To link to the Scholia profile for an arbitrary Wikidata item from the associated Wikipedia page, use | ||
<code><nowiki>{{Scholia}}</nowiki></code>, which should give the same result as a call of the template with the corresponding QID. | <code><nowiki>{{Scholia}}</nowiki></code>, which should give the same result as a call of the template with the corresponding QID. | ||
Line 72: | Line 78: | ||
=== See also === | === See also === | ||
* | * {{Tl|Scholia-inline}} | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| |