Template:Semantic display template: Difference between revisions
| Robertbaxter (talk | contribs)  (Created page with "<noinclude> This template displays a message box on templates which take no parameters and are exclusively used to display the results of a semantic query (usually on the parent page with <code><nowiki>{{PAGENAME}}</nowiki></code>.  == Usage == An optional <code>source</code> field can be used to link to the template that is making the semantic annotations that this template references. <pre> {{Semantic display template|source=Place/person}} </pre> {{Semantic display tem...") | Robertbaxter (talk | contribs)  No edit summary | ||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| <noinclude> | <noinclude> | ||
| This template displays a message box on templates which take no parameters and are exclusively used to display the results of a semantic query (usually on the parent page with <code><nowiki>{{PAGENAME}}</nowiki></code>. | This template displays a message box on templates which take no parameters and are exclusively used to display the results of a semantic query (usually on the parent page with <code><nowiki>{{PAGENAME}}</nowiki></code>. Templates which use it are added to [[:Category:Semantic display templates]]. | ||
| == Usage == | == Usage == | ||
| An optional  | An optional field can be used to link to the template that is making the semantic annotations that this template references. | ||
| <pre> | <pre> | ||
| {{Semantic display template| | {{Semantic display template|Place/person}} | ||
| </pre> | </pre> | ||
| {{ | {{mbox | ||
|  | text=This is a '''semantic display template''', it takes no properties of its own. The annotations it uses are made in [[Template:Place/person]]. | |||
|  | color_bar=#FFB511 | |||
|  | class=class-ambox | |||
|  | icon=box-archive | |||
| }} | |||
| == TemplateData == | == TemplateData == | ||
| Line 13: | Line 18: | ||
| { | { | ||
| 	"params": { | 	"params": { | ||
| 		" | 		"1": { | ||
| 			"label": " | 			"label": "Source", | ||
| 			"description": "Name of the template that is making the semantic annotations (do not include the \"Template:\" namespace).", | 			"description": "Name of the template that is making the semantic annotations (do not include the \"Template:\" namespace).", | ||
| 			"type": "string" | 			"type": "string" | ||
| Line 25: | Line 30: | ||
| </noinclude><!-- | </noinclude><!-- | ||
| --><includeonly>{{mbox | --><includeonly>{{mbox | ||
|   | text=This is a '''semantic display template''', it takes no properties of its own.{{#if:{{{ |   | text=This is a '''semantic display template''', it takes no properties of its own.{{#if:{{{1|}}}| The annotations it uses are made in [[Template:{{{1}}}]].|}} | ||
|   | color_bar=#FFB511 |   | color_bar=#FFB511 | ||
|   | class=class-ambox |   | class=class-ambox | ||
|   | icon=box-archive |   | icon=box-archive | ||
| }}[[Category: | }}[[Category:Semantic display templates]]<!-- | ||
| --></includeonly> | --></includeonly> | ||
Latest revision as of 03:40, 18 December 2024
This template displays a message box on templates which take no parameters and are exclusively used to display the results of a semantic query (usually on the parent page with {{PAGENAME}}. Templates which use it are added to Category:Semantic display templates.
Usage
An optional field can be used to link to the template that is making the semantic annotations that this template references.
{{Semantic display template|Place/person}}
TemplateData
Used on templates which exclusively display the results of semantic queries.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Source | 1 | Name of the template that is making the semantic annotations (do not include the "Template:" namespace). | String | optional |