Re: [website-dev] Categorising in the wiki

Clayton <[email protected]> Wed, 07 Jul 2010 15:08:41 +0200
Newsgroups gmane.comp.openoffice.devel.website
Message-ID <[email protected]>
On 07/07/2010 02:40 PM, Ivan M wrote:
>> Looking good! Maybe (Im not sure about this) it might be an idea to
>> link to:
>>
>> http://wiki.services.openoffice.org/w/index.php?title=Special%3ACategoryTree&target=MainIndex&mode=categories&dotree=Show+tree
>>
>> instead, as it is easier to navigate.
>
> You're right, this is easier to navigate (at least the information is
> not spread over many pages). However, I'm having trouble (in preview
> mode) inserting that URL as a link (the text inside the
> Documentation/Note template reverts to {{{1}}}) - Bjorn or Clayton,
> could you please do this?

Fixed.  The problem you were encountering is caused by the = signs in 
the URL. The details/reasons it broke are:

   - The SpecialPage showing the Category tree cannot be linked via a 
normal Wiki link (ie a [[wiki page name]] link).  It must be linked as 
an external URL.

   - The external URL contains key/value pairs used to generate the 
Category tree each time it's clicked.  The key/value pairs use the = 
sign to link the two together (key1=value1&key2=value2 and so on).

   - MediaWiki Templates use = signs to designate parameter names, so 
everything up to the first = sign in the URL was treated as a parameter 
name.  The result was the Template broke and all you get is {{{1}}} in 
the Wiki page.

The "fix" is actually easy... just wrap the = signs in the custom URL 
with {{ and }}.  So, every = in the URL should actually be {{=}}.  This 
calls a custom MediaWiki template that inserts the = where it needs to 
be in the URL and all is happy with the Template :-)


> There's also another small issue: namely, some HTML code (<p><br
> /></p>) seems to be inserted after the template, resulting in quite a
> large gap between the copyright notice and the buttons. Trouble is, I
> can't actually find it inside the Copyrightwarning2 template :(

Fixed.  It was just some extra hard returns lurking around in the 
Template and in the Copyrightwarning2 page.

C.
-- 
Clayton Cornell       [email protected]
OpenOffice.org Documentation Project co-lead