Lines Matching refs:args
67 $args = $match;
68 $args = str_replace('@ID@', $INFO['id'], $args);
69 $args = str_replace('@NS@', getNS($INFO['id']), $args);
70 $args = str_replace('@PAGE@', noNS($INFO['id']), $args);
72 $args = explode(' ', $args, 2);
75 if (substr($args[0], -1) == ':') {
76 $params['ns'] = substr($args[0], 0, -1);
78 } elseif (substr($args[0], -2) == ':*') {
79 $params['ns'] = substr($args[0], 0, -2);
81 $params['page'] = $args[0];
85 if (!empty($args[1])) {
87 $params['page'] = ltrim($args[1], '+');
88 $params['append'] = (bool) ($args[1][0] == '+');
90 $params['uploadns'] = rtrim($args[1],':');