From 76425c9f4442f6b6f1a5fe77212639af2a5abe4b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 18 Aug 2016 07:56:03 +0200 Subject: [PATCH] Make title linkable and format sample as yaml --- source/_components/input_slider.markdown | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/_components/input_slider.markdown b/source/_components/input_slider.markdown index a4f4ebd9ce6..4d9765bec0f 100644 --- a/source/_components/input_slider.markdown +++ b/source/_components/input_slider.markdown @@ -34,12 +34,11 @@ Configuration variables: - **max** (*Optional*): Maximum value for the slider. - **step** (*Optional*): Step value for the slider. -# Automation Examples +## {% linkable_title Automation Examples %} Here's an example of `input_slider` being used as a trigger in an automation. - -``` +```yaml {% raw %} # Example configuration.yaml entry using 'input_slider' as a trigger in an automation @@ -69,7 +68,7 @@ automation: Another code example using `input_slider`, this time being used in an action in an automation. -``` +```yaml {% raw %} # Example configuration.yaml entry using 'input_slider' in an action in an automation @@ -96,7 +95,7 @@ input_slider: step: 1 # Automation. -automation: +automation: - alias: Bedroom Light - Custom trigger: platform: state