Template:Pre: Difference between revisions

From xat wiki
(Avoid using <pre> HTML tag.)
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><pre<noinclude></noinclude>>{{{1}}}</pre<noinclude></noinclude>></includeonly>
<includeonly>{{#tag:pre|{{{1}}}}}</includeonly><noinclude>
<noinclude>
Allows the use of pre HTML tag, in a way that editors and translators are familiar with.


Examples:
==Usage==
===Example===


<nowiki>{{</nowiki>pre|This is some preformatted content.<nowiki>}}</nowiki>
<nowiki>{{</nowiki>pre|<nowiki>This is some preformatted text.</nowiki><nowiki>}}</nowiki>


If you're using a link within:
===Output===


<nowiki>{{</nowiki>pre|<nowiki><nowiki>http://xat.com/web_gear/chat/SetScroller.php?Message=Hello%20all!&id=12345&pw=1234567890</nowiki></nowiki><nowiki>}}</nowiki>
{{pre|This is some preformatted text.}}
 
Output:
{{pre|This is some preformatted content.}}
{{pre|<nowiki>http://xat.com/web_gear/chat/SetScroller.php?Message=Hello%20all!&id=12345&pw=1234567890</nowiki>}}


</noinclude>
</noinclude>

Latest revision as of 13:15, 4 September 2016

Allows the use of pre HTML tag, in a way that editors and translators are familiar with.

Usage

Example

{{pre|This is some preformatted text.}}

Output

This is some preformatted text.