Last modified: 2012-03-29 19:21:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T37500, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35500 - hat symbol in templatename (embed in field)
hat symbol in templatename (embed in field)
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-26 19:14 UTC by John McClure
Modified: 2012-03-29 19:21 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John McClure 2012-03-26 19:14:29 UTC
In a template (escaping all), I have 
<pre>&#123;&#123;&#123;for template&#124;^page&#125;&#125;&#125;&#123;&#123;&#123;field&#124;header&#124;holds template&#125;&#125;&#125;&#123;&#123;&#123;end template&#125;&#125;&#125;
and later
&#123;&#123;&#123;for template&#124;^header&#124;embed in field=^page[header]&#124;multiple&#125;&#125;&#125;
</pre>

No button is shown for adding instances of the ^header template; before I added this code into the form the button was showing and operating fine. Instead I now see displayed:  <code>@insertHTML_^page___header@</code> Any ideas? I have 2.4 SF + 1.6 SMW + 1.17 MW.

I tried this feature because I want to specify default templates for the "header" field by something like 
<nowiki>{{{</nowiki>field|header|holds template|default=<nowiki>{{</nowiki>^header<nowiki>}}</nowiki><nowiki>}}}</nowiki>

Will I be able to get this to work or is there a another way. --[[User:Hypergrove|Hypergrove]] ([[User talk:Hypergrove|talk]]) 08:43, 26 March 2012 (UTC)

:My guess is that this is failing due to the "^" in the template name (which would be a bug). Is this happening on a public wiki? If not, is there any way you could reproduce the problem on a public wiki, like scratchpad.referata.com? [[User:Yaron Koren|Yaron Koren]] ([[User talk:Yaron Koren|talk]]) 13:28, 26 March 2012 (UTC)

:removed the 'hat' symbol and the code is behaving differently, not correctly yet. It is placing the add-another-button at the position of the template that embeds the repeating template, not within the scope of the repeating template as it did prior to my inserting this code.

So I've opened a bug for the hat symbol in the templatename.
Comment 1 John McClure 2012-03-26 19:15:55 UTC
This is two bugs right now - the hat symbol and the misplacement of the add-another-button. Do you want these to be separate bugs?
Comment 2 Yaron Koren 2012-03-26 19:21:27 UTC
If the second one is unrelated, then yes.
Comment 3 John McClure 2012-03-29 19:21:38 UTC
the hat in the name doesn't seem to be causing any problems, now that https://bugzilla.wikimedia.org/show_bug.cgi?id=35554 has been identified.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links