$line = substr( $line, 1 );
}
+ // Implies both are valid for table headings.
if ( $first_character === '!' ) {
$line = str_replace( '!!', '||', $line );
}
# Split up multiple cells on the same line.
# FIXME : This can result in improper nesting of tags processed
- # by earlier parser steps, but should avoid splitting up eg
- # attribute values containing literal "||".
- $cells = StringUtils::explodeMarkup( '||', $line );
+ # by earlier parser steps.
+ $cells = explode( '||', $line );
$outLine = '';
public function callParserFunction( $frame, $function, array $args = array() ) {
global $wgContLang;
-
# Case sensitive functions
if ( isset( $this->mFunctionSynonyms[1][$function] ) ) {
$function = $this->mFunctionSynonyms[1][$function];
}
/**
- * @todo FIXME: Update documentation. makeLinkObj() is deprecated.
* Replace "<!--LINK-->" link placeholders with actual links, in the buffer
- * Placeholders created in Skin::makeLinkObj()
+ * Placeholders created in Linker::link()
*
* @param string $text
* @param int $options
if ( $handler->validateParam( $paramName, $match ) ) {
$handlerOptions[$paramName] = $match;
} else {
- // Guess not. Append it to the caption.
+ // Guess not, consider it as caption.
wfDebug( "$parameterMatch failed parameter validation\n" );
- $label .= '|' . $parameterMatch;
+ $label = '|' . $parameterMatch;
}
}
} else {
- // concatenate all other pipes
- $label .= '|' . $parameterMatch;
+ // Last pipe wins.
+ $label = '|' . $parameterMatch;
}
}
- // remove the first pipe
+ // Remove the pipe.
$label = substr( $label, 1 );
}