Hi, 
Thanks for your reply. I actually made this template (copied from somewhere
i don't remember) :

<noinclude>This template simplifies the creation of articles. When inserted
in a page, it creates a decorative table with much helpful information. It
also takes care of annotating the given data semantically, so that users can
easily find it or query it in other articles. Do not try to read this page's
source code for learning table syntax &ndash; there are far easier ways of
creating tables in MediaWiki.

To use this template, insert the following at the beginning of your user
page. All fields are strictly '''optional''' and should be omitted if no
data is given.
<pre>{{Blabla|
  title=Name (ie: Flickr)|
  mainurl= The main URL (without "http://";)|
  format= audio video image|
  notes= notes you'd like to write.
 }}
</pre>

The order of the fields is not relevant. The template should be given as the
''first'' thing on a page.

</noinclude><includeonly>

{| cellspacing="0" cellpadding="5" style="position:relative; margin: 0 0
0.5em 1em; border-collapse: collapse; border: 1px solid #aaa; background:
#fff; float: center; clear: right; width: 60em"
! colspan="2" style="background: #006600; color: white"
|[[Name:={{{Name|{{PAGENAME}}}}}]]
|-
{{#ifeq:{{{title|}}}|||{{Tablelongrow|Value=[[title::{{{title}}}]]|Color=#CAF7B7}}}}
|-
{{#ifeq:{{{mainurl|}}}|||{{Tablerow|Label=* Main
URL:|Value=[http://{{{mainurl}}} [[mainurl:=http://{{{mainurl}}}|{{{mainurl
label|{{{mainurl}}}}}}]]]}}}}
|-
{{#ifeq:{{{format|}}}|||{{Tablerow|Label=*
Formats:|Value=[[format::{{{format}}}]]}}}}
|-
{{#ifeq:{{{notes|}}}|||{{Tablerow|Label=* Notes:|Value={{{notes}}}}}}}
|}
</includeonly>

and i'm trying to find a way to make a kind of a list for formats so that I
can query easier for all audios, or all videos ...etc.
If I actually create a page the way it is above, it will create a link in
the wiki to audio video image (in one word) and I could not query the exact
format I want ? so do you have a suggestion for that ?
Thanks,
and thank you also for the tips about mainurl, i'll figure it out later.

-- 
View this message in context: 
http://www.nabble.com/SMW---Template-tf4058576.html#a11530706
Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to