Hi,
I'm looking for advice about how to get a Media file (it's an MS Word doc) to have a Word icon to its left, that, when clicked upon, opens the word doc, rather than the Image page for that icon.
I've tried nesting an [[Image:myicon.png]] as the caption for a Media file, but that doesn't work. I've also tried using [[Media:mywordfile.doc]] as the caption for the image, and that also didn't work.
Any guidance welcome.
Also, it might be nice to have another link type (maybe [[Attachment:myfile.txt]] which creates a reference to a list of attachments, and then elsewhere in the doc, use something like [[Inline:Attachments]] or whatever to create a table of files with icon, filename, maybe file size, mod date, author, etc.
If possible, please CC me in replies, I quickly fall behind on reading this thread.
cheers, -Nick
Nick, there seem to be two ways to do this 1) The simple way (which does not always work) is: * click on the icon to go to the description page * replace content of the description page by a REDIRECT statement 2) The difficult way (which should always be able to work): * See nl.wikipedia.org (main page) which in the middle has a list of icons that redirect to the different portals. * What they do is making a DIV that creates two layers. The bottom layer contains the image, the top layer the link. which would result in a template somewhat like this one (I call mine 'clicker') <div style="position: relative; z-index: 2; height: {{{2}}}; width: {{{2}}}; overflow: hidden;"> <div style="position: absolute; top: 0; left: 0; z-index: 2;">[[{{{1}}}|{{{2}}}]]</div> <div style="position: absolute; font-size: {{{2}}}; line-height: {{{2}}}; top: -1px; left: -1px; z-index: 3;">[[{{{3}}}|___]]</div> </div> Which is called like this in a page: {{clicker|Image:Calendar-week.gif|12px|Current events}}
Which means: {{templatename|param1 = what to show|param2=size in pixels|param3=page to link to}}
On 11/25/05, Nick Triantos nick-gmane@triantos.com wrote:
Hi,
I'm looking for advice about how to get a Media file (it's an MS Word doc) to have a Word icon to its left, that, when clicked upon, opens the word doc, rather than the Image page for that icon.
I've tried nesting an [[Image:myicon.png]] as the caption for a Media file, but that doesn't work. I've also tried using [[Media:mywordfile.doc]] as the caption for the image, and that also didn't work.
Any guidance welcome.
Also, it might be nice to have another link type (maybe [[Attachment:myfile.txt]] which creates a reference to a list of attachments, and then elsewhere in the doc, use something like [[Inline:Attachments]] or whatever to create a table of files with icon, filename, maybe file size, mod date, author, etc.
If possible, please CC me in replies, I quickly fall behind on reading this thread.
cheers, -Nick
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
-- ---- Met vriendelijke groeten / With kind regards Hans Voss --------------------------------------- skype: hans.voss google talk enabled I am looking for people to invite to Gmail. I have 100 invitations left.
On 25/11/05, Nick Triantos nick-gmane@triantos.com wrote:
I've tried nesting an [[Image:myicon.png]] as the caption for a Media file, but that doesn't work. I've also tried using [[Media:mywordfile.doc]] as the caption for the image, and that also didn't work.
There's currently no (nice) way of making an image link anywhere other than its description page; see http://bugzilla.wikipedia.org/show_bug.cgi?id=539 for the possibility of such a feature in future.
Also, it might be nice to have another link type (maybe [[Attachment:myfile.txt]] which creates a reference to a list of attachments, and then elsewhere in the doc, use something like [[Inline:Attachments]] or whatever to create a table of files with icon, filename, maybe file size, mod date, author, etc.
I'm not quite sure what the advantage would be of referencing the attachments in a different place to where they appear - or did you mean that they would appear twice, once inline and once at the end (or at a specified location)? Either way, the idea of being able to automatically include metadata about the files is an interesting one - it could almost be thought of as an extension of the current {{transclusion}} systems...
Also note that this is unlikely to be a priority for inclusion and maintenance within the main release, since it's not really the kind of file-handling that's used in the Wikimedia projects. Whether the current extension systems are powerful enough to allow it to be developed that way for people using MediaWiki in a more CMS-like context, I'm not sure.
-- Rowan Collins BSc [IMSoP]
Thanks Rowan (and Hans).
Re the utility of the feature I proposed, I saw it in twiki, and found it to be a nice feature, for some kinds of wiki pages. I agree that its use is probably higher priority for corporate uses of Mediawiki than for Wikipedia, but it does seem useful nonetheless.
cheers, -Nick
Rowan Collins wrote:
On 25/11/05, Nick Triantos nick-gmane@triantos.com wrote:
I've tried nesting an [[Image:myicon.png]] as the caption for a Media file, but that doesn't work. I've also tried using [[Media:mywordfile.doc]] as the caption for the image, and that also didn't work.
There's currently no (nice) way of making an image link anywhere other than its description page; see http://bugzilla.wikipedia.org/show_bug.cgi?id=539 for the possibility of such a feature in future.
Also, it might be nice to have another link type (maybe [[Attachment:myfile.txt]] which creates a reference to a list of attachments, and then elsewhere in the doc, use something like [[Inline:Attachments]] or whatever to create a table of files with icon, filename, maybe file size, mod date, author, etc.
I'm not quite sure what the advantage would be of referencing the attachments in a different place to where they appear - or did you mean that they would appear twice, once inline and once at the end (or at a specified location)? Either way, the idea of being able to automatically include metadata about the files is an interesting one - it could almost be thought of as an extension of the current {{transclusion}} systems...
Also note that this is unlikely to be a priority for inclusion and maintenance within the main release, since it's not really the kind of file-handling that's used in the Wikimedia projects. Whether the current extension systems are powerful enough to allow it to be developed that way for people using MediaWiki in a more CMS-like context, I'm not sure.
-- Rowan Collins BSc [IMSoP]
mediawiki-l@lists.wikimedia.org