473
edits
(Update package: OSW Core) |
(Update package: OSW Core) |
||
jsonschema | |||
---|---|---|---|
Line 3: | Line 3: | ||
"schema": "https://schema.org/", | "schema": "https://schema.org/", | ||
"skos": "https://www.w3.org/TR/skos-reference/", | "skos": "https://www.w3.org/TR/skos-reference/", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#", | |||
"wiki": "https://wiki-dev.open-semantic-lab.org/id/", | "wiki": "https://wiki-dev.open-semantic-lab.org/id/", | ||
"Property": { | "Property": { | ||
Line 37: | Line 38: | ||
"image": "schema:image", | "image": "schema:image", | ||
"image*": "Property:HasImage", | "image*": "Property:HasImage", | ||
"keywords": { | |||
"@id": "schema:keywords", | |||
"@type": "@id" | |||
}, | |||
"keywords*": { | |||
"@id": "Property:HasKeyword", | |||
"@type": "@id" | |||
}, | |||
"based_on": "skos:isBasedOn", | "based_on": "skos:isBasedOn", | ||
"based_on*": { | "based_on*": { | ||
Line 110: | Line 119: | ||
"type": "mustache-wikitext", | "type": "mustache-wikitext", | ||
"mode": "render", | "mode": "render", | ||
"value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C% | "$comment": "Displays value according to user language with eng as fallback option. Note: {{=\u003C% %\u003E=}} changes mustache expression from {{..}} to \u003C% %\u003E for mixing with wikitext templates", | ||
"value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%#label%\u003E | {{#ifeq: \u003C%lang%\u003E|en|#default|\u003C%lang%\u003E}} = \u003C%text%\u003E \u003C%/label%\u003E }}" | |||
} | } | ||
], | ], | ||
Line 143: | Line 153: | ||
"type": "mustache-wikitext", | "type": "mustache-wikitext", | ||
"mode": "render", | "mode": "render", | ||
"value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C% | "$comment": "Displays value according to user language with eng as fallback option. Note: {{=\u003C% %\u003E=}} changes mustache expression from {{..}} to \u003C% %\u003E for mixing with wikitext templates", | ||
"value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%#short_name%\u003E | {{#ifeq: \u003C%lang%\u003E|en|#default|\u003C%lang%\u003E}} = \u003C%text%\u003E \u003C%/short_name%\u003E }}" | |||
}, | }, | ||
"items": { | "items": { | ||
Line 150: | Line 161: | ||
"de": "Kurzname" | "de": "Kurzname" | ||
}, | }, | ||
"eval_template": [ | |||
{ | |||
"type": "wikitext", | |||
"mode": "store", | |||
"value": "{{{text}}}@{{{lang}}}" | |||
} | |||
], | |||
"$ref": "/wiki/JsonSchema:Label?action=raw" | "$ref": "/wiki/JsonSchema:Label?action=raw" | ||
} | } | ||
Line 178: | Line 196: | ||
"type": "mustache-wikitext", | "type": "mustache-wikitext", | ||
"mode": "render", | "mode": "render", | ||
"value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C% | "$comment": "Displays value according to user language with eng as fallback option. Note: {{=\u003C% %\u003E=}} changes mustache expression from {{..}} to \u003C% %\u003E for mixing with wikitext templates", | ||
"value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%#description%\u003E | {{#ifeq: \u003C%lang%\u003E|en|#default|\u003C%lang%\u003E}} = \u003C%text%\u003E \u003C%/description%\u003E }}" | |||
}, | }, | ||
"items": { | "items": { | ||
Line 212: | Line 231: | ||
} | } | ||
] | ] | ||
}, | |||
"keywords": { | |||
"type": "array", | |||
"title": "Keywords / Tags", | |||
"title*": { | |||
"de": "Schlagworte / Tags" | |||
}, | |||
"description": "Designated to the user defined categorization of this element", | |||
"description*": { | |||
"de": "Dient der nutzerdefinierten Kategorisierung des Elements" | |||
}, | |||
"eval_template": { | |||
"type": "mustache-wikitext", | |||
"mode": "render", | |||
"value": "{{=\u003C% %\u003E=}} \u003C%={{ }}=%\u003E {{#keywords}}[[{{{.}}}]] \u003Cbr\u003E {{/keywords}} {{=\u003C% %\u003E=}} \u003C%={{ }}=%\u003E" | |||
}, | |||
"items": { | |||
"title": "Keyword", | |||
"title*": { | |||
"de": "Schlagwort" | |||
}, | |||
"type": "string", | |||
"format": "autocomplete", | |||
"range": "Category:OSW09f6cdd54bc54de786eafced5f675cbe" | |||
} | |||
}, | }, | ||
"based_on": { | "based_on": { | ||
Line 256: | Line 300: | ||
"type": "mustache-wikitext", | "type": "mustache-wikitext", | ||
"mode": "render", | "mode": "render", | ||
"value": "{{=\u003C% %\u003E=}} \u003C%={{ }}=%\u003E {{#attachments}} | "value": "{{=\u003C% %\u003E=}} \u003C%={{ }}=%\u003E {{#attachments}}{{{.}}};{{/attachments}} {{=\u003C% %\u003E=}} \u003C%={{ }}=%\u003E" | ||
}, | }, | ||
"options": { | "options": { | ||
footer_template | |||
Line 16: | Line 16: | ||
=={{{_label_attachments| {{#switch:{{USERLANGUAGECODE}}|en=Attachments|de=Anhang|#default=Attachments}} }}}== | =={{{_label_attachments| {{#switch:{{USERLANGUAGECODE}}|en=Attachments|de=Anhang|#default=Attachments}} }}}== | ||
{{#tag: gallery | |||
{{# | |{{#arraymap: {{{attachments|}}} |;|__FILE__|__FILE__{{!}}[[:__FILE__]]|\n}} | ||
| | }} | ||
| | |||
| | |||
}} | |||
<!-- <div class="fileupload-auto-reload">{{#batchupload:OslTemplate:ELN/Attachment|{{FULLPAGENAME}}|{{REVISIONUSER}}}}</div> --> | <!-- <div class="fileupload-auto-reload">{{#batchupload:OslTemplate:ELN/Attachment|{{FULLPAGENAME}}|{{REVISIONUSER}}}}</div> --> | ||
{{#batchupload:}} | {{#batchupload:}} | ||
<!--|}}--> | <!--|}}--> | ||
header_template | |||
Line 63: | Line 63: | ||
}}</td> | }}</td> | ||
</tr> | </tr> | ||
<tr> | |||
<th>{{{_keywords_name|Keywords}}}</th> | |||
<td>{{{keywords|}}}</td> | |||
</tr> | |||
</table> | </table> | ||
edits