Difference between revisions of "Template:CodeInline"

From BattleMaster Wiki
Jump to navigation Jump to search
(Since a few are refering to it...)
 
m (minor adjustment)
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"><nowiki>{{{1}}}</nowiki></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. Text is also tagged to ignore wiki markup.
  
 
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==

Revision as of 15:03, 3 September 2009

{{{1}}}

Purpose

Displays code inline with the text. Text is also tagged to ignore wiki markup.

A message

A response
A message with some
{{{1}}}
Another response


Usage

{{CodeInline|some text}} produces:

{{{1}}}