Template:Header: Difference between revisions

From Rosetta Code
Content added Content deleted
(added template template)
(spurious newline borks the headers)
Line 26: Line 26:


Created by --[[User:IanOsgood|IanOsgood]] 10:53, 17 September 2007 (MDT)
Created by --[[User:IanOsgood|IanOsgood]] 10:53, 17 September 2007 (MDT)
</noinclude>


<noinclude>{{template}}</noinclude>
{{template}}</noinclude>

Revision as of 18:25, 11 November 2007

[[{{{1}}}]][[Category:{{{1}}}]]

This is intended to be used for the header of a programming language solution. Used within the header, it adds a category with the same name. It can be invoked two ways:

=={{header|Your Language Here}}==

expands to:

==[[Your Language Here]] [[Category:Your Language Here]]==

To catch difficult wiki names like C++ and C#:

=={{header|Your Language Here|Display Name}}==

expands to:

==[[Your Language Here|Display Name]] [[Category:Your Language Here]]==

Created by --IanOsgood 10:53, 17 September 2007 (MDT)



This is a template. There are many others. See Category:RCTemplates for a complete list of templates.