Aus SubmersWiki

Version vom 10. Mai 2011, 15:10 Uhr von 127.0.0.1 (Diskussion)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

The #show parser function which enables you to easily query for annotations of an instance, would have been appropriate for that purpose were it not for this one major issue - the #show parser function always displays the state of the instance before the last edit of the instance.
For example, if an instance contains the annotation [[Has title::Title]] and if one now edits that article and changes the annotation to [[Has title::New title]], then the result of the #show parser function in the saved article is still Title until someone refreshes or edits the article again.
The Automatic Semantic Forms extension therefore introduced the #shownow parser function, which immediately displays the current annotation values even when they have been edited.
The syntax of the new #shownow parser function is shown below:

{{#shownow: property-title | linked | variable | evaluate }}


Copyright © 2011 Ontoprise.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the article "GNU Free Documentation License".