Page MenuHomePhabricator

{{SUBST:GRAMMAR:foo|bar}} should render as {{GRAMMAR:foo|bar}}
Closed, InvalidPublic

Description

Author: gangleri

Description:
Sorry for this:

At the end of the pages
[[sl:MediaWiki_talk:Aboutpage]]
[[sl:MediaWiki_talk:Aboutsite]]
[[sl:MediaWiki_talk:Anonymous]]
you can see that
'{{SUBST:GRAMMAR:foo|bar}}' does *not render as '{{GRAMMAR:foo|bar}}'.

Will provide simpler testcases in the next comment.

If this is a VALID bug please double check if this SUBST syntax fails also with
other "predefined templates" / "magic word templates".

Thanks in advance.

best regards reinhardt [[user:gangleri]]


Version: unspecified
Severity: normal
URL: http://sl.wikipedia.org/w/index.php?title=Uporabnik:Gangleri/tests/bugzilla/05038&oldid=377612

Details

Reference
bz5038

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:08 PM
bzimport set Reference to bz5038.
bzimport added a subscriber: Unknown Object (MLST).

gangleri wrote:

[[sl:user:Gangleri/tests/bugzilla/05038]] as promised

gangleri wrote:

At [[sl:user:Gangleri/tests/bugzilla/05038#MediaWiki:Aboutpage_T]]

{{ns:project}}:O_{{GRAMMAR:dajalnik|{{SITENAME}}}}<br />
{{SUBST:ns:project}}:O_{{SUBST:GRAMMAR:dajalnik|{{SITENAME}}}}<br />

renders as
Wikipedija:O_Wikipediji
Wikipedija:O_Wikipedija

Please see that the first grammatical case is 'dajalnik' = dativ while the
second is 'imenovalnik' = nominative. The examples relate to function
*convertGrammar* implemented together with
http://cvs.sourceforge.net/viewcvs.py/wikipedia/phase3/languages/LanguageSl.php?rev=1.65&view=markup
for
Bug 4685: Slovenian LanguageSl.php hardcodes project namespace as Wikipedija

REOPENing this bug / request.

This is because you're embedding stuff out of order. The thing you actually reported works fine.

gangleri wrote:

Thanks Brion for the note!

Both
{{ns:project}}:O_{{GRAMMAR:dajalnik|{{SITENAME}}}}<br />
{{SUBST:ns:project}}:O_{{GRAMMAR:dajalnik|{{SUBST:SITENAME}}}}<br />
generate 'Wikipedija:O_Wikipediji' at
[[sl:user:Gangleri/tests/bugzilla/05038#MediaWiki:Aboutpage_T]]