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

Add options for displaying images in query results (T32002) #1418

Closed
gesinn-it-gea opened this issue Feb 24, 2016 · 1 comment
Closed

Add options for displaying images in query results (T32002) #1418

gesinn-it-gea opened this issue Feb 24, 2016 · 1 comment
Labels
new feature A new, or altered behaviour of an existing functionality that fundamentally impacts behaviour

Comments

@gesinn-it-gea
Copy link
Member

continued from: https://phabricator.wikimedia.org/T32002

summary: allow to set the thumb size in query results like

{{#ask: ...
   ?my image property#130px
 }}

There has already been a patch for this which. See Phabricator.

Would be cool to get this feature into SMW.

@JeroenDeDauw JeroenDeDauw added the new feature A new, or altered behaviour of an existing functionality that fundamentally impacts behaviour label Feb 25, 2016
@kghbln
Copy link
Member

kghbln commented Feb 25, 2016

The suggested patch:

--- SemanticMediaWiki/includes/datavalues/SMW_DV_WikiPage.php   Fri Aug 03 16:33:57 2012
+++ SemanticMediaWiki/includes/datavalues/SMW_DV_WikiPage.php   Fri Aug 03 16:33:30 2012
@@ -193 +193 @@
-               $defaultCaption = '|' . $this->getShortCaptionText() . '|frameless|border|text-top';
+               $defaultCaption = '|' . $this->getShortCaptionText() . '|frameless|border|' . $this->m_outformat . '|text-top';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature A new, or altered behaviour of an existing functionality that fundamentally impacts behaviour
Projects
None yet
Development

No branches or pull requests

4 participants