Différences entre les versions de « Transclusion »
De Semantic MediaWiki - Sandbox
(Created page with "<OnlyInclude> '''Transclusion''' in MediaWiki refers to '''template transclusion''' and '''subpage transclusion'''. In SemanticMediaWiki, transclusion can be done with [https:...") |
|||
(5 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
− | < | + | <onlyinclude> |
'''Transclusion''' in MediaWiki refers to '''template transclusion''' and '''subpage transclusion'''. In SemanticMediaWiki, transclusion can be done with [https://www.semantic-mediawiki.org/wiki/Help:Embedded_format display format "embedded"] on query results. | '''Transclusion''' in MediaWiki refers to '''template transclusion''' and '''subpage transclusion'''. In SemanticMediaWiki, transclusion can be done with [https://www.semantic-mediawiki.org/wiki/Help:Embedded_format display format "embedded"] on query results. | ||
− | </ | + | </onlyinclude> |
+ | <noinclude> | ||
Demo some transclusions: | Demo some transclusions: | ||
− | * Normal transclusion from [[semantic-mw:Help:Embedded_format]] (Interwiki disabled): {{semantic-mw:Help:Embedded_format}} | + | * Normal transclusion from [[semantic-mw:Help:Embedded_format]] (Interwiki disabled): {{:semantic-mw:Help:Embedded_format}} |
− | * Normal transclusion from [[London]]: {{:London}} | + | * Normal transclusion from [[London]]: All properties and categories are transcluded. |
− | * Transclusion with "embedded" format: {{#ask:[[London]]|format=embedded|default=No result!}} | + | ** Go see [[{{PAGENAME}}/Transcluded | <code><nowiki>{{:London}}</nowiki></code>]] |
+ | * Transclusion with "embedded" format: ''properties are '''not''' transcluded'', but categories are. | ||
+ | ** Go see [[{{PAGENAME}}/Embedded | <code><nowiki>{{#ask:[[London]]|format=embedded|embedonly=yes|default=No result!}}</nowiki></code>]] | ||
+ | |||
[[Category:Sandbox]] | [[Category:Sandbox]] | ||
+ | </noinclude> |
Dernière version du 8 janvier 2016 à 16:15
Transclusion in MediaWiki refers to template transclusion and subpage transclusion. In SemanticMediaWiki, transclusion can be done with display format "embedded" on query results.
Demo some transclusions:
- Normal transclusion from semantic-mw:Help:Embedded_format (Interwiki disabled): {{:semantic-mw:Help:Embedded_format}}
- Normal transclusion from London: All properties and categories are transcluded.
- Go see
{{:London}}
- Go see
- Transclusion with "embedded" format: properties are not transcluded, but categories are.