Jump to content

Help:-show classes/generate

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Tamzin (talk | contribs) at 16:36, 18 September 2022 (fix fix fix fix?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

/* This set of CSS rules was generated using {User:Tamzin/-show classes/generate}. See User:Tamzin/-show classes for more information */

/* Group 0. "negative-right" classes: .unconfirmed-show and .anonymous-show */

{{subst:#if:{{subst:yesno|yes}}| .anonymous-show{{subst:#if:{{subst:yesno|no}}|, .unconfirmed-show}} { border: 3px blue solid !important; } div.anonymous-show, p.anonymous-show,{{subst:#if:{{subst:yesno|n}}| div.unconfirmed-show, p.unconfirmed-show}} { display:block !important; } span.anonymous-show, small.anonymous-show{{subst:#if:{{subst:yesno|no}}|, span.unconfirmed-show, small.unconfirmed-show}} { display:inline !important; } table.anonymous-show{{subst:#if:{{subst:yesno|no}}|, table.unconfirmed-show}} { display:table !important; } li.anonymous-show{{subst:#if:{{subst:yesno|no}}| li.unconfirmed-show}} { display:list-item !important; } |/* Not enabled */}}

/* Group 1. "Entry-level" rights: user, autoconfirmed, and (for non-admins) extendedconfirmed. */

{{subst:#if:{{subst:yesno|yes}}| .user-show{{subst:#if:{{subst:yesno|no}}|, .autoconfirmed-show}}{{subst:#if:{{subst:yesno|no}}|, .extendedconfirmed-show}} { background-color: lightgray !important; } |/* Not enabled */}}

/* Group 2. Other rights you have. */

{{subst:#if:{{subst:yesno|yes}}| {{subst:#invoke:String|replace|pattern=(.*),|replace=%1|source= {{subst:#if:{{subst:yesno|no}}|.abusefilter-show, }}{{subst:#if:{{subst:yesno|no}}|.abusefilter-helper-show, }}{{subst:#if:{{subst:yesno|no}}|.checkuser-show, }}{{subst:#if:{{subst:yesno|no}}|.extendedmover-show, }}{{subst:#if:{{subst:yesno|no}}|.patroller-show, }}{{subst:#if:{{subst:yesno|no}}|.sysop-show, }}{{subst:#if:{{subst:yesno|no}}|.templateeditor-show, }} }} { background-color: khaki !important; } |/* Not enabled */}}

/* Group 3. Rights you don't have, which are not redundant with rights you do have. */

{{subst:#if:{{subst:yesno|yes}}| {{subst:#invoke:String|replace|pattern=(.*),|replace=%1|source= {{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}{{subst:yesno|no}}||.abusefilter-helper-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||.extendedconfirmed-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||.extendedmover-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||.patroller-show, }}{{subst:#if:{{subst:yesno|no}}||.sysop-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||.templateeditor-show, }}{{subst:#if:{{subst:yesno|no}}||.abusefilter-show, }}{{subst:#if:{{subst:yesno|no}}||.autoconfirmed-show, }}{{subst:#if:{{subst:yesno|no}}||.checkuser-show, }} }} { border: 3px orange solid !important; }

{{subst:#invoke:String|replace|pattern=(.*),|replace=%1|source= {{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}{{subst:yesno|no}}||div.abusefilter-helper-show, p.abusefilter-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||div.extendedconfirmed-show, p.extendedconfirmed-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||div.extendedmover-show, p.checkuser-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||div.patroller-show, p.patroller-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||div.sysop-show, p.sysop-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||div.templateeditor-show, p.templateeditor-show, }}{{subst:#if:{{subst:yesno|no}}||div.abusefilter-show, p.abusefilter-show, }}{{subst:#if:{{subst:yesno|no}}||div.autoconfirmed-show, p.autoconfirmed-show, }}{{subst:#if:{{subst:yesno|no}}||div.checkuser-show, p.checkuser-show, }} }} { display: block !important; }

{{subst:#invoke:String|replace|pattern=(.*),|replace=%1|source= {{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}{{subst:yesno|no}}||span.abusefilter-helper-show, small.abusefilter-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||span.extendedconfirmed-show, small.extendedconfirmed-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||span.extendedmover-show, small.checkuser-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||span.patroller-show, small.patroller-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||span.sysop-show, small.sysop-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||span.templateeditor-show, small.templateeditor-show, }}{{subst:#if:{{subst:yesno|no}}||span.abusefilter-show, small.abusefilter-show, }}{{subst:#if:{{subst:yesno|no}}||span.autoconfirmed-show, small.autoconfirmed-show, }}{{subst:#if:{{subst:yesno|no}}||span.checkuser-show, small.checkuser-show, }} }} { display: inline !important; }

{{subst:#invoke:String|replace|pattern=(.*),|replace=%1|source= {{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}{{subst:yesno|no}}||table.abusefilter-helper-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||table.extendedconfirmed-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||table.extendedmover-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||table.patroller-show, }}{{subst:#if:{{subst:yesno|no}}||table.sysop-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||table.templateeditor-show, }}{{subst:#if:{{subst:yesno|no}}||table.abusefilter-show, }}{{subst:#if:{{subst:yesno|no}}||table.autoconfirmed-show, }}{{subst:#if:{{subst:yesno|no}}||table.checkuser-show, }} }} { display:inline !important; }

{{subst:#invoke:String|replace|pattern=(.*),|replace=%1|source= {{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}{{subst:yesno|no}}||li.abusefilter-helper-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||li.extendedconfirmed-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||li.extendedmover-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||li.patroller-show, }}{{subst:#if:{{subst:yesno|no}}||li.sysop-show, }}{{subst:#if:{{subst:yesno|no}}{{subst:yesno|no}}||li.templateeditor-show, }}{{subst:#if:{{subst:yesno|no}}||li.abusefilter-show, }}{{subst:#if:{{subst:yesno|no}}||li.autoconfirmed-show, }}{{subst:#if:{{subst:yesno|no}}||li.checkuser-show, }} }} { display:inline !important; } | /* Not enabled */}}

/* Anomaly highlighter: Elements with -show for "lesser included" perms but not their "higher" cousins, e.g. patroller-show without sysop-show or abusefilter-helper-show without abusefilter-show. */

{{subst:#if:{{subst:yesno|yes}}| .abusefilter-helper-show:not(.abusefilter-show), .abusefilter-helper-show:not(.sysop-show), .extendedconfirmed-show:not(.sysop-show), .extendedmover-show:not(.sysop-show), .patroller-show:not(.sysop-show), .templateeditor-show:not(.sysop-show) { background: red !important; } div.abusefilter-helper-show, p.abusefilter-helper-show, div.extendedconfirmed-show, p.extendedconfirmed-show, div.extendedmover-show, p.extendedmover-show, div.patroller-show, p.patroller-show, div.templateeditor-show, p.templateeditor-show { display: block !important; } span.abusefilter-helper-show, small.abusefilter-helper-show, span.extendedconfirmed-show, small.extendedconfirmed-show, span.extendedmover-show, small.extendedmover-show, span.patroller-show, small.patroller-show, span.templateeditor-show, small.templateeditor-show { display: inline !important; } table.abusefilter-helper-show, table.extendedconfirmed-show, table.extendedmover-show, table.patroller-show, table.templateeditor-show { display: table !important; } li.abusefilter-helper-show, li.extendedconfirmed-show, li.extendedmover-show, li.patroller-show, li.templateeditor-show { display: list-item !important; } }}