Template:Red/doc View history

(Category creation)
m (usa:Template:Red/doc سے 8 نسخے درآمد کیے گئے: ImportingTemplates from USA)
 
(6 intermediate revisions by 2 users 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:Page Formatting Template]]
[[Category:Text formatting templates]]


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

Latest revision as of 12:29, 30 April 2020

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