Template:Red/doc View history

(Changed category)
m (Updated doc page)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{doc subpage}}
{{doc subpage}}
This template displays the text after the pipe (|) in red using the wiki markup:
This template displays the text after the pipe (|) in red.


'''<nowiki>{{Red|Display this in red.}}</nowiki>'''
== Usage ==


{{TemplateDisplay}}
Entering the following code onto a page:


{{Red|This is an example of text passed as the second parameter of this template.}}
:{{nowrapcode|<nowiki>{{Red|Display this in red.}}</nowiki>}}
 
Results in:
 
:{{Red|Display this in red.}}
 
==Template Data ==
<templatedata>
{
"params": {
"1": {
"label": "Text to be in red",
"description": "Put text that you want in red here",
"type": "string",
"required": true
}
},
"description": "This template makes text red."
}
</templatedata>


<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Text Formatting Templates]]
[[Category:Text formatting templates]]


<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>
</includeonly>

Latest revision as of 21:25, 7 May 2017

This is a documentation subpage for Template:Red.
It contains usage information, categories and other content that is not part of the original template page.

This template displays the text after the pipe (|) in red.

Usage

Entering the following code onto a page:

{{Red|Display this in red.}}

Results in:

Display this in red.

Template Data

This template makes text red.

Template parameters

ParameterDescriptionTypeStatus
Text to be in red1

Put text that you want in red here

Stringrequired