Template:Scholia: Difference between revisions

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
(+award aspect)
(in default view, swapping the position of Wikidata ID from before the en label to after)
 
Line 24: Line 24:
 
|use = Scholia has a ''{{{1|}}}'' profile for [//tools.wmflabs.org/scholia/use/{{#invoke:Wikidata|ViewSomething|id}} '''''{{{2|{{PAGENAME}}}}}'''''].
 
|use = Scholia has a ''{{{1|}}}'' profile for [//tools.wmflabs.org/scholia/use/{{#invoke:Wikidata|ViewSomething|id}} '''''{{{2|{{PAGENAME}}}}}'''''].
 
|award = Scholia has a ''{{{1|}}}'' profile for [//tools.wmflabs.org/scholia/award/{{#invoke:Wikidata|ViewSomething|id}} '''''{{{2|{{PAGENAME}}}}}'''''].
 
|award = Scholia has a ''{{{1|}}}'' profile for [//tools.wmflabs.org/scholia/award/{{#invoke:Wikidata|ViewSomething|id}} '''''{{{2|{{PAGENAME}}}}}'''''].
|#default = Scholia has a profile for [//tools.wmflabs.org/scholia/{{Trim|{{{1|{{{id|{{#invoke:Wikidata|ViewSomething|id}}}}}}}}}} '''{{Trim|{{{1|{{{id|{{#invoke:Wikidata|ViewSomething|id}}}}}}}}}} ({{Ifnoteq then show|{{Wikidata|label|{{Trim|{{{1|{{{id}}}}}}}}}}||{{{2|{{PAGENAME}}}}}}})'''].
+
|#default = Scholia has a profile for [//tools.wmflabs.org/scholia/{{Trim|{{{1|{{{id|{{#invoke:Wikidata|ViewSomething|id}}}}}}}}}} '''{{Ifnoteq then show|{{Wikidata|label|{{Trim|{{{1|{{{id}}}}}}}}}}||{{{2|{{PAGENAME}}}}}}} ({{Trim|{{{1|{{{id|{{#invoke:Wikidata|ViewSomething|id}}}}}}}}}})'''].
 
}}}}</includeonly><noinclude>
 
}}}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}

Latest revision as of 06:21, 16 July 2019

Template documentation[view] [edit] [history] [purge]

Status[edit]

The template is experimental and not fully documented yet.

Usage[edit]

With Scholia aspects[edit]

The template supports different aspects of Scholia:

Aspect Template code Example page
topic {{Scholia|topic}} Zika virus
author {{Scholia|author}} Uta Frith
venue {{Scholia|venue}} PLOS Genetics
publisher {{Scholia|publisher}} Hindawi Publishing Corporation
organization {{Scholia|organization}} Maastricht University
country {{Scholia|country}} Denmark
event {{Scholia|event}} African Writers Conference
event series {{Scholia|event-series}} Extended Semantic Web Conference
sponsor {{Scholia|sponsor}} National Institute for Occupational Safety and Health
work {{Scholia|work}} Molecular Structure of Nucleic Acids: A Structure for Deoxyribose Nucleic Acid
disease {{Scholia|disease}} Alzheimer's disease
taxon {{Scholia|taxon}} Caenorhabditis elegans
gene {{Scholia|gene}} Example
protein {{Scholia|protein}} Example
pathway {{Scholia|pathway}} Example
chemical {{Scholia|chemical}} benzene
chemical class {{Scholia|chemical-class}} fatty acid
use {{Scholia|use}} Example
award {{Scholia|award}} ISCB Fellow

With a Wikidata QID[edit]

To link to the Scholia profile for an arbitrary Wikidata item from an arbitrary Wikipedia page, use

{{Scholia|Q202864}}

Without a Wikidata QID[edit]

To link to the Scholia profile for an arbitrary Wikidata item from the associated Wikipedia page, use {{Scholia}}, which should give the same result as a call of the template with the corresponding QID.

Usage stats[edit]

The usage of this template can be followed here on the English Wikipedia or on Wikidata.

See also[edit]