Jump to content

Template:Underscores

From Wikibooks, open books for an open world

{{#replace:{{{1}}}||_}}

Purpose

Wikimarkup sub-template to make external links from natural language encyclopaedic titles with spaces.

Usage

When passed a phrase as the {{{1}}} parameter the sub-template returns an output phrase where spaces have been converted to '_' characters for making url friendly web links or section titles links within pages.

  • This template called from other templates to process before url or section title formation
  • Used extensively in the Trainz Wikibook