Difference: TWikiRenderDotPm (9 vs. 10)

Revision 102014-10-05 - TWikiContributor

Line: 53 to 53
 
Changed:
<
<

ObjectMethod internalLink ($theWeb,$theTopic,$theLinkText,$theAnchor,$doLink,$doKeepWeb,$hasExplicitLinkLabel) -> $html

>
>

ObjectMethod internalLink ($theWeb,$theTopic,$theLinkText,$theAnchor,$doLink,$doKeepWeb,$hasExplicitLinkLabel,$theParams) -> $html

  Generate a link.
Line: 66 to 66
 
  • $doLinkToMissingPages - boolean: false means suppress link for non-existing pages
  • $doKeepWeb - boolean: true to keep web prefix (for non existing Web.TOPIC)
  • $hasExplicitLinkLabel - boolean: true in case of explicit link label
Added:
>
>
  • $theParams - the URL parameters specified by ?name1=value1;name2=valu2;... excluding the leading ?. This is added as per Item7505. This parameter's natural position is before $theAnchor. But to minimize code changes, it's introduced as the laster one
  Called by _handleWikiWord and _handleSquareBracketedLink and by Func::internalLink
Line: 312 to 316
 to display that value, protect the value from further processing.

The protected value is determined from the value of the field after:

Changed:
<
<
  • newlines are replaced with <br> or the value of $attrs->{newline}
>
>
  • newlines are replaced with value of $attrs->{newline} if defined
 
  • processing through breakName if $attrs->{break} is defined
  • escaping of $vars if $attrs->{protectdollar} is defined
  • | is replaced with &#124; or the value of $attrs->{bar} if defined
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiRenderDotPm.