« 20201019 » : différence entre les versions
De Semantic MediaWiki - Sandbox
Aucun résumé des modifications Balise : Éditeur de wikicode 2017 |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
With Semantic Mediawiki, I want to be able to create subobjects like so: | With Semantic Mediawiki, I want to be able to create subobjects like so: | ||
<nowiki>{{#subobject: | <nowiki>{{#subobject:object1 | ||
|Label=Sample | |||
|Date=Oct 19 2020 | |||
|Text = text | |||
}}</nowiki> | |||
<nowiki>{{#subobject: | <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): | and have them show up like this (notice how the header renders as a wikitext header): | ||
Query: | |||
Result: | |||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ | ||
Ligne 18 : | Ligne 23 : | ||
!Text | !Text | ||
|- | |- | ||
|Page 1 | |Page 1#object1 | ||
|October 19th 2020 | |October 19th 2020 | ||
| | | | ||
== Heading == | ==Heading== | ||
|- | |- | ||
|Page 2 | |Page 2#object2 | ||
|October 18th 2020 | |October 18th 2020 | ||
|Text | |Text | ||
|} | |} |
Version du 20 octobre 2020 à 03:38
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:
Result:
Page | Date | Text |
---|---|---|
Page 1#object1 | October 19th 2020 |
Heading |
Page 2#object2 | October 18th 2020 | Text |