id | "" |
---|
type | "SuggestEntityConfig" |
---|
name | "Suggest draft pages" |
---|
description | "" |
---|
comment | "Example of what a profile might look like. The query statement uses a placeholder, which is @@@ by default. The provisional idea of the 'usearray' parameter is that if it is set to true (must be false by default) and if the substring contains multiple string phrases divided by spaces, we can repeat for each phrase the same statement in an OR relationship [poorly worded, I know]." |
---|
source | "smw" |
---|
smwquery | statement | from | "[[Modification date::+]]" |
---|
where | "[[Display title of::~@@@]]" |
---|
substringpattern | "allchars" |
---|
|
|
---|
substringpattern | "allchars" |
---|
statementExample1 | "[[Concept:Drafts]] [[Display title of::~@@@]]" |
---|
statementExample2 | from | "[[Concept:Drafts]]" |
---|
where | "[[Display title of::~@@@]]" |
---|
substringpattern | "allchars" |
---|
comment | "This condition is iterable. The specific substringpattern here is only an idea. Not for MVP." |
---|
|
from | "[[Concept:Also rans]]" |
---|
where | "[[Has title::~@@@]]" |
---|
substringpattern | "allchars" |
---|
|
from | "" |
---|
where | "[[Has title::~@@@*]]" |
---|
substringpattern | "exact" |
---|
|
|
---|
placeholder | "@@@" |
---|
usearray | 0 |
---|
comment | "Do not use the asterik as wildcard, because it will be added depending on the substring pattern. If you insist, you can set the pattern to 'exact' (third example). Maybe substringpattern added here should be considered a default that we allow to overridden? @@@ seems like a nearly universally applicable placeholder. Custom placeholder probably unnecessary." |
---|
|
---|
alias | |
---|
suggest | type | smquery | from | "[[-Has class::+]]" |
---|
where | "[[~*@@@*)]]" |
---|
substringpattern | "exact" |
---|
|
---|
|
---|
|
---|
mapping | name | usedisplaytitle | 0 |
---|
smwproperty | "Label" |
---|
striptags | 1 |
---|
comments | "smwproperty should take precedence over usedisplayptitle." |
---|
|
---|
description | smwproperty | "Description" |
---|
striptags | 1 |
---|
maxchars | 50 |
---|
comment | "meaning use Property:Has description. 'striptags' might be used to strip html tags that the autocomplete interface fails to render. Also removes wikitext italics? 'maxchars' could be considered to cut off text after an x number of chars, though only if striptags=1. A central config option in Localsettings is probably preferrable though..." |
---|
|
---|
image | smwproperty | "Has image" |
---|
comment | "no image for now." |
---|
|
---|
|
---|