Template:DDiv

From Wikibooks, open books for an open world
Jump to navigation Jump to search
{{{1}}}
{{{2}}}


Parameters[edit source]

{{{1}}}: The heading text: It should be placed immediately after the first cell bar, on the same line. {{{2}}}: The code lines: The entire code block should be placed in the line following the second cell bar, then apply Numbered List to it.

Example[edit source]

  • Note: Code lines MUST be given numbers using the numbered lists function in toolbars. The template is made for adding numbered lines to code, and cannot be used without the addition of numbers to stabilise the pre-formatting.
  • Refer to the example below for the layout to use.
  • Do not use parameter numbers. The first parameter is the heading and the second the code block.
  • To avoid distortion of the layout do not deviate from that below. That is; place the heading between two bars and the entire code block on the next line.
  • Select all of the lines of code and apply the Numbered List to it, from the toolbar.
  • As an alternative to numbered lists, use tags around the entire code block like ><syntaxhighlight lang="text" line start="1" highlight="1,5-7">...</syntaxhighlight> instead, and if no line numbers are needed, just miss out the line attribute, and possibly the highlight attribute.
{{DDiv
|'''Code to set the location of winre.wim'''|
# reagentc /info
# reagentc /disable
# reagentc /setreimage /path: R:\Recovery\WindowsRE
# reagentc /info
}}