Vorlage:Status: Unterschied zwischen den Versionen
Aus Afterbuy-Wiki
Admin (Diskussion | Beiträge) K |
Admin (Diskussion | Beiträge) |
||
(9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | + | {{Hide|{{#vardefine:stateClass| {{#ifright:edit|d-inline-block|d-none}} }} | |
− | <indicator name="{{#var:status}}"><span class=" | + | <phptag> |
− | <includeonly>[[Category:Status- | + | $status="WIP"; |
+ | $user="tbd"; | ||
+ | if(isset($argv) && is_array($argv) && isset($argv[1])){ | ||
+ | $status=trim(strtoupper($argv[1])); | ||
+ | if(isset($argv[2])){ | ||
+ | $user=trim(strtolower($argv[2])); | ||
+ | } | ||
+ | } | ||
+ | echo '<indicator name="{{#var:status}}"><span class="h4 bg-warning p-2 rounded font-weight-bold text-dark {{#var:stateClass}}"><i class="fas fa-info-circle text-danger"></i> [[:Category:Status-'.$status.'|'.$status.']] [[:Category:User-'.$user.'|'.$user.']]</span></indicator> | ||
+ | <includeonly>[[Category:Status-'.$status.']]</includeonly><includeonly>[[Category:User-'.$user.']]</includeonly>'; | ||
+ | </phptag>|status}} |