Template:CiteSchema

From BITPlan ceur-ws Wiki
Jump to navigation Jump to search

This is the template CiteSchema. It belongs to the concept/topic Concept:CiteSchema
You may find examples for the use of this template via the List of CiteSchemas.

Usage

storemode subobject

{{CiteSchema
|name=
|type=
|iri=
|storemode=subobject
}}

storemode property

{{CiteSchema
|name=
|type=
|iri=
|storemode=property
}}

storemode none

{{CiteSchema
|name=
|type=
|iri=
|storemode=none
}}


viewmode tableheader

{{CiteSchema
|name=
|type=
|iri=
|viewmode=tableheader
}}

viewmode tablerow

{{CiteSchema
|name=
|type=
|iri=
|viewmode=tablerow
}}

viewmode tablefooter

{{CiteSchema
|name=
|type=
|iri=
|viewmode=tablefooter
}}

viewmode labelfield

{{CiteSchema
|name=
|type=
|iri=
|viewmode=labelfield
}}

Source (pretty printed)

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA CiteSchema<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?type|}}}|"{{{?type}}}" is type of it <br>|}}
{{#if:{{{?iri|}}}|"{{{?iri}}}" is iri of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=CiteSchema
|CiteSchema name={{{name|}}}
|CiteSchema type={{{type|}}}
|CiteSchema iri={{{iri|}}}
}}
|#default={{#set:
|isA=CiteSchema
|CiteSchema name={{{name|}}}
|CiteSchema type={{{type|}}}
|CiteSchema iri={{{iri|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
= properties =
{{#ask:[[Concept:SchemaProperty]][[SchemaProperty schema::{{FULLPAGENAME}}]]
| ?SchemaProperty id = id
| ?SchemaProperty name = name
| ?SchemaProperty kind = kind
| ?SchemaProperty type = type
| ?SchemaProperty iri = iri
| ?SchemaProperty parent = parent
| ?SchemaProperty mapsTo = mapsTo
| ?SchemaProperty comment = comment
| ?SchemaProperty cardinality = cardinality
| ?SchemaProperty definition = definition
| ?SchemaProperty allowedValue = allowedValue
| ?SchemaProperty examples = examples
| ?SchemaProperty schema = schema

|sort=SchemaProperty id,SchemaProperty name
|order=ascending,ascending
}}
|tableheader={{{!}} class='wikitable'
!name!!type!!iri
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{type|}}}{{!}}{{!}}{{{iri|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>type={{#if:{{{type|}}}|[[{{{type|}}}]]|}}<br>iri={{#if:{{{iri|}}}|{{{iri|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}CiteSchema
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/CiteSchema/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!name
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!type
{{!}}&nbsp;{{#if:{{{type|}}}|[[{{{type|}}}]]|}}
{{!}}-
!iri
{{!}}&nbsp;{{#if:{{{iri|}}}|{{{iri|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:CiteSchema]]{{#default_form:CiteSchema}}

Source

Click on "Edit" to edit the noinclude-part Source of this Template.