Difference between pages "Template:Set list tabs" and "Template:Set list tabs/sandbox"

(Difference between pages)
Jump to: navigation, search
Page 1
Page 2
(Restoring revision 4415986 by User:Becasita on 2020-02-08 17:49:06. "Add styles, via templatestyles.")
 
(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:
<templatestyles src="Set list tabs/styles.css" /><!--
+
{{ #if: {{ #pos: {{{1|EN,FR,DE,IT,SP,JP,JA,KR}}} | , }}
-->{{ #invoke: Set list tabs | main }}<noinclude>
+
| <div style="margin-bottom: 5px; clear: both;">{{ #tag: tabber
{{Documentation}}
+
  | {{ #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>
 +
| {{Set list transclusion/sandbox|{{ #ifexpr: {{ #len: {{{1}}} }} > 2 | {{{1}}} | {{ #ifeq: {{{1}}} | . | . | {{rgo|{{{1}}}}}-{{rg|{{{1}}}}} }} }}}}
 +
}}<noinclude>
 +
 
 +
{{documentation}}
 
</noinclude>
 
</noinclude>