Help:Embedded format
| Embedded format | |
|---|---|
| Embed selected articles. | |
| Further Information | |
| Provided by: | Semantic MediaWiki |
| Added: | 0.7 |
| Removed: | still supported |
| Requirements: | none |
| Format name: | embedded |
| Enabled by default:info.pngIndicates whether the result format is enabled by default upon installation of the respective extension. | yes |
| Authors: | Markus Krötzsch |
| Categories: | misc |
| Table of Contents | |
The result format embedded is used to embed the contents of the pages in a query result into a page. The embedding uses MediaWiki transclusion (like when inserting a template), so the tags <includeonly> and <noinclude> work for controlling what is displayed.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| embedformat | Text | h1 | The HTML tag used to define headings |
| embedonly | Yes/no | no | Display no headings |
The embedded format introduces the following additional parameters:
- embedformat: this defines which kinds of headings to use when pages are embedded, may be a heading level, i.e. one of h1, h2, h3, h3, h4, h5, h6, or a description of a list format, i.e. one of ul and ol
- embedonly: if this parameter has any value (e.g. «true»), then no headings are used for the embedded pages at all.
Example
The following creates a list of recent news posted on this site (like in a blog):
{{#ask: [[News date::+]] [[language code::en]]
| sort=news date
| order=descending
| format=embedded
| embedformat=h3
| searchlabel= view older news
| limit=3
}}
This produces the following output:
Wikidata to Bring Semantic Data to Wikipedia
March 30 2012. The Wikidata project is a major effort to establish a platform for editing and sharing data among all Wikipedia communities. The project will start next Monday, 2 April 2012. Wikidata will draw from the experience of Semantic MediaWiki in managing data in wikis, and SMW maintainers Denny Vrandecic, Jeroen De Dauw, and Markus Krötzsch are closely involved. However, there will also be some important differences, e.g., regarding user interface and translation support. Technical details are published on the Wikidata pages and there is a dedicated Wikidata mailing list for updates and discussions. Official details about the project can be found in a recent press release by Wikimedia Deutschland e. V.: Data Revolution for Wikipedia.
Semantic MediaWiki 1.7.1 released
March 5 2012. Semantic MediaWiki 1.7.1, the next minor version after 1.7.0, has now been released. This new version adds a few cool new features and fixes a pile of bugs. Uprading from 1.7.0 can be done by replacing the files and running the database upgrade script. Upgrading from earlier versions of SMW is easy but needs some additional steps in certain cases, see Installation 1.7.1 for details. Further information can be found on the SMW 1.7.1 page.Chapter by Markus Krötzsch in new book, "Open Advice"
February 19 2012. Semantic MediaWiki lead developer Markus Krötzsch is the author of a chapter in the new book Open Advice, a compendium of advice about free and open-source development from various open-source leaders. In his chapter, titled "Out of the Lab, into the Wild: Growing Open Source Communities around Academic Projects", Markus talks about the steps academic researchers can take to help the open-source software that they have created succeed, including choosing popular technology, documenting the code, keeping all communication and development public, and publicizing the software.
Open Advice was edited by Lydia Pintscher, a member of the Semantic MediaWiki community (as well as of the open-source software KDE), and the book's authors include others with connections to MediaWiki, including Lydia herself, Wikimedia Foundation developer Guillaume Paumier, Wikipedia researcher Felipe Ortega, and Wikitravel (and StatusNet) founder Evan Prodromou. Open Advice is itself available under an open source license.
[view older news]
Note that a newline (<br>) is used to put the further results link on a separate line.
Remarks
Note that embedding pages may accidently include category statements if the embedded articles have any categories. Use <noinclude> to prevent this, e.g. by writing
<noinclude>[[Category:News feed]]</noinclude>
SMW will take care that embedded articles do not import their semantic annotations, so these need not be treated specifically.
Also note that printout statements have no effect on embedding queries.