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

De Semantic MediaWiki - Sandbox

Aucun résumé des modifications
Balise : Éditeur de wikicode 2017
(chg)
 
(14 versions intermédiaires par un autre utilisateur non affichées)
Ligne 8 : Ligne 8 :
Modifiez la page pour voir le texte du modèle.
Modifiez la page pour voir le texte du modèle.
</noinclude><includeonly>
</noinclude><includeonly>
'''Page status:''' [[Has page status::{{#switch:{{{Page status|Draft}}}| Draft = <div style="background-color:#fc3; width: 280px; text-align: center;" > Draft </div>}}]]
'''Page status:''' {{#switch:
</includeonly><noinclude>
{{{Page status|}}}
old code:
|Draft= <div style="background-color: #fc3; width: 280px; text-align: center;"> Draft </div> {{#set: Has page status=Draft }}
 
|Live= <div style="background-color: #afa; width: 280px; text-align: center;"> Live </div> {{#set: Has page status=Live }}
| Live = <div style="background-color:#AAFFAA; width: 280px; text-align: center;"> Live </div>| Draft = <div style="background-color:#fc3; width: 280px; text-align: center;"> Draft </div>| Review = <div style="background-color:#36c; width: 280px; text-align: center;"> Review </div> | Record = <div style="background-color:#d33; width: 280px; text-align: center;"> Record </div>
|Review= <div style="background-color: #36c; width: 280px; text-align: center;"> Review </div> {{#set: Has page status=Review }}
</noinclude>
|Record= <div style="background-color: #d33; width: 280px; text-align: center;"> Record </div> {{#set: Has page status=Record }}
|#default= <div style="background-color: #fc3; width: 280px; text-align: center;"> Draft </div> {{#set: Has page status=Draft }}
}}
</includeonly>

Dernière version du 30 août 2018 à 14:25

Ceci est le modèle « Page status ». Il devrait être appelé selon le format suivant :

{{Page status
|Page status=
}}

Modifiez la page pour voir le texte du modèle.

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.