Configuring links: How to change the default URL link format settingsThe format of links to external Web pages is preset. What control do I have over how URL links are printed? ![]() 1903 Sun Typewriter All URL links are configured through format variables, which an administrator can change site-wide, per group or per page. For example, some print conventions specify that a URL should be printed in a
$UrlLinkFmt =
"<tbook:url name='\$LinkUrl'>\$LinkText</tbook:url>";
$UrlLinkTextFmt =
"<tbook:visual markup='sl'>\$LinkText</tbook:visual>".
"<tbook:footnote>\$LinkUrl</tbook:footnote>";
$UrlLinkFootnoteFmt =
"<tbook:url name='\$PageUrl'>\$LinkText</tbook:url>";
By default, a bare URL prints inline and a URL with link text prints the bare URL as a footnote. Long URL addresses are automatically split across lines on suitable break characters. The PDF links are clickable. To print Web addresses in a typewriter font, instead of the text font, add the following code to local/config.php after loading the Wikipublisher extensions:
if ( $format=='pdf' ) {
$UrlLinkFmt =
"<tbook:url name='\$LinkUrl'>".
"<tbook:visual markup='tt'>\$LinkText</tbook:visual>".
"</tbook:url>";
$UrlLinkFootnoteFmt =
"<tbook:url name='\$PageUrl'>".
"<tbook:visual markup='tt'>\$LinkText</tbook:visual>".
"</tbook:url>";
}
To use a sans-serif (gothic) font instead, change “tt” to “sf” in the visual tag’s markup attribute. Category: navigation aid |