New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@@@ syntax to generate a property link #1855
Comments
@kghbln FYI |
Make InTextAnnotationParser aware of @@@ syntax, refs #1855
I added some more wikidoku for this.... |
This is a great feature, but there are several use cases where in you wiki you don't want user to visit property pages. So my question is if it would be possible to use the feature of having the preferred property label and property description showing up in a tooltip, but without the possibility to actualle click on it an got to the property page? The workaround is to use something like |
So my question is if it would be possible to use the feature of having the
preferred property label and property description showing up in a tooltip,
but without the possibility to actualle click on it an got to the property
page?
Could be achieved by something like [[Foo::@@@|@@@]].
If you create a feature request for `[[Foo::@@@|@@@]]` (where `|@@@]]`
indicates a no link) then I may have a look at it.
…On 5/21/19, Bernhard Krabina ***@***.***> wrote:
This is a great feature, but there are several use cases where in you wiki
you don't want user to visit property pages.
So my question is if it would be possible to use the feature of having the
preferred property label and property description showing up in a tooltip,
but without the possibility to actualle click on it an got to the property
page?
Could be achieved by something like [[Foo::@@@|@@@]].
The workaround is to use something like
`{{#show:Property:Foo|?has preferred property
label|+lang={{USERLANGUAGECODE}}}}`
to display the correct name of the poperty and then also do the tooltip in a
similar way which is a lot of coding and querying in templates...
--
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub:
#1855 (comment)
|
documented here: https://www.semantic-mediawiki.org/wiki/Help:Property_links |
Creating a property link (as to be used in infoboxes or by templates) within a wiki-text requires some additional work and even though it can be done it will not allow to take advantage of auto-property descriptions (displayed as tooltip etc.) or in future to change to a preferred label (based on the user language).
To generate a property link within a text or template, the special syntax
[[Foo::@@@]]
is introduced, where@@@
will signal to theInTextAnnotationParser
to handle it as non-value annotation and instead output a property link as seen in the examples.Going with the special syntax seems more appropriate (and is less work) than introducing yet another parser function.
Examples
The text was updated successfully, but these errors were encountered: