Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
DOORS Site Logo

Welcome to the Official DOORS Wiki!
Please read the Wiki Rules the Manual of Style and familiarise yourself with our Wiki Policies before contributing to get a better understanding of what content is allowed on our wiki and how to display it properly, if you need help don't hesitate to reach out to a DOORS Wiki Staff Member.

Template:Admin Panel/Stat/doc: Difference between revisions

Template page
(it was outdated)
Tag: 2017 source edit
(add valid inputs as a column in table)
 
Line 8: Line 8:
! What it's for
! What it's for
! Example
! Example
! Paramters
|-
|-
|toggle
|toggle
|booleans
|booleans
||[[File:Admin panel slider.svg|100px|link=]]
|[[File:Admin panel slider.svg|100px|link=]]
|No other parameters
|-
|-
|statedit
|statedit
|numbers (integers and floating point numbers)
|numbers (integers and floating point numbers)
|style="display: flex; align-items: center;" |<div style="display:inline-box;background:#98816f;border-radius:4px;width:60px;height:30px;color:#fbead4;text-align:center">0-100</div>&nbsp;[[File:Admin Panel Statedit.png|200x30px|link=]]
|style="display: flex; align-items: center;" |<div style="display:inline-box;background:#98816f;border-radius:4px;width:60px;height:30px;color:#fbead4;text-align:center">0-100</div>&nbsp;[[File:Admin Panel Statedit.png|200x30px|link=]]
|
*<code><nowiki>{{{range}}}</nowiki></code>: range of the slider, range
|-
|-
|color
|color
|colors
|colors
|<span style=color:#fbead4>[100,&nbsp;100,&nbsp;100]</span>&nbsp;<div style="display:box;background:rgb(100,100,100);border-radius:4px;width:100px">&nbsp;</div>
|<span style=color:#fbead4>[100,&nbsp;100,&nbsp;100]</span>&nbsp;<div style="display:box;background:rgb(100,100,100);border-radius:4px;width:100px">&nbsp;</div>
|
*<code><nowiki>{{{R}}}</nowiki></code>: Red value, integer
*<code><nowiki>{{{G}}}</nowiki></code>: Green value, integer
*<code><nowiki>{{{B}}}</nowiki></code>: Blue value, integer
together, these form the preview color (<code><nowiki>rgb({{{R}}},{{{G}}},{{{B}}})</nowiki></code>) as well as the value to the left
|-
|-
|name
|name
|strings
|strings
|<div style="display:inline-box;background:#98816f;border-radius:4px;min-width:250px;color:#ffe4c2;text-align:center">name</div>
|<div style="display:inline-box;background:#98816f;border-radius:4px;min-width:250px;color:#ffe4c2;text-align:center">name</div>
|
*<code><nowiki>{{{name}}}</nowiki></code>: any text input, string
|-
|-
|image
|image
|image displays
|asset IDs
|<div style="display:flex;flex-direction: column;align-items:center">[[File:placeholder.png|100px]]<!--
|<div style="display:flex;flex-direction: column;align-items:center">[[File:placeholder.png|100px]]<!--
--><div style="background:#98816f;border-radius:4px;width:250px;color:#ffe4c2;text-align:center">1474651727</div></div>
--><div style="background:#98816f;border-radius:4px;width:250px;color:#ffe4c2;text-align:center">1474651727</div></div>
|
*<code><nowiki>{{{file}}}</nowiki></code>: any file hosted on the wiki (excluding File: prefix), string
*<code><nowiki>{{{ID}}}</nowiki></code>: Roblox asset ID of the image, integer
|-
|-
|audio
|audio
Line 37: Line 51:
ID--><div style="display:inline-box;background:#98816f;border-radius:4px;width:250px;color:#ffe4c2;text-align:center;font-size:110%">1474651727</div><!--
ID--><div style="display:inline-box;background:#98816f;border-radius:4px;width:250px;color:#ffe4c2;text-align:center;font-size:110%">1474651727</div><!--
--></div>
--></div>
|
*<code><nowiki>{{{range}}}</nowiki></code>: speed of the file, range
*<code><nowiki>{{{ID}}}</nowiki></code>: Roblox asset ID of the audio, integer
|}
|}
*range: the minimum and maximum for statedit and audio
*R: the red for color
*G: the green for color
*B: the blue for color
*file: the picture for image (just the name and file extension)
*ID: the Roblox asset ID for image and audio

Latest revision as of 04:09, 6 April 2025

Used to create stat editor elements on Admin Panel

Parameters
  • text: self explanatory, the name of the input
  • type: type of control to float on the right. Valid parameters are as follows:
Type What it's for Example Paramters
toggle booleans Admin panel slider.svg No other parameters
statedit numbers (integers and floating point numbers)
0-100
 
Error creating thumbnail: File missing
  • {{{range}}}: range of the slider, range
color colors [100, 100, 100] 
 
  • {{{R}}}: Red value, integer
  • {{{G}}}: Green value, integer
  • {{{B}}}: Blue value, integer

together, these form the preview color (rgb({{{R}}},{{{G}}},{{{B}}})) as well as the value to the left

name strings
name
  • {{{name}}}: any text input, string
image image displays
Placeholder.png
1474651727
  • {{{file}}}: any file hosted on the wiki (excluding File: prefix), string
  • {{{ID}}}: Roblox asset ID of the image, integer
audio number and asset ID
Speed
0-100
Error creating thumbnail: File missing
1474651727
  • {{{range}}}: speed of the file, range
  • {{{ID}}}: Roblox asset ID of the audio, integer