Yes - you should have a template query (i.e., "format=template|template=..."), and the template in question should use the function #explode, found in StringFunctions, and now in ParserFunctions as well.

-Yaron


On Sat, Jul 25, 2009 at 6:30 PM, Joon Yeong Kim <joonyeengyo@gmail.com> wrote:
Following up from the previous email attached below,

My Movie template queries for the clips like this:

{{#ask:[[Has parent movie::{{SUBPAGENAME}}]]
| [[Category:Clips]]
|format=list}}

which results in the complete PAGENAME that looks like
'Creator/Movie_#1/Clip_#1'.

Is there anyway that I can just make it display as 'Clip_#1', just like we have different texts for some links?

Thanks again.




On Sat, Jul 25, 2009 at 3:22 PM, Joon Yeong Kim <joonyeengyo@gmail.com> wrote:
Hi, I'm trying to build a wiki for movies.  

So the structure of the wiki is going to be very hierarchical like the following..

Creator
      Movie #1
             Clip #1
      Movie #2
             Clip #1
             Clip #2

Right now I'm trying to use subpages to make this structure work since the names of the movies might collide and same for clips.

Does anyone know if there is any good ways to do this?



Also, my Creator page has a "Add Movie" link that takes me to Form:Movie where I can add the new movie.

Now, I have to set the name as "Creator/Movie #1" which gets really ugly when I go down the hierarchy.

Is there anyway I could just type in Movie #1 and let the wiki fill in the prefix by itself?


Thanks.

Joon.





--
Joon Yeong Kim
1st Year Graduate
Department of Electrical Engineering
Stanford University

------------------------------------------------------------------------------

_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user