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

Closed
mwjames opened this Issue Sep 21, 2016 · 4 comments

Comments

Projects
None yet
3 participants
@mwjames
Contributor

mwjames commented Sep 21, 2016

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 the InTextAnnotationParser 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

image

image

image

@mwjames mwjames added the enhancement label Sep 21, 2016

@mwjames mwjames added this to the SMW 2.5 milestone Sep 21, 2016

@mwjames

This comment has been minimized.

Contributor

mwjames commented Sep 21, 2016

@kghbln FYI

mwjames added a commit that referenced this issue Sep 21, 2016

Merge pull request #1856 from SemanticMediaWiki/intext-label
Make InTextAnnotationParser aware of @@@ syntax, refs #1855

@mwjames mwjames closed this Sep 21, 2016

@kghbln

This comment has been minimized.

Member

kghbln commented Mar 15, 2017

@krabina

This comment has been minimized.

krabina commented Nov 16, 2018

Placeholder: https://www.semantic-mediawiki.org/wiki/Help:Property_links

I added some more wikidoku for this....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment