Page MenuHomePhabricator

[[{{foo}}bar]] fails to generate a link if {{foo}} renders to :bla or #bla
Closed, ResolvedPublic

Description

Author: gangleri

Description:
Hallo!

Please compare
http://meta.wikimedia.org/wiki/Template_talk:Inline
http://meta.wikimedia.org/wiki/Template_talk:INLINE
http://epov.org/wd-gemet/index.php?title=Template:NSINLINE&action=edit

[[{{foo}}bar]] fails to generate a link if {{foo}} renders to :bla or #bla
the second and the third link show a workaround but how many templates should be
required to be able to provide a clean *working* inline linking as suggested at
Bug 2370: request for a <inline> ... </inline> extension

best regards reinhardt [[user:gangleri]]


Version: unspecified
Severity: trivial
URL: http://meta.wikimedia.org/wiki/Template_talk:Inline

Details

Reference
bz5590

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:12 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz5590.
bzimport added a subscriber: Unknown Object (MLST).

gangleri wrote:

Oops!
The seccond link should read
http://meta.wikimedia.org/wiki/Template_talk:NSINLINE
[[m:template_talk:NSINLINE]]
Sorry!

robchur wrote:

Reproducable. At the same time, I'm not sure if this couldn't be considered the
desired behaviour in most cases.

gangleri wrote:

(In reply to comment #2)

Reproducable. At the same time, I'm not sure if this couldn't be considered the
desired behaviour in most cases.

Sorry but I do not understand what is desired.

a) See more examples about rendering to ':bla' and '#bla' at
http://meta.wikimedia.org/wiki/Template_talk:Inline#MediaZilla:05590_.2F_bugzilla:05590
rendering to ':bla' and '#bla' breaks both localurl and [external links].

b) I do not see any way to control list alignment via template output but maybe
I am wrong. Please take a look at
[[meta:template_talk:Inline#alignment_via_parameters]].

best regards reinhardt [[user:gangleri]]

P.S. The scope of all this "bug reporting about inline syntax" is to be able to
have *one* "clean" solution / alternative to design templates without lots of
variants. There are both many templates that can be used with restrictions and
other implementations using always the ":" and causing lots of comments.

  • This bug has been marked as a duplicate of bug 12974 ***