Last modified: 2008-08-11 11:05:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13570 - Create a tag that excludes all annotations
Create a tag that excludes all annotations
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-31 14:02 UTC by João Olavo
Modified: 2008-08-11 11:05 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description João Olavo 2008-03-31 14:02:59 UTC
The idea is to have a tag that will ignore every annotations of some text inside the tag.

I've two scenarios that explains the reason of such tag:

1) I want to include a page into another, but I don't want to include also the annotations. One could use the <noinclude> tag, but it can get fiddly depending on the amount of annotations.

2)
- A template t1 which is annotating the parameters
- A page p1 which uses the template (must get annotations from the template)
- A page p2 which includes p1 (must not have annotations from p1)
<noinclude> won't solve this because it would be used inside t1, but this way p1 won't be annotated.

Creating a new tag, say <ignoresemantics>, will solve this issue.

One decision to be taken is:
- When there's an alternate text, what would be the behavior? Show the alternate text? For instance: "The population is <noinclude>[[Population::127|</noinclude>about 100-150<noinclude>]]</noinlude>" will result in "The population is about 100-150"
Comment 1 S Page 2008-04-09 06:12:52 UTC
Markus, I noticed the "magic" property assignments [[SMW::off] and [[SMW::on]] that smwfParsePropertiesCallback() recognizes that turn $smwgTempStoreAnnotations.  These seem to do exactly what Mr. Olavo requires.  Let me know if we should document these magic property assignments.

If you want to disable semantic annotations for a template or page you transclude, another way to do it is to use an inline query with format=embedded and just name the page you want to transclude.

The discussion is on the semediawiki-user thread "Importing a page ignoring the annotations".
Comment 2 Markus Krötzsch 2008-08-08 21:03:31 UTC
Actually I consider SMW::on and SMW__off a hack, since they intorduce a state-full behaviour into page parsing, and this is rather unusual in MediaWiki. I would much prefer to have a better solution at some point, and thus I did not document it. But users may of course make use of these switches at their own risk. I will certainly not remove them without having some replacement, so putting the in a template that could later be updated would be okay.

But I would leave this hint on this page -- interested users will find it -- and not put it into the documentation.
Comment 3 Siebrand Mazeland 2008-08-11 11:05:28 UTC
Re-assign to extension developer for triage/comments.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links