模板:Option/doc
外觀
This template makes some styles optional.
It uses javascript code at Mediawiki:Monobook.js#Options d'affichage.
if it is used in a page, a box "版本" shows up in the left column, under the toolbox.
Syntax : {{Option|name of the option|style|text}}
Examples :
wiki command | result |
{{Option|texte en rouge|color:#ff0000|vive le rouge!}} | vive le rouge! |
{{Option|texte caché|display:none|I'm off...}} | I'm off... |
<span style="color:#ff0000">{{Option|texte en noir|color:#000000|vive le rouge!}}</span> | vive le noir! |