Difference between revisions of "Template:C"

From DoomWiki.org

m (Cannot recursively transclude template.)
m (Try to fix small fonts)
 
Line 1: Line 1:
<includeonly><span style="font-family: monospace, sans-serif;">{{{1}}}</span></includeonly><noinclude>
+
<includeonly><span style="font-family: 'this-font-does-not-exist', monospace, sans-serif; font-size: 1em;">{{{1}}}</span></includeonly><noinclude>
 
Used to include monospaced text which will be inlined in a paragraph or sentence.
 
Used to include monospaced text which will be inlined in a paragraph or sentence.
  
Line 8: Line 8:
 
Renders as:
 
Renders as:
  
:The <span style="font-family: monospace, sans-serif;">wipe_doMelt()</span> function in <span style="font-family: monospace, sans-serif;">f_wipe.c</span> handles the animation in [[intermission screen]]s.
+
:The <span style="font-family: 'this-font-does-not-exist', monospace, sans-serif; font-size: 1em;">wipe_doMelt()</span> function in <span style="font-family: monospace, sans-serif;">f_wipe.c</span> handles the animation in [[intermission screen]]s.
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 15:55, 30 March 2014

Used to include monospaced text which will be inlined in a paragraph or sentence.

This is useful, for example, for names of functions or variables inside source code, as well as files, lumps...

The {{c|wipe_doMelt()}} function in {{c|f_wipe.c}} handles the animation in [[intermission screen]]s.

Renders as:

The wipe_doMelt() function in f_wipe.c handles the animation in intermission screens.