Munurin millum rættingarnar hjá "Fyrimynd:Stack documentation"

Content deleted Content added
Stovnaði síðu við "<noinclude> {{ombox |text=This template serves as the shared documentation for {{tl|Stack}}, {{tl|Stack begin}}, and {{tl|Stack end}}.}} </noinclude> This template can be..."
 
Xqbot (kjak | íkøst)
s Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
Linja 46:
-->To illustrate the utility of the stack templates, consider the following situation. We would like to have two right floating images at the top of the first section of our article (here, the ''Lipsum'' section), and one left floating image at the top of the second section (here, the ''Lorem'' section). To achieve this layout, without using a stack template, we could try the following code:<!--
 
--><sourcesyntaxhighlight lang="moin">
=====''Lipsum''=====
[[File:Test.png|thumb|right|Example 1a]]
Linja 58:
=====''Ipsum''=====
... text ...
</sourcesyntaxhighlight><!--
 
-->The result of this is shown in the [[#Without stack|without stack]] section below. Notice how the left floating image (Example 1c) is prevented from floating above the last right floating image (Example 1b). You may need to resize the width of your browser to fully appreciate the issue. To fix this problem, we can stack the two right floating images together, using the following code:<!--
 
--><sourcesyntaxhighlight lang="moin">
=====''Lipsum''=====
{{stack |[[File:Test.png|thumb|right|Example 2a]] [[File:Test.png|thumb|right|Example 2b]]}}
Linja 73:
=====''Ipsum''=====
... text ...
</sourcesyntaxhighlight><!--
 
-->The result of this is show in the [[#With stack|with stack]] section below. Notice how by adding this stack template, the left floating image (Example 2c) can now float higher and is not blocked from floating higher than the top of the last right floating image (Example 2b).