Jump to: navigation, search

Difference between revisions of "Template:Usage"

Line 1: Line 1:
===Usage===
+
<noinclude>
 +
Nasty meta-template for providing template usage information.  The intention is to provide a standardized formatting for showing template usage within the body of the template itself.  Instructions for the uninitiated will be forthcoming...
 +
 
 +
Due to inadequacies in the MediaWiki markup, the syntax to actually use ''this'' template are a little odd.  They follow (notice, funky recursive template definition):
 +
 
 +
{{Usage|<nowiki>{{Usage|<nowiki>{{Newsgroup|eclipse.platform.swt}}</nowiki>|{{Newsgroup|eclipse.platform.swt}}}}</nowiki>|{{Usage|<nowiki>{{Newsgroup|eclipse.platform.swt}}</nowiki>|{{Newsgroup|eclipse.platform.swt}}}}}}
 +
</noinclude><includeonly>===Usage===
  
 
<table><tr><td>
 
<table><tr><td>
Line 7: Line 13:
 
Renders as:
 
Renders as:
  
{{{2}}}
+
{{{2}}}</includeonly>

Revision as of 17:17, 12 February 2008

Nasty meta-template for providing template usage information. The intention is to provide a standardized formatting for showing template usage within the body of the template itself. Instructions for the uninitiated will be forthcoming...

Due to inadequacies in the MediaWiki markup, the syntax to actually use this template are a little odd. They follow (notice, funky recursive template definition):

Markup Rendering
{{Usage|<nowiki>{{Newsgroup|eclipse.platform.swt}}

Newsgroup.gif eclipse.platform.swt

</nowiki>|

Markup Rendering
{{Newsgroup|eclipse.platform.swt}}

Newsgroup.gif eclipse.platform.swt

}}