Difference between revisions of "Template:Set list transclusion/sandbox"
(Using a variable for the list page name, adding an "ajax" parameter which won't embed the page, but will give some data attributes that AJAX requests can use.) |
(fix) |
||
Line 4: | Line 4: | ||
-->{{ #if: {{{ajax|}}} | -->{{ #if: {{{ajax|}}} | ||
− | | <div class="set_list_tab data-current_page="{{PAGENAME}}" data-load_page="{{ #var: $set_list_name }}">[[{{ | + | | <div class="set_list_tab data-current_page="{{PAGENAME}}" data-load_page="{{ #var: $set_list_name }}">[[{{ #var: $set_list_name }}]]</div> |
| <div class="set_list_tab">{{:{{ #var: $set_list_name }}}}</div> | | <div class="set_list_tab">{{:{{ #var: $set_list_name }}}}</div> | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 23:01, 10 January 2020
This is the template sandbox page for Template:Set list transclusion (diff). |
{{Set list transclusion}} is used to transclude a set list onto a set article.
Usage[edit]
{{Set list transclusion|medium-language|set name}}
- medium-language is determines the medium and language list to be displayed. This defaults to "OCG-JP".
- set name determines the set to use. This defaults to the page name, minus bracketed text.
Examples:
- {{Set list transclusion}}
- Transcludes the Japanese OCG set list corresponding to the name of the page it is placed on.
- {{Set list transclusion|TCG-EN}}
- Transcludes the English TCG set list corresponding to the name of the page it is placed on.
- {{Set list transclusion|TCG-EN|Legend of Blue Eyes White Dragon}}
- Transcludes the page Set Card Lists:Legend of Blue Eyes White Dragon (TCG-EN).