PesWiki.com

Menu

User:Reddi/Common formattings

Lasted edited by Andrew Munsey, updated on June 14, 2016 at 10:08 pm.

  • 7 errors has been found on this page. Administrator will correct this soon.
  • This page has been imported from the old peswiki website. This message will be removed once updated.

table.wikitable,

table.prettytable {

margin: 1em 1em 1em 0

background: #f9f9f9

border: 1px #aaaaaa solid

border-collapse: collapse

}

table.wikitable th, table.wikitable td,

table.prettytable th, table.prettytable td {

border: 1px #aaaaaa solid

padding: 0.2em

}

table.wikitable th,

table.prettytable th {

background: #f2f2f2

text-align: center

}

table.wikitable caption,

table.prettytable caption {

margin-left: inherit

margin-right: inherit

}

/ Style for "notices" /

.notice {

text-align: justify

margin: 1em

padding: 0.2em

}

#disambig {

border-top: 3px double #cccccc

border-bottom: 3px double #cccccc

}

#spoiler {

border-top: 2px solid #ddd

border-bottom:2px solid #ddd

}

/ Standard talk template style /

.Talk-Notice {

border: 1px solid #C0C090

background-color: #F8EABA

margin-bottom: 3px

width: 80%

border-spacing: 3px

margin-left: auto

margin-right: auto

}

.Talk-Notice:after {

content: "The CSS for this template should be changed. See There was an error working with the wiki: Code[1]."

}

/ Make template background appear correctly on all browsers /

.Talk-Notice td {

background: inherit

}

/ Metadata /

table.metadata {

border: 1px solid #aaaaaa

display: none

speak: none

}

.metadata-label {

color: #aaaaaa

}

/ Messagebox templates /

.messagebox {

border: 1px solid #aaaaaa

background-color: #f9f9f9

width: 80%

margin: 0 auto 1em auto

padding: .2em

text-align: justify

}

.messagebox.merge {

border: 1px solid #c0b8cc

background-color: #f0e5ff

text-align: center

}

.messagebox.cleanup {

border: 1px solid #9f9fff

background-color: #efefff

text-align: center

}

.messagebox.standard-talk {

border: 1px solid #c0c090

background-color: #f8eaba

}

/ Infobox template style /

.infobox {

border: 1px solid #aaaaaa

background-color: #f9f9f9

color: black

margin-bottom: 0.5em

margin-left: 1em

padding: 0.2em

float: right

clear: right

}

.infobox td,

.infobox th {

vertical-align: top

}

.infobox caption {

font-size: larger

margin-left: inherit

}

.infobox.bordered {

border-collapse: collapse

}

.infobox.bordered td,

.infobox.bordered th {

border: 1px solid #aaaaaa

}

.infobox.bordered .borderless td,

.infobox.bordered .borderless th {

border: 0

}

.infobox.sisterproject {

width: 20em

font-size: 90%

}

MediaWiki:Common.css

De BlogMail-Wiki Català

/ Common CSS for all skins /

/

/

/Estilos para el CommonsTicker (There was an error working with the wiki: Code[2])

According to the CSS specs, @import rules must precede any other CSS rules in a stylesheet, so this creates the need to place it in its own stylesheet for these purposes. /

@import "/w/index.php?title=Wikiproyecto:CommonsTicker/styles.css&action=raw&ctype=text/css&smaxage=2678400"

/ Style for "notices" /

.notice {

text-align: justify

margin: 1em

padding: 0.2em

}

#disambig {

border-top: 3px double #cccccc

border-bottom: 3px double #cccccc

}

#spoiler {

border-top: 2px solid #ddd

border-bottom:2px solid #ddd

}

/ Standard talk template style /

.Talk-Notice {

border: 1px solid #C0C090

background-color: #F8EABA

margin-bottom: 3px

width: 85%

border-spacing: 3px

margin-left: auto

margin-right: auto

}

/ Make template background appear correctly on all browsers /

.Talk-Notice td {

background: inherit

}

/ Choose whether to have AD/BC dates or CE/BCE dates/

/ First, the default : display both : See templates ADCE and BCEBC for how these are used/

.Use_Default_Date_Convention { display: inline }

.Use_AD_and_BC { display: none }

.Use_BCE_and_CE { display: none }

/ If you want to display AD and BC add the following to User:You/monobook.css page /

/

.Use_Default_Date_Convention { display: none }

.Use_AD_and_BC { display:inline }

.Use_BCE_and_CE { display:none }

/

/If you want to display CE and BCE add the following to User:You/monobook.css page /

/

.Use_Default_Date_Convention { display: none }

.Use_AD_and_BC { display:none }

.Use_BCE_and_CE {display:inline }

/

/Add formatting to make sure that "external references" from There was an error working with the wiki: Code[3] do

not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was

that the HTML code contained a SPAN following the anchor A this SPAN had the class

"urlexpansion", which was not displayed on screen, but was shown when the medium was

"print". The rules below ensure (a) that there is no extra padding to the right of

the anchor (displayed as "[]"), (b) that there is no "external link arrow" for

the link, and (c) that this SPAN of class "urlexpansion" is never shown.

~~~~

/

.plainlinksneverexpand {

background: none ! important

padding: 0 ! important

}

.plainlinksneverexpand .urlexpansion {

display : none ! important

}

/ Make sure that ext links displayed within "plainlinksneverexpand" don't get

the arrow...

/

.plainlinksneverexpand a {

background: none !important

padding: 0 !important

}

/ With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion"

following the anchor A, the anchor itself now has class "external autonumber" and the

expansion is inserted when printing (see the common printing style sheet at

http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the ":after" pseudo-

element of CSS. We have to switch this off for links due to Template:Ref!

~~~~

/

.plainlinksneverexpand a.external.autonumber:after {

display: none !important

}

/ Merge template style /

.messagebox {

border: 1px solid #aaaaaa

background-color: #f9f9f9

width: 85%

margin: 0 auto 1em auto

padding: .2em

text-align: justify

font-size: 90%

}

.messagebox.merge {

border: 1px solid #cf9fff

background-color: #f5edf5

text-align: center

}

.messagebox.cleanup {

border: 1px solid #9f9fff

background-color: #efefff

text-align: center

}

.messagebox.standard-talk {

border: 1px solid #c0c090

background-color: #f8eaba

text-align: center

}

.messagebox.warning {

border: 1px solid #fcc

background-color: #fee

text-align: center

font-size: 100%

}

/ Infobox template style /

.infobox {

border: 1px solid #aaaaaa

background-color: #f9f9f9

color: black

margin-bottom: 0.5em

margin-left: 1em

padding: 0.2em

float: right

clear: right

}

.infobox caption {

font-size: larger

margin-left: inherit

}

.infobox.bordered {

border-collapse: collapse

}

.infobox.bordered td,

.infobox.bordered th {

border: 1px solid #aaaaaa

}

.infobox.bordered .borderless td,

.infobox.bordered .borderless th {

border: 0

}

.infobox.sisterproject {

width: 20em

font-size: 90%

}

/ Importo formato para versos de WikiSource

.verse pre {

background-color: #ffffff

font-family:sans-serif

line-height: 150%

border: 0px

padding-left: 2em

margin: 0

white-space: pre

}

.verse p {

white-space: pre

}

.IconoPlantillaMantenimiento {

float:left

margin-left: 1em

margin-right: 1em

}

/ Support for Template:IPA, Template:Unicode and Template:Polytonic. The inherit declaration resets the font for all browsers except MSIE6. The empty comment must remain. /

.IPA {

font-family: Chrysanthi Unicode, Doulos SIL, Gentium, GentiumAlt, Code2000, TITUS Cyberbit Basic, DejaVu Sans, Bitstream Vera Sans, Bitstream Cyberbit, Arial Unicode MS, Lucida Sans Unicode, Hiragino Kaku Gothic Pro, Matrix Unicode

font-family //:inherit

}

.Unicode {

font-family: TITUS Cyberbit Basic, Code2000, Doulos SIL, Chrysanthi Unicode, Bitstream Cyberbit, Bitstream CyberBase, Bitstream Vera, Thryomanes, Gentium, GentiumAlt, Visual Geez Unicode, Lucida Grande, Arial Unicode MS, Microsoft Sans Serif, Lucida Sans Unicode

font-family //:inherit

}

.polytonic {

font-family: Athena, Gentium, Palatino Linotype, Arial Unicode MS, Lucida Sans Unicode, Lucida Grande, Code2000

font-family //:inherit

}

/ Estilos para tablas.

EXPERIMENTAL

la idea es, si se quiere que la primera columna de la tabla esté alineada

a la derecha, la segunda centrada y la tercera a la izquierda, usar

{| class="col1der col2cen col3izq"

en vez de repetir "style='text-align:right'", etc, en cada celda

/

table.col1der TD:first-child { text-align:right }

table.col1izq TD:first-child { text-align:left }

table.col1cen TD:first-child { text-align:center }

table.col2der TD:first-child + TD { text-align:right }

table.col2izq TD:first-child + TD { text-align:left }

table.col2cen TD:first-child + TD { text-align:center }

table.col3der TD:first-child + TD + TD { text-align:right }

table.col3izq TD:first-child + TD + TD { text-align:left }

table.col3cen TD:first-child + TD + TD { text-align:center }

table.col4der TD:first-child + TD + TD + TD { text-align:right }

table.col4izq TD:first-child + TD + TD + TD { text-align:left }

table.col4cen TD:first-child + TD + TD + TD { text-align:center }

table.col5der TD:first-child + TD + TD + TD + TD { text-align:right }

table.col5izq TD:first-child + TD + TD + TD + TD { text-align:left }

table.col5cen TD:first-child + TD + TD + TD + TD { text-align:center }

/ hiddenStructure importado de w:en para permitir esconder automáticamente

los parámetros vacíos en tablas /

.hiddenStructure {

display: none

speak: none

}

/ Ayudita para There was an error working with the wiki: Code[4]: los redirects aparecen en cursiva /

.allpagesredirect {font-style: italic}

/ Put a checker background at the image description page only visible if the image has transparent background /

#file img {background: url(http://upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat}

/ Separar en algún momento, según pone en: http://meta.wikimedia.org/wiki/Help:User_style /

//////////////////////////////////////////////////

/Estilos para el CommonsTicker (There was an error working with the wiki: Code[5])

According to the CSS specs, @import rules must precede any other CSS rules in a stylesheet, so this creates the need to place it in its own stylesheet for these purposes. /

@import "/w/index.php?title=Wikiproyecto:CommonsTicker/styles.css&action=raw&ctype=text/css&smaxage=2678400"

/ Style for "notices" /

.notice {

text-align: justify

margin: 1em

padding: 0.2em

}

#disambig {

border-top: 3px double #cccccc

border-bottom: 3px double #cccccc

}

#spoiler {

border-top: 2px solid #ddd

border-bottom:2px solid #ddd

}

/ Standard talk template style /

.Talk-Notice {

border: 1px solid #C0C090

background-color: #F8EABA

margin-bottom: 3px

width: 85%

border-spacing: 3px

margin-left: auto

margin-right: auto

}

/ Make template background appear correctly on all browsers /

.Talk-Notice td {

background: inherit

}

/ Choose whether to have AD/BC dates or CE/BCE dates/

/ First, the default : display both : See templates ADCE and BCEBC for how these are used/

.Use_Default_Date_Convention { display: inline }

.Use_AD_and_BC { display: none }

.Use_BCE_and_CE { display: none }

/ If you want to display AD and BC add the following to User:You/monobook.css page /

/

.Use_Default_Date_Convention { display: none }

.Use_AD_and_BC { display:inline }

.Use_BCE_and_CE { display:none }

/

/If you want to display CE and BCE add the following to User:You/monobook.css page /

/

.Use_Default_Date_Convention { display: none }

.Use_AD_and_BC { display:none }

.Use_BCE_and_CE {display:inline }

/

/Add formatting to make sure that "external references" from There was an error working with the wiki: Code[6] do

not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was

that the HTML code contained a SPAN following the anchor A this SPAN had the class

"urlexpansion", which was not displayed on screen, but was shown when the medium was

"print". The rules below ensure (a) that there is no extra padding to the right of

the anchor (displayed as "[]"), (b) that there is no "external link arrow" for

the link, and (c) that this SPAN of class "urlexpansion" is never shown.

~~~~

/

.plainlinksneverexpand {

background: none ! important

padding: 0 ! important

}

.plainlinksneverexpand .urlexpansion {

display : none ! important

}

/ Make sure that ext links displayed within "plainlinksneverexpand" don't get

the arrow...

/

.plainlinksneverexpand a {

background: none !important

padding: 0 !important

}

/ With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion"

following the anchor A, the anchor itself now has class "external autonumber" and the

expansion is inserted when printing (see the common printing style sheet at

http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the ":after" pseudo-

element of CSS. We have to switch this off for links due to Template:Ref!

~~~~

/

.plainlinksneverexpand a.external.autonumber:after {

display: none !important

}

/ Merge template style /

.messagebox {

border: 1px solid #aaaaaa

background-color: #f9f9f9

width: 85%

margin: 0 auto 1em auto

padding: .2em

text-align: justify

font-size: 90%

}

.messagebox.merge {

border: 1px solid #cf9fff

background-color: #f5edf5

text-align: center

}

.messagebox.cleanup {

border: 1px solid #9f9fff

background-color: #efefff

text-align: center

}

.messagebox.standard-talk {

border: 1px solid #c0c090

background-color: #f8eaba

text-align: center

}

.messagebox.warning {

border: 1px solid #fcc

background-color: #fee

text-align: center

font-size: 100%

}

/ Infobox template style /

.infobox {

border: 1px solid #aaaaaa

background-color: #f9f9f9

color: black

margin-bottom: 0.5em

margin-left: 1em

padding: 0.2em

float: right

clear: right

}

.infobox caption {

font-size: larger

margin-left: inherit

}

.infobox.bordered {

border-collapse: collapse

}

.infobox.bordered td,

.infobox.bordered th {

border: 1px solid #aaaaaa

}

.infobox.bordered .borderless td,

.infobox.bordered .borderless th {

border: 0

}

.infobox.sisterproject {

width: 20em

font-size: 90%

}

/ Importo formato para versos de WikiSource

.verse pre {

background-color: #ffffff

font-family:sans-serif

line-height: 150%

border: 0px

padding-left: 2em

margin: 0

white-space: pre

}

.verse p {

white-space: pre

}

.IconoPlantillaMantenimiento {

float:left

margin-left: 1em

margin-right: 1em

}

/ Support for Template:IPA, Template:Unicode and Template:Polytonic. The inherit declaration resets the font for all browsers except MSIE6. The empty comment must remain. /

.IPA {

font-family: Chrysanthi Unicode, Doulos SIL, Gentium, GentiumAlt, Code2000, TITUS Cyberbit Basic, DejaVu Sans, Bitstream Vera Sans, Bitstream Cyberbit, Arial Unicode MS, Lucida Sans Unicode, Hiragino Kaku Gothic Pro, Matrix Unicode

font-family //:inherit

}

.Unicode {

font-family: TITUS Cyberbit Basic, Code2000, Doulos SIL, Chrysanthi Unicode, Bitstream Cyberbit, Bitstream CyberBase, Bitstream Vera, Thryomanes, Gentium, GentiumAlt, Visual Geez Unicode, Lucida Grande, Arial Unicode MS, Microsoft Sans Serif, Lucida Sans Unicode

font-family //:inherit

}

.polytonic {

font-family: Athena, Gentium, Palatino Linotype, Arial Unicode MS, Lucida Sans Unicode, Lucida Grande, Code2000

font-family //:inherit

}

/ Estilos para tablas.

EXPERIMENTAL

la idea es, si se quiere que la primera columna de la tabla esté alineada

a la derecha, la segunda centrada y la tercera a la izquierda, usar

{| class="col1der col2cen col3izq"

en vez de repetir "style='text-align:right'", etc, en cada celda

/

table.col1der TD:first-child { text-align:right }

table.col1izq TD:first-child { text-align:left }

table.col1cen TD:first-child { text-align:center }

table.col2der TD:first-child + TD { text-align:right }

table.col2izq TD:first-child + TD { text-align:left }

table.col2cen TD:first-child + TD { text-align:center }

table.col3der TD:first-child + TD + TD { text-align:right }

table.col3izq TD:first-child + TD + TD { text-align:left }

table.col3cen TD:first-child + TD + TD { text-align:center }

table.col4der TD:first-child + TD + TD + TD { text-align:right }

table.col4izq TD:first-child + TD + TD + TD { text-align:left }

table.col4cen TD:first-child + TD + TD + TD { text-align:center }

table.col5der TD:first-child + TD + TD + TD + TD { text-align:right }

table.col5izq TD:first-child + TD + TD + TD + TD { text-align:left }

table.col5cen TD:first-child + TD + TD + TD + TD { text-align:center }

/ hiddenStructure importado de w:en para permitir esconder automáticamente

los parámetros vacíos en tablas /

.hiddenStructure {

display: none

speak: none

}

/ Ayudita para There was an error working with the wiki: Code[7]: los redirects aparecen en cursiva /

.allpagesredirect {font-style: italic}

/ Put a checker background at the image description page only visible if the image has transparent background /

#file img {background: url(http://upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat}

/

/

Comments