Difference between revisions of "Template:Semantic Element"

From KIproBatt Wiki
m
Tag: 2017 source edit
m
Tag: 2017 source edit
Line 15: Line 15:
 
{{#subpages: }}
 
{{#subpages: }}
 
</noinclude><includeonly><!-- {{Purge link}} -->
 
</noinclude><includeonly><!-- {{Purge link}} -->
{{{description|}}}{{DISPLAYTITLE: {{{label|{{PAGENAME}}}}}}}[[Category:Semantic Element]]
+
{{{description|}}}[[Category:Semantic Element]]
 
<!-- {{#formlink:form=Semantic Element|target={{PAGENAME}}|link text=Edit this element}} -->
 
<!-- {{#formlink:form=Semantic Element|target={{PAGENAME}}|link text=Edit this element}} -->
  
Line 47: Line 47:
 
== Semantic Statements ==
 
== Semantic Statements ==
  
{{#ifeq: {{#ask: [[{{PAGENAME}}]] [[Category:Semantic Reference]] |link=none}} | {{PAGENAME}} | {{#formlink:form=Semantic Statement|link text=Add statement|query string=Semantic Statement[reference]={{PAGENAME}}}}| {{DISPLAYTITLE:{{SUBPAGENAME}}}} {{#formlink:form=Semantic Statement|link text=Add statement|query string=Semantic Statement[subject]={{PAGENAME}}}} }}
+
{{#ifeq: {{#ask: [[{{PAGENAME}}]] [[Category:Semantic Reference]] |link=none}} | {{PAGENAME}} | {{#formlink:form=Semantic Statement|link text=Add statement|query string=Semantic Statement[reference]={{PAGENAME}}}}| {{DISPLAYTITLE: {{{label|{{PAGENAME}}}}}}} {{#formlink:form=Semantic Statement|link text=Add statement|query string=Semantic Statement[subject]={{PAGENAME}}}} }}
 
<!--  
 
<!--  
 
{{#ask: [[Category:Semantic Statement]] [[{{#ifeq: {{#ask: [[{{PAGENAME}}]] [[Category:Semantic Reference]] |link=none}} | {{PAGENAME}} |has reference|has subject}}::{{PAGENAME}}]] -->
 
{{#ask: [[Category:Semantic Statement]] [[{{#ifeq: {{#ask: [[{{PAGENAME}}]] [[Category:Semantic Reference]] |link=none}} | {{PAGENAME}} |has reference|has subject}}::{{PAGENAME}}]] -->

Revision as of 04:21, 25 May 2021

This is the "Semantic Element" template. It should be called in the following format:

{{Semantic Element
|iri: ontology iri
|label: display name
|description: description
|relations: List of semantic links
}}

Edit the page to see the template text.

Subpages