Szablon:Ekskluzywne: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
| [wersja nieprzejrzana] | [wersja nieprzejrzana] |
Zmiana zdjęcia |
akt. szablonu |
||
| Linia 6: | Linia 6: | ||
edition name of the edition as used on the wiki; obsolescent argument values are upgraded here | edition name of the edition as used on the wiki; obsolescent argument values are upgraded here | ||
linkname name of the edition's article page for linking | linkname name of the edition's article page for linking | ||
category name of the category for edition-only specifics | |||
Output variables used by the template expansion: | Output variables used by the template expansion: | ||
editions comma-separated list of edition names | editions comma-separated list of edition names | ||
(Re-)Initialize output variables in case the template is used multiple times on a page | (Re-)Initialize output variables in case the template is used multiple times on a page | ||
--> {{#vardefine: editions}} <!-- | --> {{#vardefine: editions}} <!-- | ||
--> | --> <!-- | ||
-- Process the arguments -- | -- Process the arguments -- | ||
| Linia 23: | Linia 18: | ||
<!-- set local variable values per argument keyword; replace obsolescent edition names --> | <!-- set local variable values per argument keyword; replace obsolescent edition names --> | ||
{{#switch: {{lc:{{#var: argval}} }} | {{#switch: {{lc:{{#var: argval}} }} | ||
| java = | |||
{{#vardefine: edition | Java Edition}} | {{#vardefine: edition | Java Edition}} | ||
{{#vardefine: linkname | Java Edition}} | {{#vardefine: linkname | Java Edition}} | ||
| bedrock = | |||
{{#vardefine: edition | Bedrock Edition}} | {{#vardefine: edition | Bedrock Edition}} | ||
{{#vardefine: linkname | Bedrock Edition}} | {{#vardefine: linkname | Bedrock Edition}} | ||
| console | legacy console = | |||
{{#vardefine: edition | Console Edition}} | |||
{{#vardefine: linkname | Console Edition}} | |||
{{#vardefine: edition |Console Edition}} | | ps4 | playstation 4 = | ||
{{#vardefine: linkname |Console Edition}} | {{#vardefine: edition | PlayStation 4 Edition}} | ||
{{#vardefine: | {{#vardefine: linkname | PlayStation 4 Edition}} | ||
{{#vardefine: | | education | edu = | ||
| education = | |||
{{#vardefine: edition | Education Edition}} | {{#vardefine: edition | Education Edition}} | ||
{{#vardefine: linkname | Education Edition}} | {{#vardefine: linkname | Education Edition}} | ||
| new3ds | new 3ds | 3ds = | |||
{{#vardefine: edition | New Nintendo 3DS Edition}} | |||
{{#vardefine: linkname | New Nintendo 3DS Edition}} | |||
{{#vardefine: edition | Nintendo 3DS Edition}} | |||
{{#vardefine: linkname | |||
| #default = | | #default = | ||
{{#vardefine: edition | {{ucfirst:{{#var: argval}} Edition}} }} | {{#vardefine: edition | {{ucfirst:{{#var: argval}} Edition}} }} | ||
{{#vardefine: linkname | {{#var: edition}} }} | {{#vardefine: linkname | {{#var: edition}} }} | ||
}} <!-- | }} <!-- | ||
-- Append values to output variables, inserting punctuation and wiki markup where needed | -- Append values to output variables, inserting punctuation and wiki markup where needed | ||
--> | --> {{#vardefine: editions | | ||
{{#if: {{#var: editions|}} <!-- not the 1st edition arg --> | {{#if: {{#var: editions|}} <!-- not the 1st edition arg --> | ||
| {{#if: {{{ {{#expr: {{#var: argnum}} + 1}}| }}} <!-- not the last edition arg --> | | {{#if: {{{ {{#expr: {{#var: argnum}} + 1}}| }}} <!-- not the last edition arg --> | ||
| Linia 68: | Linia 49: | ||
}} | }} | ||
}} [[{{#ifeq: {{#var: linkname}} | {{#var: edition}} | }} [[{{#ifeq: {{#var: linkname}} | {{#var: edition}} | ||
| | | | ||
| | | {{#var: linkname}} {{!}} | ||
}} {{#var: edition}}]] | }} {{#var: edition}}]] | ||
}} | }} | ||
}} <!-- | }} <!-- | ||
-- Generate the msgbox, adding HTML and CSS styling where needed | -- Generate the msgbox, adding HTML and CSS styling where needed | ||
--> {{msgbox | bgcol=#e6f3f7 | linecol=#95d1e9 | --> {{msgbox | bgcol=#e6f3f7 | linecol=#95d1e9 | ||
| title= | | title = {{#if: {{{customtext|}}} | {{{customtext}}} | Ten element dotyczy wyłącznie {{#var: editions}}.}} | ||
| | | css = display: table; | ||
| | | image = {{{image|Information icon.png}}} | ||
| mini = {{{section|}}} | |||
}} | |||
}} <!-- | }} <!-- | ||
--> </includeonly> <!-- | --> </includeonly> <!-- | ||
--> <noinclude> {{ | --> <noinclude> {{doc}} </noinclude> <!-- | ||
<!-- Put categories/interwiki on the documentation page --> | |||