Difference between revisions of "Template:Set list tabs/sandbox"

From Yugipedia
Jump to: navigation, search
(current version of Template:Set list tabs)
 
(Space things out, so we can see what's going on. Pass the "ajax" parameter into all {{Set list transclusion}}s except the first one. Use the sandbox version of the transclusion template.)
 
Line 1: Line 1:
 
{{ #if: {{ #pos: {{{1|EN,FR,DE,IT,SP,JP,JA,KR}}} | , }}
 
{{ #if: {{ #pos: {{{1|EN,FR,DE,IT,SP,JP,JA,KR}}} | , }}
  | <div style="margin-bottom: 5px; clear: both;">{{ #tag: tabber
+
| <div style="margin-bottom: 5px; clear: both;">{{ #tag: tabber
    | {{ #arraydefine: @tabs | {{{1|EN,FR,DE,IT,SP,JP,JA,KR}}} }}{{ #arrayprint: @tabs || $rgid | {{!-!}} {{region|$rgid|short=y|english=n|oceanic=y}} = {{Set list transclusion|{{ #ifexpr: {{ #len: $rgid }} > 2 | $rgid | {{rgo|$rgid}}-{{rg|$rgid}} }}}} }}
+
  | {{ #arraydefine: @tabs | {{{1|EN,FR,DE,IT,SP,JP,JA,KR}}} }}{{ #arrayprint: @tabs
 +
    |
 +
    | $rgid
 +
    | {{!-!}} {{region|$rgid|short=y|english=n|oceanic=y}} = {{Set list transclusion/sandbox
 +
      |{{ #ifexpr: {{ #len: $rgid }} > 2 | $rgid | {{rgo|$rgid}}-{{rg|$rgid}} }}<!--
 +
      -->|ajax={{ #ifeq: $rgid | {{ #explode: {{{1|EN,}}} | , }} || 1 }}<!-- Set `ajax=1` for everything except the first tab.-->
 +
      }}
 +
    }}
 
   }}</div>
 
   }}</div>
  | {{Set list transclusion|{{ #ifexpr: {{ #len: {{{1}}} }} > 2 | {{{1}}} | {{ #ifeq: {{{1}}} | . | . | {{rgo|{{{1}}}}}-{{rg|{{{1}}}}} }} }}}}
+
| {{Set list transclusion/sandbox|{{ #ifexpr: {{ #len: {{{1}}} }} > 2 | {{{1}}} | {{ #ifeq: {{{1}}} | . | . | {{rgo|{{{1}}}}}-{{rg|{{{1}}}}} }} }}}}
 
}}<noinclude>
 
}}<noinclude>
  
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 23:32, 10 January 2020