Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Pre/doc: Difference between revisions

Template page
Created documentation page
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TemplateBox
{{TemplateBox
|1=1
  |1       = 1
|1d=Text contents to intended to be displayed
  |1label-en= text
|1def=
  |1d-en    = Text contents to intended to be displayed
|1stat=required
  |1aliases = <!-- List of aliases, separated by / (a slash) -->
|2=style
  |1type    = content
|2d=Additional CSS styles to be applied to the text
  |1def     = <!-- default value for the parameter -->
|2def=
  |1stat   = required
|2stat=optional
 
  |2       = class
  |2label-en= CSS classes
  |2d-en    = Additional CSS classes to be applied to the text
  |2aliases =
  |2type    = line
  |2def     =  
  |2stat   = optional-
 
  |3        = style
  |3label-en= CSS styles
  |3d-en    = Additional CSS styles to be applied to the text
  |3aliases =
  |3type    = line
  |3def    =
  |3stat    = optional-
 
|name=Pre
|name=Pre
|desc=This template acts similar to <nowiki><pre></nowiki> tags but the text does not run off screen; instead, a local scrollbar appears.
|desc=This template acts similar to <pr<nowiki />e> tags but the text does not run off screen; instead, a local scrollbar appears.
|namespace=all
|namespace=all
|usergroup=all
|usergroup=all
Line 16: Line 32:
|type=formatting
|type=formatting
|example=
|example=
|i18n-method=
|i18n-method=-
|i18n-desc=
|i18n-desc=
|seealso=
|seealso=
Line 23: Line 39:
|shorthand=
|shorthand=
|relieson=
|relieson=
|useTemplateData=only
}}
}}
==Examples==
==Examples==
Line 37: Line 54:
This code:
This code:
:<nowiki>{{Pre</nowiki>
:<nowiki>{{Pre</nowiki>
:<nowiki>|style=margin-left:200px; font-family: Consolas; Courier New; monospace; serif</nowiki>
:<nowiki>|style=margin-left: 200px;</nowiki>
:|Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. ...
:|Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. ...
:
:
Line 44: Line 61:
renders as:
renders as:
{{Pre
{{Pre
|style=margin-left:200px; font-family: Consolas; Courier New; monospace; serif
|style=margin-left: 200px;
|Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. ...
|Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. ...


Line 50: Line 67:
<includeonly>
<includeonly>
[[Category:Formatting templates|{{PAGENAME}}]]
[[Category:Formatting templates|{{PAGENAME}}]]
[[Category:Typing-aid templates]]
</includeonly>
</includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.