Différences entre les versions de « Transclusion »
De Semantic MediaWiki - Sandbox
Ligne 5 : | Ligne 5 : | ||
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]]: All properties and categories are transcluded. | |
− | * Transclusion with "embedded" format: {{#ask:[[London]]|format=embedded|embedonly=yes|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]] |
Version du 8 janvier 2016 à 16:03
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.