Benutzer:Christoph Holtermann/Semantic Scribunto: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(explanatory text) |
(→Inhalte aus wikibase importieren und konvertieren zu Semantic Mediawiki Subobjekten: Zeile mit Koordinaten entfernt) |
||
(14 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
== Examples for Semantic Scribunto == | == Examples for Semantic Scribunto == | ||
+ | mainly taken from https://sandbox.semantic-mediawiki.org/wiki/Semantic_Scribunto_example | ||
+ | |||
+ | === Tooltip text === | ||
<nowiki>{{#invoke:smw|info|This is a tooltip info text}}</nowiki> | <nowiki>{{#invoke:smw|info|This is a tooltip info text}}</nowiki> | ||
+ | |||
{{#invoke:smw|info|This is a tooltip info text}} | {{#invoke:smw|info|This is a tooltip info text}} | ||
+ | === getPropertyType === | ||
<nowiki>{{#invoke:smw|getPropertyType|Modification date}}</nowiki> | <nowiki>{{#invoke:smw|getPropertyType|Modification date}}</nowiki> | ||
+ | |||
{{#invoke:smw|getPropertyType|Modification date}} | {{#invoke:smw|getPropertyType|Modification date}} | ||
+ | |||
+ | === subobject === | ||
+ | {{#invoke:smw|subobject|Text=Ein beliebiger Text in einem Subobjekt}} | ||
+ | |||
+ | === set === | ||
+ | {{#invoke:smw|set|Text=Ein beliebiger Text}} | ||
+ | |||
+ | |||
+ | == wikibase == | ||
+ | === Inhalte aus wikibase importieren und konvertieren zu Semantic Mediawiki Subobjekten === | ||
+ | |||
+ | {{#invoke:Smwtest|smwfromwikibase}} | ||
+ | |||
+ | === Subobjekte darstellen === | ||
+ | |||
+ | {{#ask: [[Quelle::wikibase]] | ?Bezeichnung | ?Text | ?Koordinaten |?Name}} | ||
+ | |||
+ | ==== Semantic Wikibase (geht nicht) ==== | ||
+ | |||
+ | {{#ask: [[P1::+]]}} |
Aktuelle Version vom 26. August 2021, 18:35 Uhr
Examples for Semantic Scribunto
mainly taken from https://sandbox.semantic-mediawiki.org/wiki/Semantic_Scribunto_example
Tooltip text
{{#invoke:smw|info|This is a tooltip info text}}
This is a tooltip info text
getPropertyType
{{#invoke:smw|getPropertyType|Modification date}}
_dat
subobject
Your data was stored successfully in a subobject
table#1 { metatable = table#2 ["Text"] = "Ein beliebiger Text in einem Subobjekt", }
set
Your data was stored successfully
wikibase
Inhalte aus wikibase importieren und konvertieren zu Semantic Mediawiki Subobjekten
Skriptfehler: Ein solches Modul „Smwtest“ ist nicht vorhanden.