Jump to content

Template:Wikisource-multi/testcases

From Wikipedia, the free encyclopedia

Objective

[edit]

Fix collision with Template:MultiCol

Note: the basis for this problem is explained here. Elements positioned outside of the normal HTML flow can overlap with one another as seen here.

Wikisource-multi, like Template:Wikisource, invokes Template:Side box which begins with a <table class="mbox-small"> (or "mbox-small-left"). This is defined at [1]:

body.mediawiki table.mbox-small { /* For the "small=yes" option. */
clear: right;
float: right;
margin: 4px 0 4px 1em;
width: 238px;
font-size: 88%;
line-height: 1.25em;

}

body.mediawiki table.mbox-small-left { /* For the "small=left" option. */
margin: 4px 1em 4px 0;
width: 238px;
border-collapse: collapse;
font-size: 88%;
line-height: 1.25em;

}

Template:MultiCol begins a default WikiTable with settings: {| width="{{{1|100%}}}" border="0" cellspacing="0" cellpadding="0" style="background-color:transparent;table-layout:fixed;"

Cheating

[edit]

In which the MultiCol is replaced by the template contents with the style "clear: right;" set.

Treaties

[edit]

The primary legislation, or treaties, are effectively the constitutional law of the European Union. They are created by governments from all EU Member States acting by consensus. They lay down the basic policies of the Union, establish its institutional structure, legislative procedures, and the powers of the Union. The Treaties that make up the primary legislation include:

The various annexes and protocols attached to these Treaties are also considered a source of primary legislation.

Testing sandbox version

[edit]
{{../sandbox|Consolidated version of the Treaty on European Union|Consolidated version of the Treaty on the Functioning of the European Union}}

Treaties

[edit]

The primary legislation, or treaties, are effectively the constitutional law of the European Union. They are created by governments from all EU Member States acting by consensus. They lay down the basic policies of the Union, establish its institutional structure, legislative procedures, and the powers of the Union. The Treaties that make up the primary legislation include:

The various annexes and protocols attached to these Treaties are also considered a source of primary legislation.


Testing main template

[edit]
{{Wikisource-multi|Consolidated version of the Treaty on European Union|Consolidated version of the Treaty on the Functioning of the European Union}}

Treaties

[edit]

The primary legislation, or treaties, are effectively the constitutional law of the European Union. They are created by governments from all EU Member States acting by consensus. They lay down the basic policies of the Union, establish its institutional structure, legislative procedures, and the powers of the Union. The Treaties that make up the primary legislation include:

The various annexes and protocols attached to these Treaties are also considered a source of primary legislation.