User:AlexMozzarella/sandbox
Appearance
Testing here:
This is a Subheading.
[edit]This is normal text.
This is a Subheading again, achieved with ===
[edit]Inserting Images
[edit]This is what an inserted image looks like:
Format Testing
[edit]I want to try formatting. Let's see... Click here to go somewhere.
This is a new line? I wonder how I would do this. Here's a chemical equation:
This is a New Section
[edit]You achieve this effect with ==.
This What a Graph Looks Like
[edit]Graphs are unavailable due to technical issues. There is more info on Phabricator and on MediaWiki.org. |
Lists
[edit]This is a bullet list:
- Eggs
- Cheese
- Bread
This is a numbered bullet list:
- Eggs
- Cheese
- Bread
Note that they indent differently.
Citing Something
[edit]The first game published by Codegnat Studios was Acid Crest[1].
According to Google Trends, in February of 2017, there was a spike in the searches of "berries"[2].
- ^ "CodeGnat". itch.io. Retrieved 2020-09-30.
- ^ "Google Trends". Google Trends. Retrieved 2020-09-30.
Preformatted Text
[edit]This is what preformatted text looks like. It's monospace and probably supports code pastes.
Codeblocks
[edit]I love codeblocks. Here's one:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Experimental.Rendering.Universal;
public class Fridge : MonoBehaviour
{
private Animator anim;
private AudioSource source;
public Light2D lightSource;
private void Start()
{
source = GetComponent<AudioSource>();
anim = GetComponent<Animator>();
}
public void SetOpen(bool state)
{
anim.SetBool("open", state);
}
private void Update()
{
SetGFX();
//SetAudio();
}
private void SetAudio()
{
float targetVolume = anim.GetBool("open") ? 1 : 0;
source.volume = Mathf.Lerp(source.volume, targetVolume, Time.deltaTime * 5);
}
private void SetGFX()
{
float targetIntensity = anim.GetBool("open") ? 1F - FindObjectOfType<Daystate>().TimeToPercent() : 0;
lightSource.intensity = Mathf.Lerp(lightSource.intensity, targetIntensity, Time.deltaTime * 5);
}
}