« 20201019 » : différence entre les versions
De Semantic MediaWiki - Sandbox
(Page blanchie) Balises : Blanchiment Éditeur de wikicode 2017 |
(Annulation des modifications 49765 de YousufSSyed (discussion) I do not create solution pages and reference to other pages to see that the referenced pages are being blanced.) Balise : Annulation |
||
Ligne 1 : | Ligne 1 : | ||
With Semantic Mediawiki, I want to be able to create subobjects like so: | |||
<nowiki>{{#subobject:object1 | |||
|Label=Sample | |||
|Date=Oct 19 2020 | |||
|Text = text | |||
}}</nowiki> | |||
<nowiki>{{#subobject:object2 | |||
|Label=Sample | |||
|Date=Oct 18 2020 | |||
|Text = == Header == | |||
}}</nowiki> | |||
and have them show up like this (notice how the header renders as a wikitext header): | |||
Query: | |||
<nowiki>{{#ask: [[-Has subobject::+]] | |||
[[Label::~Sample]] | |||
|?Date | |||
|?Text | |||
}}</nowiki> | |||
Result: | |||
{| class="wikitable" | |||
|+ | |||
!Page | |||
!Date | |||
!Text | |||
|- | |||
|Page 1#object1 | |||
|October 19th 2020 | |||
|Text | |||
|- | |||
|Page 2#object2 | |||
|October 18th 2020 | |||
|== Header == | |||
|} | |||
Solution: | |||
See [[20201020]] |
Version du 23 octobre 2020 à 10:44
With Semantic Mediawiki, I want to be able to create subobjects like so:
{{#subobject:object1 |Label=Sample |Date=Oct 19 2020 |Text = text }}
{{#subobject:object2 |Label=Sample |Date=Oct 18 2020 |Text = == Header == }}
and have them show up like this (notice how the header renders as a wikitext header):
Query:
{{#ask: [[-Has subobject::+]] [[Label::~Sample]] |?Date |?Text }}
Result:
Page | Date | Text |
---|---|---|
Page 1#object1 | October 19th 2020 | Text |
Page 2#object2 | October 18th 2020 | == Header == |
Solution:
See 20201020