On Dec 9, 2006, at 3:00 PM, Kasimir Gabert wrote:
Anchors work in HTML through the name attribute on an
<a tag. This
means that if you want to have a link to "Earp, Wyatt (1848-1929)",
you need to have something such as
<a name="EW1"> </a>'''Earp, Wyatt
(1848-1929)'''<br />
Because MediaWiki does not allow HTML's <a> tags directly (and you do
not want that), then you can make a simple extension such as the
following:
http://www.kgprog.com/anchors.php.txt
I think then that I'll just stay with using <div id=""></div> to
mark
anchors on pages.
Thanks.
Tim
On 12/9/06, Tim Ware <tim(a)hyperarts.com> wrote:
Running v1.8.2.
My pages are like an index, with the first line of each entry being,
for example:
Earp, Wyatt (1848-1929)
If I set this as a header of any type, I can link to it by specifying
[[#Earp, Wyatt (1848-1929)]]
My Question: Entering links from other pages to the Earp section of
its page, can I use a shortened version of the link call? It's too
cumbersome for users to have to enter an entire link title, so I'm
wondering if there's a shorthand as to how to markup the header or
change to link to that header?
I'm considering this approach instead of how I'm now doing it, which
is each entry title is just bolded and assigned an ID via a div:
<div id="earp">'''Earp, Wyatt
(1848-1929)'''<br />
Thanks. Tim
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
--
Kasimir Gabert
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l