Commit dba45a05 authored by vermeul's avatar vermeul

Update README.md

parent a16bb884
......@@ -44,10 +44,18 @@ Annotations usually contain comments and may be categorised (Categories: see bel
{{#annot: | category}} # just specifiying the category a text belongs to, with no comment
{{#annot: | #category_hashtag }} # the hashtag is a quicker way to access annotation categories that have large names
{{#annot: comment | | some_id}} # nested annotation with an id to identify its ending, without any category
{{#annotend: id}} # End-of-Annotation-Tag. The id must be present if the opening tag has one.
{{annotend}} {{#annotend}} # some syntax sugar in case you forget the colon or the hash symbol
```
### Annotation per page
```
{{#annotpage: comment}}
{{#annotpage: comment | category}} # annotpage acts like a annotation, but has no corresponding annotpage_end element.
```
### Nested or overlapping annotations: Examples
The vertical bars are used to supply a number of different arguments. Because annotations can be even nested or overlapping,
we need to add an identifier to be sure the start and endings are connected together correctly. For example:
......@@ -106,6 +114,12 @@ See the [SMW concepts](https://www.semantic-mediawiki.org/wiki/Help:Concepts)
[[wiki_text: %anyth_ng% ]] # Underscore matches single characters
[[wiki_text!: %anything% ]] # wikitext NOT LIKE %anything%
[[page: comment | category_name]] # page contains comment and category
[[page: %comment% ]]
[[page: Constantinople | #place]] # ask for all pages that have place=Constantinople
[[page: 1450-1526 | #time]] # ask for all pages that have time=1450-1526
! "not" ("unequal")
% match any number of characters
_ match any single character
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment