From Fritsche.Markus@gmx.net Tue Apr 26 21:15:17 2005 From: Markus Fritsche To: smallwiki@list.inf.unibe.ch Subject: Squeak SmallWiki prototype - external links Date: Tue, 26 Apr 2005 23:15:17 +0200 Message-ID: <426EAF65.10505@gmx.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3420531328458364364==" --===============3420531328458364364== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi! I saw the external link marker on the Squeak SmallWiki prototype; I saw that they're css based in wikipedia - does the prototype implement them the same way, and if yes, what do I have to alter to use them in my own wiki? Regards, Markus -- http://reauktion.de/archer/ --===============3420531328458364364==-- From renggli@iam.unibe.ch Wed Apr 27 05:35:00 2005 From: Lukas Renggli To: smallwiki@list.inf.unibe.ch Subject: Re: Squeak SmallWiki prototype - external links Date: Wed, 27 Apr 2005 07:35:00 +0200 Message-ID: <15c9891ae5c5cb823e7046d83a352e36@iam.unibe.ch> In-Reply-To: <426EAF65.10505@gmx.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5567464026855560683==" --===============5567464026855560683== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi Markus, > I saw the external link marker on the Squeak SmallWiki prototype; I > saw that they're css based in wikipedia - does the prototype implement > them the same way, and if yes, what do I have to alter to use them in > my own wiki? I checked this site, but I don't understand what you mean with the external link marker? http://en.wikipedia.org/wiki/Wikipedia: How_to_edit_a_page#Links_and_URLs The syntax of SmallWiki 1 [1] allows to alias links, is that what you are interested in? Else there is always the possibility to put raw html into your wiki pages, e.g. the two are equivalent: *Google>http://www.google.com* Google SmallWiki 2 will have a slightly enhanced syntax for links, e.g. it will support explicit embedding of any internal page, file, ... by putting something like *+Link+*. What is more it provides dynamic links, so one could write *isbn:123456789* and the wiki would automatically generate a link to a pre-configured bookstore. Cheers, Lukas - 1 ---------------------------------------------------------- To create a link, put it between *s. There are three different types of links: Internal Link: If the item exists in the Smallwiki (e.g. *Title of Item*), a link to that item shows up when the page is saved. In case the item does not already exist, the link shows up with a create-button next to it; click on it to create the new item. External Link: If the link is a valid url (e.g. *http://www.google.ch*), a link to that external page shows up. Mail Link: If the link is an email address (e.g. *self(a)mail.me.com*), a link to mail that person shows up, but it is obfuscated to prevent robots from collecting. You can also alias all these links using >. So, you can create a link like this: *Alias>Reference*. The link will show up as Alias, but link to Reference. For images, the alias text will become the alternate text for the image. -- Lukas Renggli http://www.lukas-renggli.ch --===============5567464026855560683==-- From Fritsche.Markus@gmx.net Wed Apr 27 12:27:18 2005 From: Markus Fritsche To: smallwiki@list.inf.unibe.ch Subject: Re: Squeak SmallWiki prototype - external links Date: Wed, 27 Apr 2005 14:27:18 +0200 Message-ID: <426F8526.3020509@gmx.net> In-Reply-To: <15c9891ae5c5cb823e7046d83a352e36@iam.unibe.ch> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3661291597381186474==" --===============3661291597381186474== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Lukas Renggli wrote: > Hi Markus, > >> I saw the external link marker on the Squeak SmallWiki prototype; I =20 >> saw that they're css based in wikipedia - does the prototype=20 >> implement them the same way, and if yes, what do I have to alter to=20 >> use them in my own wiki? > > > I checked this site, but I don't understand what you mean with the =20 > external link marker? Well, as far as I understand, external links (those created with=20 *link>http://target/*) are known to the structure as being external. So,=20 I'd like to alter the class on external links - like=20 http://box1.squeakfoundation.org:7777/ *Seaside>http://www.seaside.st/*=20 expands to Seasi= de.=20 The question is, where is the right place in the code to do that? Or is it a = preference I have not yet found? --=20 http://reauktion.de/archer/ --===============3661291597381186474==-- From renggli@iam.unibe.ch Wed Apr 27 16:07:35 2005 From: Lukas Renggli To: smallwiki@list.inf.unibe.ch Subject: Re: Squeak SmallWiki prototype - external links Date: Wed, 27 Apr 2005 18:07:35 +0200 Message-ID: <7b8e38b67978ff2ee0a2224d72f4251c@iam.unibe.ch> In-Reply-To: <426F8526.3020509@gmx.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2071826857240820428==" --===============2071826857240820428== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit >>> I saw the external link marker on the Squeak SmallWiki prototype; I >>> saw that they're css based in wikipedia - does the prototype >>> implement them the same way, and if yes, what do I have to alter to >>> use them in my own wiki? >> >> >> I checked this site, but I don't understand what you mean with the >> external link marker? > > Well, as far as I understand, external links (those created with > *link>http://target/*) are known to the structure as being external. > So, I'd like to alter the class on external links - like > http://box1.squeakfoundation.org:7777/ > *Seaside>http://www.seaside.st/* expands to > > href="http://www.seaside.st/">Seaside. > The question is, where is the right place in the code to do that? Or > is it a preference I have not yet found? Ahh, I see the point. If you want the target to be _blank for all the external links you could add the following method: VisitorRendererHtml>>acceptLinkExternal: aLink stream attributeAt: 'target' put: '_blank'. super acceptLinkExternal: aLink. If you want this attribute to be set just for a few external links either use HTML in these cases or add a property to LinkExternal and update the classes WikiParser, WikiScanner, VisitorRendererWiki and VisitorRendererHtml accordingly. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch --===============2071826857240820428==--