Difference between revisions of "Template:Intro to/tabs"

From blackwiki
Jump to navigation Jump to search
imported>Evolution and evolvability
(target = {{FULLROOTPAGENAME}}/)
imported>Evolution and evolvability
(I see what the last edit was trying to do. Have moved relevant code to the template:intro to/sandbox page to implement in template:intro to)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<br />
+
{{intro to tabs
{{Help intro sidetab
+
| number   = 1
| active  = {{#ifeq:{{{This}}}|1|true}}
 
| target   = {{FULLROOTPAGENAME}}/1
 
 
| title    = Example 1
 
| title    = Example 1
 
| subtitle = Subtitle 1
 
| subtitle = Subtitle 1
 
}}
 
}}
{{Help intro sidetab
+
{{intro to tabs
| active   = {{#ifeq:{{{This}}}|2|true}}
+
| number   = 2
| target  = {{FULLROOTPAGENAME}}/2
 
 
| title    = Example 2
 
| title    = Example 2
 
| subtitle = Subtitle 2
 
| subtitle = Subtitle 2
 
}}
 
}}
{{Help intro sidetab
+
{{intro to tabs
| active   = {{#ifeq:{{{This}}}|3|true}}
+
| number   = 3
| target  = {{FULLROOTPAGENAME}}/3
 
 
| title    = Example 3
 
| title    = Example 3
 
| subtitle = Subtitle 3
 
| subtitle = Subtitle 3
 
}}
 
}}
{{Help intro sidetab
+
{{intro to tabs
| active   = {{#ifeq:{{{This}}}|4|true}}
+
| number   = 4
| target  = {{FULLROOTPAGENAME}}/4
 
 
| title    = Example 4
 
| title    = Example 4
 
| subtitle = Subtitle 4
 
| subtitle = Subtitle 4
 
}}
 
}}
{{Help intro sidetab
+
{{intro to tabs
| active   = {{#ifeq:{{{This}}}|5|true}}
+
| number   = 5
| target  = {{FULLROOTPAGENAME}}/5
 
 
| title    = Summary
 
| title    = Summary
 
| subtitle = Final subtitle
 
| subtitle = Final subtitle
}}
+
}}<noinclude>{{documentation}}</noinclude>
<br />
 
<noinclude>
 
{{documentation}}
 
</noinclude>
 

Latest revision as of 09:48, 6 March 2020

Example 1
Subtitle 1

Example 2
Subtitle 2

Example 3
Subtitle 3

Example 4
Subtitle 4

Summary
Final subtitle

50px Template documentation[view] [edit] [history] [purge]

Usage

To create the list of tabs, simply use a stack of {{Intro to tabs}} templates:

{{Intro to tabs
| number   = 1
| title    = Example 1
| subtitle = Subtitle 1
}}
{{Intro to tabs
| number   = 2
| title    = Example 2
| subtitle = Subtitle 2
}}
etc.