Template:Pre/doc: Difference between revisions
Template page
More actions
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= | |1type = content | ||
|2d=Additional CSS | |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> | |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; | :<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; | |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> | ||