Template:Pre: Difference between revisions

From Frontierpedia, the Microsoft Agent encyclopedia
en>Komusou
(" {{#ifeq:{{SUBPAGENAME}} | sandbox " code, {{pp-semi-protected| small=yes | reason=No need for such template to be anon-editable. }}, and Category:Templates using ParserFunctions)
en>Komusou
(moved doc and cats to /doc, remplaced with {{Template doc}})
Line 19: Line 19:
//-->{{#if:{{{18|}}}|{{!}}{{{18}}}|}}<!--
//-->{{#if:{{{18|}}}|{{!}}{{{18}}}|}}<!--
//-->{{#if:{{{19|}}}|{{!}}{{{19}}}|}}</div><noinclude>
//-->{{#if:{{{19|}}}|{{!}}{{{19}}}|}}</div><noinclude>
 
<!--
==Usage==
    PLEASE DO NOT ADD DOCUMENTATION/CATEGORIES/INTERWIKIS HERE
 
-->
<PRE><NOWIKI>
{{Pre|
Pre-formatted text
looks like this.
}}
</NOWIKI></PRE>
 
This template mimics the appearance of <code><nowiki><pre></pre></nowiki></code> tags. Main differences include:
*It allows mid-line-breaks
*Dissallows the text to overflow the page.
*Due to limitations, if the parameter contains any HTML or other Wikimarkup, it will be rendered as such. Thus if a parameter might contain any Wikitext, enclose it manually in <code><nowiki><nowiki></nowiki></nowiki></code> tags.
 
See the [[Template talk:Pre|Talk page]] for examples of use and further information.
 
{{pp-semi-protected| small=yes | reason=No need for such template to be anon-editable. }}
{{pp-semi-protected| small=yes | reason=No need for such template to be anon-editable. }}
{{#ifeq:{{SUBPAGENAME}} | sandbox
{{#ifeq:{{SUBPAGENAME}} | sandbox
  | {{Template sandbox notice}}
  | {{Template sandbox notice}}
  <!-- | {{Template doc}} -->
  | {{Template doc}}
}}
}}
 
<!--
[[Category:Formatting templates|{{PAGENAME}}]]
    MAKE ADDITIONS TO THE /doc SUBPAGE INSTEAD, THANKS
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
-->
 
</noinclude>
</noinclude>

Revision as of 16:26, 22 September 2007

Pre-formatted text
looks like this.

Template:Pp-semi-protected Template:Template doc