Hoppa till innehållet

Mall:Roterad text

Från Wikipedia

[visa] [redigera] [rensa sidcachen]

Dokumentation


Den här mallens kod har försetts med prefix för att öka kompatibiliteten med olika typer av webbläsare, men man bör ändå tänka på att ha en utformning så att innehållet fortfarande är läsbart i de fall den inte har stöd hos läsaren.


A shorthanded CSS code for rotating elements inside style attribute at -90 degrees. This template used with the style="" attribute, please do not add same codes. Functionality of this template very similar to template Transform-rotate, but this recommended to use for tables in song/musical contest articles as Eurovision Song Contest. Also, in Commons you can take files, that similar to this template.

First unnamed parameter {{{1}}} for text that can be rotated.

  • The named parameter |size= allows you to change the size of the text That should not exceed 118 pixels in height. The default is 14 pixels. Use only the numeric option (for example, 12).
  • Justering kan vid behov göras i x- och y-led med de frivilliga parametrarna x= och y=. Dessa anges som rent numeriska värden, utan enhet (px), t.ex. x=-30. Defaultinställningen är x= -50, y= 50.
  • Rotationsvinkeln är -90 grader, om inget annat anges. Gradtalet kan ställas in med parametern grader= och anges som rent numeriskt värde, t.ex. grader=-45.

When using this template to create the rotating effect, editors should consider carefully about the accessibility.

Mall:A note This template does not support IE8 or older. IE8 requires cumbersome calculating of matrices. You may implement it into this template if you know how to translate the formula into Lua.

This template was originally created to simplify the work with the texts used in the score tables of Project:Eurovision.

Voting procedure used:
  50% Jury & televote
Voting results
Moldova
Armenia
Belgium
Bosnia and Herzegovina
Finland
United Kingdom
Contestants
Moldova 41 6
Armenia 77 4 12 5 7
Belgium 149 5 1 12 12 6
Netherlands 33 6 3
Finland 13
Greece 81 3 8 3 6 2

Currently only Internet Explorer 8 and above, and Webkit browsers (Chrome, Safari, Opera 15.0+, Android native browser) support rendering the text in top-to-bottom, left-to-right format. Other browsers will render the text as left-to-right, top-to-bottom. See also:

For users of Firefox version 38.0 and above, you need to open the about:config page, and set layout.css.vertical-text.enabled as true to enable it.

For MediaWiki issues regarding this: bugzilla:9436