Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revize Předchozí verze
Následující verze
Předchozí verze
skoda-ep:skoda-wlc-2016:shortcodes [19.07.2017 08:50]
Lukáš Čech
skoda-ep:skoda-wlc-2016:shortcodes [11.10.2017 09:42] (aktuální)
Lukáš Čech
Řádek 3: Řádek 3:
 You can use several shortcodes throughout the site. Some modules are better implemented using the Page Builder rather than shortcodes, but both uses are supported You can use several shortcodes throughout the site. Some modules are better implemented using the Page Builder rather than shortcodes, but both uses are supported
  
-Shortcodes use attributes, some are optional, some are required. We will use the following syntax to specify required and optional attributes:+[[skoda-ep:common:​shortcodes#​shortcodes|General information about shortcodes]]
  
-[shortcode-name **required='​this|that'​** **required='​%d'​** //optional='​%s'//​] +===== List of shortcodes ​=====
- +
-  * this|that means you can either use "​this"​ or "​that"​ +
-  * **%d** represents a number +
-  * **%s** represents a piece of text +
- +
-Some shortcodes ​(Button for example) can have content (i.e. the text you see inside the button.) These are used like this: +
- +
-[shortcode-name //​attributes//​]**Content of the shortcode**[/​shortcode-name]+
  
   * [[skoda-ep:​skoda-wlc-2016:​shortcodes#​annotation|Annotations]]   * [[skoda-ep:​skoda-wlc-2016:​shortcodes#​annotation|Annotations]]
Řádek 62: Řádek 54:
  
 Both of these will do the same: **[button]Some Text[/​button]** or **[button text=%%"​Some Text"​%%]** - but be careful, if you use the short version **[button text=%%"​Some Text"​%%]** and then later you use the long version **[button]Some Text[/​button]** it will break the page, because it will read the shortcode as one - beginning with **[button text=%%"​Some Text"​%%** and ending with **Some Text[/​button]**. So if you need multiple buttons on the same page, always use the long version Both of these will do the same: **[button]Some Text[/​button]** or **[button text=%%"​Some Text"​%%]** - but be careful, if you use the short version **[button text=%%"​Some Text"​%%]** and then later you use the long version **[button]Some Text[/​button]** it will break the page, because it will read the shortcode as one - beginning with **[button text=%%"​Some Text"​%%** and ending with **Some Text[/​button]**. So if you need multiple buttons on the same page, always use the long version
- 
-===== Personality test ===== 
-Shortcode: [personality_test //​lang='​en_US'//​] 
- 
-By default the personality test will be in the default site language, but can be overridden. Languages that can be used: 
-  * da_DK 
-  * de_CH 
-  * de_DE 
-  * en_US 
-  * es_ES 
-  * fr_BE 
-  * fr_CH 
-  * fr_FR 
-  * it_CH 
-  * it_IT 
-  * nl_BE 
-  * nl_NL 
-  * pl_PL 
-  * sk_SK 
- 
  
 ==== Examples ==== ==== Examples ====
Řádek 129: Řádek 101:
  
 Usually used in combination with UTM parameters Usually used in combination with UTM parameters
 +
 +===== Personality test =====
 +Shortcode: [personality_test //​lang='​en_US'//​]
 +
 +By default the personality test will be in the default site language, but can be overridden. Languages that can be used:
 +  * da_DK
 +  * de_CH
 +  * de_DE
 +  * en_US
 +  * es_ES
 +  * fr_BE
 +  * fr_CH
 +  * fr_FR
 +  * it_CH
 +  * it_IT
 +  * nl_BE
 +  * nl_NL
 +  * pl_PL
 +  * sk_SK
 +