[arch-releng] {{Article summary text}} template on mediawiki
I'm having problems with the {{Article summary text}} template on our wiki. Try: git clone git://github.com/Dieterbe/aif.git checkout experimental branch install the markdown package from aur. then in the aif directory, run ./make-doc.sh look at docs/official_install_guide_en.html, the part that goes: {{Article summary text| <some text here> }} for some reason, if you put that on the wiki ( http://wiki.archlinux.org/index.php/DeveloperWiki:Official_Arch_Linux_Instal...) the summary (upper right corner) just becomes '{{1}}'. By compressing the text and removing some links I can usually make it work, but of course it would be nice to have the links. And I'm not sure what exactly causes this problem. Does anyone know any inherent limitations of the {{Article summary text}} template or other things i should be aware of? even if i check that the links are in wiki format and don't span multiple lines it doesn't work... Dieter
By compressing the text and removing some links I can usually make it work, but of course it would be nice to have the links. And I'm not sure what exactly causes this problem. Does anyone know any inherent limitations of the {{Article summary text}} template or other things i should be aware of? even if i check that the links are in wiki format and don't span multiple lines it doesn't work...
It seems the wiki does not like the ? in the git url... Looking at ways to work around that now. Alternatively maybe just link to projects.archlinux.org ?
On Fri, Aug 7, 2009 at 12:14 PM, Henning Garus<henning.garus@googlemail.com> wrote:
By compressing the text and removing some links I can usually make it work, but of course it would be nice to have the links. And I'm not sure what exactly causes this problem. Does anyone know any inherent limitations of the {{Article summary text}} template or other things i should be aware of? even if i check that the links are in wiki format and don't span multiple lines it doesn't work...
It seems the wiki does not like the ? in the git url... Looking at ways to work around that now. Alternatively maybe just link to projects.archlinux.org ?
Actually I was wrong, but close, its the "=". I did not expect to find a solution this fast, the Mediawiki documentation is better than I remembered.
From http://en.wikipedia.org/wiki/Help:Template#Restrictions_on_parameters_and_pa... :
Unnamed parameters cannot be assigned a value containing an equals sign (=); the parser will treat the equals sign as the assignment of a named parameter.
The page describes several workarounds, I think the most sensible is prepending the parameter with "1=" , ie replace " {{Article summary text| " with " {{Article summary text| 1=" .
On Fri, 7 Aug 2009 12:41:23 +0200 Henning Garus <henning.garus@googlemail.com> wrote:
On Fri, Aug 7, 2009 at 12:14 PM, Henning Garus<henning.garus@googlemail.com> wrote:
By compressing the text and removing some links I can usually make it work, but of course it would be nice to have the links. And I'm not sure what exactly causes this problem. Does anyone know any inherent limitations of the {{Article summary text}} template or other things i should be aware of? even if i check that the links are in wiki format and don't span multiple lines it doesn't work...
It seems the wiki does not like the ? in the git url... Looking at ways to work around that now. Alternatively maybe just link to projects.archlinux.org ?
Actually I was wrong, but close, its the "=". I did not expect to find a solution this fast, the Mediawiki documentation is better than I remembered.
From http://en.wikipedia.org/wiki/Help:Template#Restrictions_on_parameters_and_pa... :
Unnamed parameters cannot be assigned a value containing an equals sign (=); the parser will treat the equals sign as the assignment of a named parameter.
The page describes several workarounds, I think the most sensible is prepending the parameter with "1=" , ie replace " {{Article summary text| " with " {{Article summary text| 1=" .
Thanks man! I'll try this when I get home Dieter
On Fri, 7 Aug 2009 12:41:23 +0200 Henning Garus <henning.garus@googlemail.com> wrote:
On Fri, Aug 7, 2009 at 12:14 PM, Henning Garus<henning.garus@googlemail.com> wrote:
By compressing the text and removing some links I can usually make it work, but of course it would be nice to have the links. And I'm not sure what exactly causes this problem. Does anyone know any inherent limitations of the {{Article summary text}} template or other things i should be aware of? even if i check that the links are in wiki format and don't span multiple lines it doesn't work...
It seems the wiki does not like the ? in the git url... Looking at ways to work around that now. Alternatively maybe just link to projects.archlinux.org ?
Actually I was wrong, but close, its the "=". I did not expect to find a solution this fast, the Mediawiki documentation is better than I remembered.
From http://en.wikipedia.org/wiki/Help:Template#Restrictions_on_parameters_and_pa... :
Unnamed parameters cannot be assigned a value containing an equals sign (=); the parser will treat the equals sign as the assignment of a named parameter.
The page describes several workarounds, I think the most sensible is prepending the parameter with "1=" , ie replace " {{Article summary text| " with " {{Article summary text| 1=" .
Thanks mate. this works like a charm. I've committed this fix with you as author. http://projects.archlinux.org/?p=aif.git;a=commitdiff;h=e3356452586b0d526f06... Dieter
participants (2)
-
Dieter Plaetinck
-
Henning Garus