Difference between revisions of "Template:Set list tabs/sandbox"
(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 | |
− | + | | {{ #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/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
This is the template sandbox page for Template:Set list tabs (diff). |
{{Set list tabs}} is used to transclude multiple set lists in a group of tabs on a set page.
Usage[edit]
{{Set list tabs|languages}}
languages should be replaced with a comma separated list of language IDs. The language IDs should correspond to the ones used in the page names of the lists to be transcluded. This parameter defaults to EN,FR,DE,IT,SP,JP,KR.
See also[edit]
- {{Set list transclusion}}
- {{Set navigation}}