WIP user

Vorlage:Status: Unterschied zwischen den Versionen

Aus Afterbuy-Wiki
Wechseln zu:Navigation, Suche
K
Zeile 1: Zeile 1:
__HIDDENCAT__ {{#vardefine:status|{{{1|wip}}}}}
+
<phptag>
<indicator name="{{#var:status}}"><span class="ab_status ab_status_{{#var:status}}">{{{2|user}}}</span></indicator>
+
$status="WIP";
<includeonly>[[Category:Status-{{#var:status}}]]</includeonly>
+
$user="user";
 +
if(isset($argv) && is_array($argv) && isset($argv[1]) && isset($argv[2])){
 +
  $status=trim(strtoupper($argv[1]));
 +
  $user=trim(strtolower($argv[2]));
 +
}
 +
echo '<indicator name="{{#var:status}}"><span class="h3 bg-warning p-2 rounded"><i class="fas fa-info-circle text-danger"></i> [[:Category:'.$status.'|'.$status.']]  '.$user.'</span></indicator>
 +
<includeonly>[[Category:Status-'.$status.']]</includeonly>';
 +
</phptag>

Version vom 23. Juli 2021, 09:04 Uhr