Difference between revisions of "Template:=/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Meteor sandwich yum
blackwiki>Sardanaphalus
(See also formatting, category)
Line 1: Line 1:
{{documentation subpage}}
+
{{Documentation subpage}}
 +
{{High-risk|270,000+}}
 
<!--  
 
<!--  
 
     PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
 
     PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
 
     YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
 
     YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
 
-->
 
-->
{{high-risk|270,000+}}
+
== Usage ==
==Usage==
 
  
 
This template allows "<code>=</code>" to be used in template parameters.  
 
This template allows "<code>=</code>" to be used in template parameters.  
Line 11: Line 11:
 
This template cannot be [[WP:SUBST|substituted]].
 
This template cannot be [[WP:SUBST|substituted]].
  
==Example==
+
== Example ==
  
*<code><nowiki>{{Colors|black|yellow|2 + 2 {{=}} 4}}</nowiki></code> {{Arrow}} {{Colors|black|yellow|2 + 2 {{=}} 4}}
+
*<code><nowiki>{{Colors|black|yellow|2 + 2 {{=}} 4}}</nowiki></code> produces: {{Colors|black|yellow|2 + 2 {{=}} 4}}
  
 
You can also use named parameters to bypass the restriction:
 
You can also use named parameters to bypass the restriction:
*<code><nowiki>{{Colors|black|yellow|3= 2 + 2 = 4}}</nowiki></code> {{Arrow}} {{Colors|black|yellow|3= 2 + 2 = 4}}
+
*<code><nowiki>{{Colors|black|yellow|3= 2 + 2 = 4}}</nowiki></code> produces: {{Colors|black|yellow|3= 2 + 2 = 4}}
  
==TemplateData==
+
== TemplateData ==
 
{{TemplateDataHeader}}
 
{{TemplateDataHeader}}
 +
 
<TemplateData>
 
<TemplateData>
 
{"description":"A template to allow = to be used in template parameters","params":{}}
 
{"description":"A template to allow = to be used in template parameters","params":{}}
 
</TemplateData>
 
</TemplateData>
  
==See also==
+
== See also ==
* {{tl|((}} &mdash; produces {{((}}
+
* {{tlpad|((}}, which produces: {{((}}
* {{tl|))}} &mdash; produces {{))}}
+
* {{tlpad|))}}, which produces: {{))}}
* {{tl|!}} &mdash; produces {{!}}
+
* {{tlpad|!}}, which produces: {{!}}
* {{tl|Ifequal}}
+
* {{tl|ifequal}}
<includeonly>
+
 
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
+
<includeonly><!----PLEASE ADD CATEGORIES BELOW THIS LINE:---->
[[Category:Escape character templates|{{PAGENAME}}]]
+
[[Category:Wikipedia character-substitution templates]]
[[Category:Template namespace templates|{{PAGENAME}}]]
+
[[Category:Template namespace templates]]
[[Category:Mathematical formatting templates|{{PAGENAME}}]]
+
[[Category:Mathematical formatting templates]]
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
 
 
</includeonly>
 
</includeonly>

Revision as of 01:03, 19 August 2014

Usage

This template allows "=" to be used in template parameters.

This template cannot be substituted.

Example

  • {{Colors|black|yellow|2 + 2 {{=}} 4}} produces: 2 + 2 = 4

You can also use named parameters to bypass the restriction:

  • {{Colors|black|yellow|3= 2 + 2 = 4}} produces: 2 + 2 = 4

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for =

A template to allow = to be used in template parameters

Template parameters

ParameterDescriptionTypeStatus
No parameters specified

See also