Difference between revisions of "Template:CodeInline"

From BattleMaster Wiki
Jump to navigation Jump to search
(Since a few are refering to it...)
 
m (duh...)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div style="font-family: monospace; background-color: #FAFAFA; padding: 2px; border: 1px dashed #DDD; display: inline">{{{1}}}</div><noinclude>
+
<div style="font-family: monospace; background-color: #CCCCFF; padding: 2px; border: 1px dashed #DDD; display: inline">{{{1}}}</div><noinclude>
 +
 
 
==Purpose==
 
==Purpose==
This is almost identical to {{tl|Code}}, but it displays the code inline, because something like:
+
Displays code inline with the text.
  
 
A message
 
A message
Line 8: Line 9:
 
:::Another response
 
:::Another response
  
is much nicer looking than something like:
 
 
A message
 
:A response
 
::A message with some {{Code|code}}
 
:::Another response
 
  
 
==Usage==
 
==Usage==

Latest revision as of 15:05, 3 September 2009

{{{1}}}

Purpose

Displays code inline with the text.

A message

A response
A message with some
inline code
Another response


Usage

{{CodeInline|some text}} produces:

some text