• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Truenewline

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

Transcludes a newline. Not HTML, no spaces, just a newline, nothing more. This allows a multiline #tag to be placed on a single line, even with indentation, which is otherwise impossible.

Usage

{{#tag:syntaxhighlight|foo1 = 'bar1';{{Truenewline}}foo2 = 'bar2';|lang=javascript}}

Result:

<syntaxhighlight lang="javascript">foo1 = 'bar1'; foo2 = 'bar2';</syntaxhighlight>

The above documentation is transcluded from Template:Truenewline/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Truenewline&oldid=12028226"
Last edited on 15 May 2022, at 01:23

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 15 May 2022, at 01:23.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop