Difference between revisions of "Template:Infobox major-mode"

From WikEmacs
Jump to navigation Jump to search
m (made "auto activates" field optional)
m
Line 15: Line 15:
 
|header4    =
 
|header4    =
 
|label4    = Auto-activates for
 
|label4    = Auto-activates for
|data4      = {{#if{{{auto activates|}}}|<tt>{{{auto activates}}}</tt>}}
+
|data4      = {{#if:{{{auto activates|}}}|<tt>{{{auto activates}}}</tt>}}
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Revision as of 20:21, 1 April 2012


C++
Library cc-mode
Command c++-mode
Builtin yes
Auto-activates for *.ii, *.CC, *.HH, *.cpp, *.hpp, *.cxx, *.hxx, *.c++, *.h++, *.cc, *.hh


Generate a major-mode infobox.

{{Infobox major-mode
|title = C++
|library = cc-mode
|command = c++-mode
|builtin = yes
|auto activates = *.ii, *.CC, *.HH, *.cpp, *.hpp, *.cxx, *.hxx, *.c++, *.h++, *.cc, *.hh
}}

will generate the infobox shown at the top right corner of this page.