« Modèle:Style » : différence entre les versions

De Inkipédia
Aller à la navigation Aller à la recherche
m (1 révision importée)
Aucun résumé des modifications
 
(2 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
<onlyinclude>{{#switch:{{{1}}}
<onlyinclude>{{#switch:{{{1}}}
|no|no1=style="background-color:#ececec;"{{!}}<font color="#C90000">{{{2|}}}</font>
|no|no1=style="background-color:#ececec;"{{!}}<font color="#C90000">{{{2|}}}</font>
|no2=style="background-color:#ff9696;"{{!}}<font color="#960000">{{{2|No}}}</font>
|no2=style="background-color:#ff9696;"{{!}}<font color="#960000">{{{2|Non}}}</font>
|yes=style="background-color:#a9de00;"{{!}}<font color="#00661A">{{{2|}}}</font>
|yes=style="background-color:#a9de00;"{{!}}<font color="#00661A">{{{2|}}}</font>
|?|unknown=style="background-color:#ececec;"{{!}}<font color="#daa520">{{{2|?}}}</font>
|?|unknown=style="background-color:#ececec;"{{!}}<font color="#daa520">{{{2|?}}}</font>
|partial=style="background-color:#ececec;"{{!}}<font color="#ae8800">{{{2|Partial}}}</font>
|partial=style="background-color:#ececec;"{{!}}<font color="#ae8800">{{{2|Partiel}}}</font>
|fullyactive=style="background:lime"{{!}}{{{2|Fully Active}}}
|fullyactive=style="background:lime"{{!}}{{{2|Actif à plein temps}}}
|partiallyactive=style="background:yellow"{{!}}{{{2|'''Partially Active'''}}}
|partiallyactive=style="background:yellow"{{!}}{{{2|'''Actif partiellement'''}}}
|inactive=style="background:red;color:white"{{!}}{{{2|'''Inactive'''}}}
|inactive=style="background:red;color:white"{{!}}{{{2|'''Inactif'''}}}
|'''<font color="#ff3030">Unknown style</font>'''}}</onlyinclude>
|excused=style="background:grey;color:white"{{!}}{{{2|'''Excusé'''}}}
|'''<font color="#ff3030">Style inconnu</font>'''}}</onlyinclude>


== Usage ==
== Usage ==
Ligne 58 : Ligne 59 :
|<nowiki>{{Style|inactive}}</nowiki>
|<nowiki>{{Style|inactive}}</nowiki>
|{{Style|inactive}}
|{{Style|inactive}}
|-
|<nowiki>{{Style|excused}}</nowiki>
|{{Style|excused}}
|-
|-
|}
|}

Dernière version du 17 juillet 2016 à 12:58


Usage

This template allows styling of table cells.

  • {{Style|<style>}}
  • {{Style|<style>|<custom text output>}}
Current styles
Style usage Style Example
{{Style|yes}}
{{Style|yes|Yes}} Yes
{{Style|no}} or {{Style|no1}}
{{Style|no|No}} No
{{Style|no2}} Non
{{Style|no2|No}} No
{{Style|unknown}} or {{Style|?}} ?
{{Style|?|Not Available}} or {{Style|?}} Not Available
{{Style|partial}} Partiel
{{Style|partial|Can do x but not y}} Can do x but not y
{{Style|fullyactive}} Actif à plein temps
{{Style|partiallyactive}} Actif partiellement
{{Style|inactive}} Inactif
{{Style|excused}} Excusé