Template:Infobox command: Difference between revisions
m But how does it work? We do need this label to always be displayed just like "Restrictions" lebel, and don't show moderator, admins, etc. You should tell me how to modify it instead of reverting again. I can't see any problems because I use exactly the same tag structure as the "Restrictions" label below |
m 87 revisions imported |
||
| (14 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
{{#invoke:infobox|infobox | |||
|title=<code>/{{{name|{{SUBPAGENAME}}}}}</code> | |||
|imagearea=none | |||
|rows= | |||
{{#if: {{{alias|}}} | {{infobox row|class=list-style-none|Aliases|{{{alias}}} }} }} | |||
{{#if: {{{hidden|}}} | {{infobox row|class=list-style-none|Visibility|{{ | |||
#ifeq: {{{hidden|}}} | 1 | Hidden | Visible }}}} | |||
}} | |||
{{infobox row|[[Permission level|Permission level<br>required]]|{{#if:{{{oplevel|}}}|{{{oplevel}}}|Unknown}}}} | |||
{{infobox row|[[Commands#Restrictions|Restrictions]]|{{ | |||
#if: {{{cheat|}}} | [[Option|Cheat]] only<br> }}{{ | |||
#if: {{{serveronly|}}} | Dedicated server only<br>}}{{ | |||
#if: {{{singleplayer|}}} | [[Singleplayer]] only<br> }}{{ | |||
#if: {{{others|}}} | {{{others}}} }}{{ | |||
#if: {{{serveronly|}}}{{{singleplayer|}}}{{{cheat|}}}{{{others|}}} || None }} | |||
}} | |||
}}<includeonly></includeonly><noinclude> | |||
{{documentation}} | |||
</noinclude> | |||
< | |||