Last modified: 2011-03-13 18:06:16 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 9770 - Allow WikiTables in ParserFunctions without using transclusions
Allow WikiTables in ParserFunctions without using transclusions
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Daniel Friesen
Depends on:
  Show dependency treegraph
Reported: 2007-05-03 01:37 UTC by Daniel Friesen
Modified: 2011-03-13 18:06 UTC (History)
2 users (show)

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

Patch for includes/Parser.php (3.62 KB, patch)
2007-05-03 01:43 UTC, Daniel Friesen

Description Daniel Friesen 2007-05-03 01:37:37 UTC
Normally there are 2 ways to make a table which is affected by ParserFunctions
like #if:

Using HTML Tables:
<td>Something else</td>| }}

Or using the template {{!}} which would contain the | character:
| Something{{#if:{{{1|}}}|<nowiki>/
{{!}} Something else| }}

But DynamicPageList2 introduced the idea of getting around the ParserFunctions'
absolute control over the | by using ¦ instead. We should be able to use this
syntax to allow WikiTables to work with ParserFunctions. Technically this is the
most readable and most efficient method of adding ParserFunctions to tables:
| Something{{#if:{{{1|}}}|<nowiki>/
¦ Something else| }}
Comment 1 Daniel Friesen 2007-05-03 01:43:21 UTC
Created attachment 3567 [details]
Patch for includes/Parser.php

This patch was made for the current 1.10a HEAD trunk, MediaWiki was updated
before the patch was applied to the file.

The patch was made through only adding extra conditions and a few restricted
replacements so there should be no room for glitches such as ¦'s in the page
content being rendered as |'s. Also, only one explode was replaced with a
preg_split so there shouldn't be any sort of higher server load.
Comment 2 Rob Church 2007-05-19 19:34:43 UTC
This adds another horrible hack to workaround shortcomings of the parser, and furthermore complicates table markup which a lot of users object to.

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