Jump to: navigation, search

Difference between revisions of "Template:Usage"

(Usage)
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
==Usage==
 
==Usage==
  
<pre>{{Usage|&lt;pre&gt;{{MailingList|dev}}&lt;/pre&gt;|2={{MailingList|dev}}}}</pre>
+
{{codeblock|1=<nowiki>{{Usage
 +
| &lt;pre&gt;{{MailingList|dev}}&lt;/pre&gt;
 +
| 2={{MailingList|dev}}
 +
}}</nowiki>}}
  
 
Renders as:
 
Renders as:
  
{{Usage|<pre>{{MailingList|dev}}</pre>|2={{MailingList|dev}}}}
+
{{Usage
 +
| <pre>{{MailingList|dev}}</pre>
 +
| 2={{MailingList|dev}}
 +
}}
  
 
'''Note:''' The "2=" bit is optional if the ''value'' of the rendered template in question does not include the '''=''' character.  See [http://en.wikipedia.org/wiki/Help:Template#Restrictions_on_parameter_values this page] for a full list of parameter limitations and relevant workarounds.
 
'''Note:''' The "2=" bit is optional if the ''value'' of the rendered template in question does not include the '''=''' character.  See [http://en.wikipedia.org/wiki/Help:Template#Restrictions_on_parameter_values this page] for a full list of parameter limitations and relevant workarounds.
  
</noinclude><includeonly>{| cellpadding="5" border="1" width="75%"
+
</noinclude><includeonly>{| cellpadding="5" border="1"
 
  ! Markup !! Rendering
 
  ! Markup !! Rendering
 
  |-
 
  |-
 
  | {{codeblock|1={{{1}}}}}
 
  | {{codeblock|1={{{1}}}}}
  | {{{2}}}
+
  |  
 +
{{{2}}}
 
  |}
 
  |}
 
</includeonly>
 
</includeonly>

Latest revision as of 16:28, 23 March 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 is a little odd.

Usage

{{Usage
 | <pre>{{MailingList|dev}}</pre>
 | 2={{MailingList|dev}}
 }}

Renders as:

Markup Rendering
{{MailingList|dev}}

Mailinglist.gif dev@eclipse.org


Note: The "2=" bit is optional if the value of the rendered template in question does not include the = character. See this page for a full list of parameter limitations and relevant workarounds.