Skip to content
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

Use 'noparse' => false in #set when template is used, refs #1067 #1146

Merged
merged 1 commit into from Sep 10, 2015
Merged

Conversation

mwjames
Copy link
Contributor

@mwjames mwjames commented Sep 10, 2015

Use the parser itself to handle rendering of template supported output to avoid raw output like [0] which was caused by the added #1067 flag.

<a href="/wiki/Special:Ask/-5B-5BHas-20keyword::Set-5D-5D/searchlabel%3DSet/offset%3D0" title="Special:Ask/-5B-5BHas-20keyword::Set-5D-5D/searchlabel=Set/offset=0">Set</a> · <a href="/wiki/Special:Ask/-5B-5BHas-20keyword::Template-20usage-5D-5D/searchlabel%3DTemplate-20usage/offset%3D0" title="Special:Ask/-5B-5BHas-20keyword::Template-20usage-5D-5D/searchlabel=Template-20usage/offset=0">Template usage</a> 

[0] https://semantic-mediawiki.org/wiki/Examples/Parser/Set_using_a_template_parameter

Use the parser itself to handle rendering of template supported
output.
@mwjames mwjames added this to the SMW 2.3 milestone Sep 10, 2015
mwjames added a commit that referenced this pull request Sep 10, 2015
Use 'noparse' => false in #set when template is used, refs #1067
@mwjames mwjames merged commit dac1968 into master Sep 10, 2015
@mwjames mwjames deleted the set branch September 10, 2015 19:15
@mwjames
Copy link
Contributor Author

mwjames commented Sep 16, 2015

@kghbln Just saw this thread [0], it should be more clear to users that if [[Has text:: [[Bar]] ]] fails to render an annotation simply use {{#set:|Has text= [[Bar]], [[Has url::example.org]]|template=DisplayValue}} where the template DisplayValue:<includeonly>{{{value}}}<includeonly> turns a silent annotation into a visible one by just adding the template parameter. This allows to have annotations within annotations while displaying the rendered output without any max size restrictions (given that Has text is of type Text).

[0] https://www.mediawiki.org/wiki/Extension_talk:Semantic_Forms#Max_size_for_properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant