Difference between revisions of "Template:Code/testcases"
Jump to navigation
Jump to search
imported>DePiep (testing fontsize (from Talk)) |
imported>Edokter |
||
| (7 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{template test cases notice}} | {{template test cases notice}} | ||
| + | |||
| + | <div style="display:inline-block; max-width:49%; vertical-align:top;"> | ||
| + | <h2>Live version</h2> | ||
| + | <small>[[Template:Code]]</small> | ||
| + | |||
| + | {{code|lang=html|class=generic-class|id=html-summary|style=font-size:120%;| | ||
| + | <html> <head> <title>...</title> </head> <body>...</body> </html> | ||
| + | }} | ||
| + | |||
| + | Most HTML elements are enclosed between a start tag and an end tag, such as {{code|lang=html|<p>...</p>}}. Some are not, such as {{code|lang=html|<br>}}. | ||
| + | </div> | ||
| + | |||
| + | <div style="display:inline-block; max-width:49%; vertical-align:top;"> | ||
| + | <h2>Sandbox version</h2> | ||
| + | <small>[[Template:Code/sandbox]]</small> | ||
| + | |||
| + | {{code/sandbox|lang=html|class=generic-class|id=html-summary|style=font-size:120%;| | ||
| + | <html> <head> <title>...</title> </head> <body>...</body> </html> | ||
| + | }} | ||
| + | |||
| + | Most HTML elements are enclosed between a start tag and an end tag, such as {{code/sandbox|lang=html|<p>...</p>}}. Some are not, such as {{code/sandbox|lang=html|<br>}}. | ||
| + | </div> | ||
== Testing sandbox version == | == Testing sandbox version == | ||
| + | <div style="background:#EEEEEE;"><!--May highlight other differences.--> | ||
Fontsize in FF: | Fontsize in FF: | ||
; Plain | ; Plain | ||
* Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | * Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | ||
| − | ; {{tl|code}} | + | ; {{tl|code/sandbox}} |
| − | * {{code|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}} | + | * {{code/sandbox|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}} |
;{{tag|code}} | ;{{tag|code}} | ||
* <code>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</code> | * <code>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</code> | ||
| − | < | + | ;syntaxhighlight |
| − | + | * <syntaxhighlight lang="text" enclose=none>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</syntaxhighlight> | |
| − | |||
| − | |||
| − | |||
| − | == | + | ;source |
| + | * <source lang="text" enclose=none>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</source> | ||
| − | < | + | ; font-family:monospace; only |
| + | * <span style="font-family:monospace;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span> | ||
| − | + | </div> | |
Latest revision as of 10:58, 8 April 2016
| This is the template test cases page for the sandbox of Template:Code. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Live version
<html> <head> <title>...</title> </head> <body>...</body> </html>
Most HTML elements are enclosed between a start tag and an end tag, such as <p>...</p>. Some are not, such as <br>.
Sandbox version
<html> <head> <title>...</title> </head> <body>...</body> </html>
Most HTML elements are enclosed between a start tag and an end tag, such as <p>...</p>. Some are not, such as <br>.
Testing sandbox version
Fontsize in FF:
- Plain
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
- {{code/sandbox}}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<code>...</code>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
- syntaxhighlight
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
- source
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
- font-family:monospace; only
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.