Diskussion:Utilisateur:Zorroargh/Discussion: Unterschied zwischen den Versionen

Aus EnzyklopAtys

Wechseln zu: Navigation, Suche
(Neuer Abschnitt CSS per page?)
Zeile 2: Zeile 2:
  
 
Yes i can translate it into german.
 
Yes i can translate it into german.
 +
 +
== CSS per page? ==
 +
 +
Hello Zorroargh!
 +
 +
What do you think about adding this extension: https://www.mediawiki.org/wiki/Extension:CSS
 +
 +
The good thing: you can add some individual CSS for design proposes. Sometimes it is really helpful.
 +
 +
For example, you can add a css-file under Silan_Anleitung/Silan_Anleitung.css and put <nowiki>{{#css:Silan_Anleitung/silan_anleitung.css}}</nowiki> in Silan_Anleitung.
 +
 +
Everywhere where you put <nowiki>{{#css:Silan_Anleitung/silan_anleitung.css}}</nowiki> in the article i.e. the css will work.
 +
 +
OR
 +
 +
add it directly into the article:
 +
<nowiki>
 +
{{#css:
 +
  body {
 +
    background: yellow;
 +
    font-size: 20pt;
 +
    color: red;
 +
  }
 +
}}
 +
</nowiki>
 +
 +
It would only work for the article, not the theme itself.

Version vom 26. April 2019, 11:19 Uhr

Hello Zorroargh ;-)

Yes i can translate it into german.

CSS per page?

Hello Zorroargh!

What do you think about adding this extension: https://www.mediawiki.org/wiki/Extension:CSS

The good thing: you can add some individual CSS for design proposes. Sometimes it is really helpful.

For example, you can add a css-file under Silan_Anleitung/Silan_Anleitung.css and put {{#css:Silan_Anleitung/silan_anleitung.css}} in Silan_Anleitung.

Everywhere where you put {{#css:Silan_Anleitung/silan_anleitung.css}} in the article i.e. the css will work.

OR

add it directly into the article: {{#css: body { background: yellow; font-size: 20pt; color: red; } }}

It would only work for the article, not the theme itself.