Last modified: 2012-05-02 13:30:12 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 T38433, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36433 - Seemingly Not possible to generate a dynamic <ref>{{{blah}}}</ref> directly in a template.
Seemingly Not possible to generate a dynamic <ref>{{{blah}}}</ref> directly i...
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-02 12:47 UTC by alex.farlie
Modified: 2012-05-02 13:30 UTC (History)
2 users (show)

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


Attachments

Description alex.farlie 2012-05-02 12:47:31 UTC
Template-
http://en.wikisource.org/wiki/Template:Statute_chapter_link

Test -
http://en.wikisource.org/wiki/User:Sfan00_IMG/Sandbox

What should be happening is that along with the link, an appropriate reference should be generated. This is not happening in the example given.

The code used inside the [[ ]] tags and the <ref></ref> pair is simmilar.

The first instance inside ([[ ]]) works as intended.

The second instance inside the <ref></ref> tags fails, (in that it's seemingly not reading the params supplied).

This seems nonsensical as it should be possible to generate <ref></ref> pairs dynamically.
Comment 1 とある白い猫 2012-05-02 13:16:09 UTC
The problem occurs if a parameter is nested within refs. 

ie: <ref>{{{parameter}}}</ref>

Actual links or templates can be passed into refs but not parameters.
Comment 2 Beau 2012-05-02 13:30:12 UTC
(In reply to comment #0)
> Template-
> http://en.wikisource.org/wiki/Template:Statute_chapter_link
> 
I have mangled your template a bit. Use {{#tag:ref|}} construct instead of <ref></ref>. https://en.wikisource.org/w/index.php?diff=3839315&oldid=3839263

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


Navigation
Links