Skabelon:Sidebar/testcases
Dette er side med testcases for sandkasse til Skabelon:Sidebar. for at opdatere eksemplet. Hvis der er mange eksempler med en kompliceret skabelon, kan de sidste give fejl på grund af begrænsninger i MediaWiki, se HTML-kommentaren "NewPP limit report" på den dannede side. Du kan også bruge Special:ExpandTemplates til at kigge på resultatet af brug af skabelonen. Du kan teste, hvordan denne side ser ud i forskellige temaer med dette link: |
Basic tests[rediger kildetekst]
{{Sidebar}} | {{Sidebar/sandkasse}} | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
{{Sidebar}} | {{Sidebar/sandkasse}} | ||||||||
---|---|---|---|---|---|---|---|---|---|
|
|
{{Sidebar}} | {{Sidebar/sandkasse}} | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Float tests[rediger kildetekst]
Description | Main | Sandbox | ||||||
---|---|---|---|---|---|---|---|---|
No float parameter |
Text before
Text after: No float parameter defaults to floating right. This causes subsequent text to appear to the sidebar's left. |
Text before
Text after: No float parameter defaults to floating right. This causes subsequent text to appear to the sidebar's left. | ||||||
Empty float parameter |
Text before
Text after: An empty float parameter also defaults to floating right. This causes subsequent text to appear to the sidebar's left. |
Text before
Text after: An empty float parameter also defaults to floating right. This causes subsequent text to appear to the sidebar's left. | ||||||
float = left |
Text before
Text after: A "float=left" parameter floats the sidebar to the left instead of the right. This causes subsequent text to appear to the sidebar's right. |
Text before
Text after: A "float=left" parameter floats the sidebar to the left instead of the right. This causes subsequent text to appear to the sidebar's right. | ||||||
float = right |
Text before
Text after: A "float=right" parameter floats the sidebar to the right, as usual. This causes subsequent text to appear to the sidebar's left. |
Text before
Text after: A "float=right" parameter floats the sidebar to the right, as usual. This causes subsequent text to appear to the sidebar's left. | ||||||
float = none |
Text before
Text after: A "float=none" makes the sidebar not float at all. This causes subsequent text to appear below the sidebar. |
Text before
Text after: A "float=none" makes the sidebar not float at all. This causes subsequent text to appear below the sidebar. |
[rediger kildetekst]
Description | Main | Sandbox | ||||||
---|---|---|---|---|---|---|---|---|
Outertitle |
The "outertitle" of a sidebar appears outside the sidebar's border, within the sidebar's top margin. The "outertitle" should not touch text above it, or the sidebar border below it.
|
The "outertitle" of a sidebar appears outside the sidebar's border, within the sidebar's top margin. The "outertitle" should not touch text above it, or the sidebar border below it.
| ||||||
Navbar off |
|
| ||||||
Navbar style |
|
|
Embedding[rediger kildetekst]
Description | Main | Sandbox | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
child=yes |
|
|