Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Template updates

2 views
Skip to first unread message

Sheppy

unread,
Mar 9, 2010, 4:31:29 PM3/9/10
to
I've updated some of the MDC templates:

domxref is now smarter about its path generation; it tries lang/
DOM:apiname first, and if that page doesn't exist, it tries lang/DOM/
apiname -- this helps because we switched between using colon and
slash as the separator at some point, so we had a lot of broken links.
In addition, if you specify the API name with ending parentheses (ie,
"apiname()"), the correct link is created ("lang/DOM:apiname"), but
the displayed text is "apiname()" so that it's obvious the described
API is a function.

interwiki has been fixed so that it can determine the correct language
when used in the "Project:" namespace, whether the namespace in the
URL is capitalized or not; previously it only worked when not
capitalized.

interface has been updated to work correctly when used in the
"Project:" namespace, using the same code used in the interwiki
template.

Not huge changes but should improve usability in little helpful ways.

Sheppy

Sheppy

unread,
Mar 18, 2010, 6:12:56 PM3/18/10
to
I've updated a few more templates today; the Previous, Next, and
PreviousNext templates have all been rewritten to use better syntax
and to be more intelligent. It's now much cleaner to add support for
more languages, and it works more relibaly (I hope!).

Also, I rewrote the interface-method template to be smarter as well;
it now looks first in the "XPCOM Interface Reference" tree, then tries
the top level of the site hierarchy, before deciding the target page
doesn't exist. Similarly, I updated the interface template to do the
same thing. I also added "interfacemethod" as a clone of interface-
method; it does the same thing but can use the more standard
{{interfacemethod("interfacename", "methodname")}} syntax instead of
the more convoluted syntax required when templates' names have the
minus sign in them.

Let me know if you spot any problems with the revised templates, and
of course feel free to tweak them if you see problems as well!

Sheppy

0 new messages