From: Alexey K. <god...@gm...> - 2013-08-26 14:36:21
|
Hi, Ralf! You can use StringFuncitons[1] extension for this. [1]http://www.mediawiki.org/wiki/Extension:StringFunctions#.23sub: 26.08.2013 13:40, Ralf пишет: > Hi, > > is there a method to limit the number of characters printed out by an inline > query? > > Example: > {{#ask: [[-Has subobject::{{FULLPAGENAME}}]][[Has definition::+]] > |Has definition?= > |format=ul > |mainlabel=- > |sort=Has definition > }} > > "Has definition" is from type "text". I just want to cut the printout of the > value after e.g. 30 characters, which is useful when adding the text into an > infobox. > > That would be a nice feature in SMW. Or is there any other way to to that > within a template (either format "ul" or "table" or any other)? Similar to > #titleparts maybe? > > Cheers > Ralf > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > |