Difference between revisions of "Template:Pre"

From xat wiki
Jump to: navigation, search
(Better way to do things.)
Line 1: Line 1:
<includeonly><pre<noinclude></noinclude>>{{{1}}}</pre<noinclude></noinclude>></includeonly>
+
<includeonly>{{#tag:pre|{{{1}}}}}</includeonly>
 
<noinclude>
 
<noinclude>
  
 
Examples:
 
Examples:
  
<nowiki>{{</nowiki>pre|This is some preformatted content.<nowiki>}}</nowiki>
+
<nowiki>{{</nowiki>pre|<nowiki><nowiki>This is some preformatted text.</nowiki></nowiki><nowiki>}}</nowiki>
 
 
If you're using a link within (or any wiki syntax):
 
  
 
<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|This is some preformatted content.}}
+
 
 +
{{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>}}
 
{{pre|<nowiki>http://xat.com/web_gear/chat/SetScroller.php?Message=Hello%20all!&id=12345&pw=1234567890</nowiki>}}
  
 
</noinclude>
 
</noinclude>

Revision as of 12:24, 4 September 2016


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