Template:anch

  • Revision slug: Template:anch
  • Revision title: Template:anch
  • Revision id: 422329
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

Revision Content

<%/* Parameter $0 : anchor string $1 : text (optional / default:$0) */ var text = $1 || $0; var anchor = '#' + string.replace($0, " ", "_"); %><%- text %>

Revision Source

<%/*

Parameter
    $0 : anchor string
    $1 : text (optional / default:$0)
*/

var text = $1 || $0;
var anchor = '#' + string.replace($0, " ", "_");


%><a href="<%- anchor %>"><%- text %></a>
Revert to this revision