Template:Pre: Difference between revisions

From xat wiki
No edit summary
No edit summary
Line 3: Line 3:


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


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


Output:
===Output===


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

Revision as of 12:26, 4 September 2016

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

Usage

Examples

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

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

Output

This is some preformatted text.
http://xat.com/web_gear/chat/SetScroller.php?Message=Hello%20all!&id=12345&pw=1234567890