Template: Markdown Code Block

From Valve Developer Community
Jump to: navigation, search
Note.png Note: This template can be used raw on other pages. See Includes raw templates to see all pages that have a raw templates.

This template allows text to be formatted as a Markdown-style block of code.

As you can see, this is not real Markdown, but just a template that allows you to use similar text format when working on page design.


This template has several styles:

  • default - enabled by default, but disabled if other styles are activated;
  • limited- default design with limited height (after reaching the maximum, scrolling will be activated);
  • outline - less saturated version with outline;
  • outline-limited - same as outline, but with a limited height (after reaching the maximum, scrolling will be activated).

Usage

Just insert {{MdCodeBlock|YourText}} into the page and replace YourText with your content to make the code block styling work.


Manage Wiki Formatting:
You can use <nowiki>YourText</nowiki> to disable processing of various commands that allow the wiki to style your text. Also, it can disable the template style.


Switching Styles
Insert stylename| after {{MdCodeBlock| and replace stylename with the name of an existing style.


Adding a Block Header
A description of including a header in a block can be found here.

Example

{{MdCodeBlock|Hello World}}
{{MdCodeBlock|outline|1. Hello World 2. Hello World 3. Hello World 4. Hello World}}

Preview

Default

// DSP Effects // 0 : "Normal (off)" // 1 : "Generic" // 2 : "Metal Small" // 3 : "Metal Medium" // 4 : "Metal Large" // 5 : "Tunnel Small" // 6 : "Tunnel Medium" // 7 : "Tunnel Large" // 8 : "Chamber Small" // 9 : "Chamber Medium" // 10: "Chamber Large" // 11: "Bright Small" // 12: "Bright Medium" // 13: "Bright Large" // 14: "Water 1" // 15: "Water 2" // 16: "Water 3" // 17: "Concrete Small" // 18: "Concrete Medium" // 19: "Concrete Large" // 20: "Big 1" // 21: "Big 2" // 22: "Big 3" // 23: "Cavern Small" // 24: "Cavern Medium" // 25: "Cavern Large" // 26: "Weirdo 1" // 27: "Weirdo 2" // 28: "Weirdo 3" "tf2.respawn_room" { "dsp" "1" "playlooping" { "volume" ".6" "pitch" "100" "wave" "ambient/underground.wav" } "playlooping" { "volume" ".30" "pitch" "100" "wave" "ambient/machine_hum2.wav" } "playlooping" { "volume" ".75" "pitch" "100" "position" "0" "attenuation" "0.7" "wave" "ambient/machine_hum.wav" } }


Limited

// DSP Effects // 0 : "Normal (off)" // 1 : "Generic" // 2 : "Metal Small" // 3 : "Metal Medium" // 4 : "Metal Large" // 5 : "Tunnel Small" // 6 : "Tunnel Medium" // 7 : "Tunnel Large" // 8 : "Chamber Small" // 9 : "Chamber Medium" // 10: "Chamber Large" // 11: "Bright Small" // 12: "Bright Medium" // 13: "Bright Large" // 14: "Water 1" // 15: "Water 2" // 16: "Water 3" // 17: "Concrete Small" // 18: "Concrete Medium" // 19: "Concrete Large" // 20: "Big 1" // 21: "Big 2" // 22: "Big 3" // 23: "Cavern Small" // 24: "Cavern Medium" // 25: "Cavern Large" // 26: "Weirdo 1" // 27: "Weirdo 2" // 28: "Weirdo 3" "tf2.respawn_room" { "dsp" "1" "playlooping" { "volume" ".6" "pitch" "100" "wave" "ambient/underground.wav" } "playlooping" { "volume" ".30" "pitch" "100" "wave" "ambient/machine_hum2.wav" } "playlooping" { "volume" ".75" "pitch" "100" "position" "0" "attenuation" "0.7" "wave" "ambient/machine_hum.wav" } }


Outline

// DSP Effects // 0 : "Normal (off)" // 1 : "Generic" // 2 : "Metal Small" // 3 : "Metal Medium" // 4 : "Metal Large" // 5 : "Tunnel Small" // 6 : "Tunnel Medium" // 7 : "Tunnel Large" // 8 : "Chamber Small" // 9 : "Chamber Medium" // 10: "Chamber Large" // 11: "Bright Small" // 12: "Bright Medium" // 13: "Bright Large" // 14: "Water 1" // 15: "Water 2" // 16: "Water 3" // 17: "Concrete Small" // 18: "Concrete Medium" // 19: "Concrete Large" // 20: "Big 1" // 21: "Big 2" // 22: "Big 3" // 23: "Cavern Small" // 24: "Cavern Medium" // 25: "Cavern Large" // 26: "Weirdo 1" // 27: "Weirdo 2" // 28: "Weirdo 3" "tf2.respawn_room" { "dsp" "1" "playlooping" { "volume" ".6" "pitch" "100" "wave" "ambient/underground.wav" } "playlooping" { "volume" ".30" "pitch" "100" "wave" "ambient/machine_hum2.wav" } "playlooping" { "volume" ".75" "pitch" "100" "position" "0" "attenuation" "0.7" "wave" "ambient/machine_hum.wav" } }


Outline Limited

// DSP Effects // 0 : "Normal (off)" // 1 : "Generic" // 2 : "Metal Small" // 3 : "Metal Medium" // 4 : "Metal Large" // 5 : "Tunnel Small" // 6 : "Tunnel Medium" // 7 : "Tunnel Large" // 8 : "Chamber Small" // 9 : "Chamber Medium" // 10: "Chamber Large" // 11: "Bright Small" // 12: "Bright Medium" // 13: "Bright Large" // 14: "Water 1" // 15: "Water 2" // 16: "Water 3" // 17: "Concrete Small" // 18: "Concrete Medium" // 19: "Concrete Large" // 20: "Big 1" // 21: "Big 2" // 22: "Big 3" // 23: "Cavern Small" // 24: "Cavern Medium" // 25: "Cavern Large" // 26: "Weirdo 1" // 27: "Weirdo 2" // 28: "Weirdo 3" "tf2.respawn_room" { "dsp" "1" "playlooping" { "volume" ".6" "pitch" "100" "wave" "ambient/underground.wav" } "playlooping" { "volume" ".30" "pitch" "100" "wave" "ambient/machine_hum2.wav" } "playlooping" { "volume" ".75" "pitch" "100" "position" "0" "attenuation" "0.7" "wave" "ambient/machine_hum.wav" } }