Template:Codeblock: Difference between revisions

From TF2 Classified Wiki
Jump to navigation Jump to search
NinjaV (talk | contribs)
m reformat (forgot lines being temp green)
NinjaV (talk | contribs)
m fixed link
Line 49: Line 49:
== Documentation ==
== Documentation ==
Just go to Valve Dev Community for their documentation, only difference is formatting (styling).
Just go to Valve Dev Community for their documentation, only difference is formatting (styling).
Link: [https://developer.valvesoftware.com/w/index.php?title=Template:Code VDC Code Documentation]
Link: [https://developer.valvesoftware.com/w/index.php?title=Template:CodeBlock VDC Code Documentation]


== Examples ==
== Examples ==

Revision as of 22:55, 17 August 2025


Documentation

Just go to Valve Dev Community for their documentation, only difference is formatting (styling). Link: VDC Code Documentation

Examples

With header

tf2classic/scripts/items/items_game.txt (directory)
txt (file type)
(code) This is a test! "Beep Boop!" - Soldier ''no italics'' - - - '''no bold''' <nowiki> tag makes formatting no format for code stuff!

yes italics - - - yes bold

Codey code code

Without header

(code) Hello, world! I'm headerless :( ''"blah blah blah"''

With lines enabled + Locked Height/Width

Note:It is not fully aligned and may break with lots of lines. Fast scrolling also breaks alignment but will refix.

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
A1 B2 C3 D4 Start of Long Line ----------------- End of Long Line You can also leave gaps 9 10 11 12 13 14 15 16