Last modified: 2010-05-15 15:56:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10860 - Unparsed Variable in Templates with a Wiki-Markup extension, like: <myext name="{{{1|}}}">..
Unparsed Variable in Templates with a Wiki-Markup extension, like: <myext nam...
Status: RESOLVED DUPLICATE of bug 2257
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.6.x
All All
: Normal trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-09 15:26 UTC by Sent fân Wyærda
Modified: 2010-05-15 15:56 UTC (History)
1 user (show)

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


Attachments

Description Sent fân Wyærda 2007-08-09 15:26:55 UTC
I also had found some familiar bug (http://bugzilla.wikimedia.org/show_bug.cgi?id=5253), but this one is kind of different:

I created a generic Wiki-Markup extension (http://www.mediawiki.org/wiki/Extending_wiki_markup), let's call it <php>, to process its contents. Everybody knows how PHP works so I don't need to give a <php></php> example.

That was step 1. Everything works. Even <php name="world">echo 'hello '.$argv['name'];</php> gives "hello world".

My problem:

I created a nice snip-let of code. And saved in a Template, lets say: Template:Example.

Now I call {{Example|{{My name}}|Your wife}} where Template:Example contains (at least) <php name="{{{1|}}}" does="{{{2|nobody}}}">..</php>

My problem: $argv['name'] and $argv['does'] are still in the form of '{{{1|}}}'.


---
disclaimer: I run a only (to edit) registered wiki [MediaWiki as content management system], so I don't worry (to much) about security risks of including PHP code in my website because I trust all users: Myself :D. Passwords and other critical information are still in Non-wiki php-documents, and will remain there.
Comment 1 Danny B. 2007-08-09 15:40:34 UTC

*** This bug has been marked as a duplicate of bug 2257 ***

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


Navigation
Links