Difference between revisions of "Template:VersionTabs"

From Dragon Quest Wiki
m (moved User:Pagoda/TabTest to Template:VersionTabs: moving out of user area)
(update for new JS (JS linkifies so this template doesn't have to))
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#tag:tabber|
+
<includeonly><onlyinclude><div class="tabs">{{#if: {{{1|}}} | {{*}}{{{1|}}}}}{{#if: {{{3|}}} | {{*}}{{{3|}}}}}{{#if: {{{5|}}} | {{*}}{{{5|}}}}}{{#if: {{{7|}}} | {{*}}{{{7|}}}}}{{#if: {{{9|}}} | {{*}}{{{9|}}}}}{{#if: {{{11|}}} | {{*}}{{{1|}}}}}{{#if: {{{13|}}} | {{*}}{{{3|}}}}}{{#if: {{{15|}}} | {{*}}{{{5|}}}}}{{#if: {{{17|}}} | {{*}}{{{7|}}}}}{{#if: {{{19|}}} | {{*}}{{{9|}}}}}{{#if: {{{21|}}} | {{*}}{{{1|}}}}}{{#if: {{{23|}}} | {{*}}{{{3|}}}}}
{{#if: {{{1|}}} |  
+
 
{{{1|}}}={{{2|}}}
+
{{#if: {{{1|}}} | <div>{{{2|}}}</div>}}{{#if: {{{3|}}} | <div>{{{4|}}}</div>}}{{#if: {{{5|}}} | <div>{{{6|}}}</div>}}{{#if: {{{7|}}} | <div>{{{8|}}}</div>}}{{#if: {{{9|}}} | <div>{{{10|}}}</div>}}{{#if: {{{11|}}} | <div>{{{12|}}}</div>}}{{#if: {{{13|}}} | <div>{{{14|}}}</div>}}{{#if: {{{15|}}} | <div>{{{16|}}}</div>}}{{#if: {{{17|}}} | <div>{{{18|}}}</div>}}{{#if: {{{19|}}} | <div>{{{20|}}}</div>}}{{#if: {{{21|}}} | <div>{{{22|}}}</div>}}{{#if: {{{23|}}} | <div>{{{24|}}}</div>}}</div></onlyinclude></includeonly><noinclude>
{{!}}-{{!}}
+
This template is used to display different versions (releases) of the same game in a tab readable format.
}}
+
 
{{#if: {{{3|}}} |
+
==Usage==
{{{3|}}}={{{4|}}}
+
This template takes up to 24 parameters, which are passed in pairs for a total of 12 pairs.  The first parameter of a pair is the title which should appear on the tab.  The second parameter of a pair should be all the content which will appear within the tab.  Note that content passed as a parameter will need to have '|' escaped using [[Template:!]] since this template uses conditional logic parsing.
{{!}}-{{!}}
+
 
}}
+
==Example==
{{#if: {{{5|}}} |
+
===Sample===
{{{5|}}}={{{6|}}}
+
{{VersionTabs|ninjas|are totally sweet|people|are boring|leprechauns|are hard to find|unicorns|{{Enemy}} }}
{{!}}-{{!}}
+
===Wiki markup===
}}
+
<pre>
{{#if: {{{7|}}} |
+
{{VersionTabs|ninjas|are totally sweet|people|are boring|leprechauns|are hard to find|unicorns|{{Enemy}} }}
{{{7|}}}={{{8|}}}
+
</pre>
}}
+
[[Category:Utility templates|{{PAGENAME}}]]
}}
+
</noinclude>

Latest revision as of 22:46, 14 December 2015

This template is used to display different versions (releases) of the same game in a tab readable format.

Usage[edit]

This template takes up to 24 parameters, which are passed in pairs for a total of 12 pairs. The first parameter of a pair is the title which should appear on the tab. The second parameter of a pair should be all the content which will appear within the tab. Note that content passed as a parameter will need to have '|' escaped using Template:! since this template uses conditional logic parsing.

Example[edit]

Sample[edit]

  • ninjas
  • people
  • leprechauns
  • unicorns
are totally sweet
are boring
are hard to find
HP MP Experience Gold
Attack Defense Speed

Wiki markup[edit]

{{VersionTabs|ninjas|are totally sweet|people|are boring|leprechauns|are hard to find|unicorns|{{Enemy}} }}