Текущая версия |
Ваш текст |
Строка 1: |
Строка 1: |
− | <includeonly>{{#if: | + | <includeonly>|- class="line-bottom" style="vertical-align: top;" {{#vardefine:default_file|{{#replace:{{#show:{{{name|}}}|?Has canonical name|default={{{name}}}}}|:|-}} backdrop.jpg}}{{#vardefine:smw_name|{{#show:{{{name|}}}|?Has canonical name}}}} |
− | {{#vardefine:smw_name|{{#if: {{{name|}}}|{{#show:{{{name|}}}|?Has canonical name}}|}}}} | + | | {{#if: {{{description|}}} | title="{{#replace:{{{description}}}|"|"}}"}} {{#ifeq: {{{file|}}} | none | style="vertical-align: middle; padding-left: 20px; line-height: 145%;" {{!}} '''{{#ifexpr: {{#time: U | now }} > {{#time: U | {{{date|2014-10-10}}} }} | [[Game updates/{{{date|}}}|{{#time: F j, Y | {{{date|}}} }}]] | {{#time: F j, Y | {{{date|}}} }} }}''' {{#if: {{{name|}}} | <br><span style="font-size: 85%">[[{{{name}}}|{{{label|{{#var:smw_name|{{{name}}}}}}}}]]</span> }} | |
− | {{#vardefine:outline|text-shadow:0px 0px 3px black,1px 1px 3px black,-1px -1px 0 black,-1px 1px 0 black,1px -1px 0 black,1px 1px 0 black;}} | + | <div class="release-image" style="position:relative; width:206px; height:{{{height|60px}}}; overflow:hidden;"> |
− | {{#vardefine:span-date|<span style="color:{{{date-color|white}}}; {{#var:outline}}">}} | + | <div style="position:absolute; left:{{{left|0px}}}; top:{{{top|0px}}}; {{#ifeq: {{{flip|}}} | y | transform: scaleX(-1); }}">[[File:{{{file|{{#ifexist: File:{{#var:default_file}} | {{#var:default_file}} | Default backdrop.jpg}}}}}|{{{scale|}}}|link=]]</div> |
− | | + | <div style="position:absolute; top:5px; left:13px; font-family:Georgia, serif; font-size: 15px;">{{#ifexpr: {{#time: U | now }} > {{#time: U | {{{date|2014-10-10}}} }} | [[Game updates/{{{date|}}}|<span style="color:{{{date-color|white}}}; text-shadow:0px 0px 3px black,1px 1px 3px black,1px 1px 4px black,2px 2px 4px black;">{{#time: j xg Y | {{{date|}}} }}</span>]] | <span style="color:{{{date-color|white}}}; text-shadow:0px 0px 3px black,1px 1px 3px black,1px 1px 4px black,2px 2px 4px black;">{{#time: j xg Y | {{{date|}}} }}</span> }}</div> |
− | {{#vardefine:category-color|{{#switch: {{lc:{{{category|}}}}} | + | <div style="position:absolute; top:28px; left:13px; color:{{{release-color|white}}}; font-family:'Times New Roman', Times, serif; font-size: 13px; margin-right:{{{label-margin|60px}}}; line-height: 1;">[[{{{name}}}|<span style="color:{{{release-color|white}}}; text-shadow:0px 0px 3px black,1px 1px 3px black,1px 1px 4px black,2px 2px 4px black;">{{{label|{{#var:smw_name|{{{name}}}}}}}}</span>]]</div> |
− | | special event = gold
| + | </div> }} |
− | | story | story-return = <nowiki>#87f74a</nowiki>
| + | | {{#if: {{{description|}}} | title="{{#replace:{{{description}}}|"|"}}"}} | <div style="float:right; width:50px; text-align:right">{{#arraymap:{{{icons|}}}|\n|@@@|[[File:{{#explode:@@@|;|1}}{{!}}24px{{!}}link={{#explode:@@@|;|0}}]]|}}</div> |
− | | expansion | original-release = <nowiki>#29a3a3</nowiki>
| + | {{{features}}} |
− | | #default = <nowiki>#bbb</nowiki>
| |
− | }}}} | |
− | | |
− | {{#vardefine:category-filter|{{#switch: {{lc:{{{category|}}}}} | |
− | | special event = f-special
| |
− | | story | story-return = f-story
| |
− | | expansion | original-release = f-expansion
| |
− | | #default = f-misc
| |
− | }}}} | |
− | | |
− | {{#vardefine:story-steps| {{#ifeq: {{{story}}} | TBD | TBD | {{#arraymap:{{{story|}}}|\n|@@@|<span style="display:inline-block;">[[@@@]]</span>| → }} }} }} | |
− | | |
− | {{#vardefine:feature-header-label|{{#if: {{{category|}}} | {{#switch: {{{category}}} | |
− | | special event = {{icon|special|size=15px}}<span style="padding-left:2px;">'''Особое событие'''</span>{{#if:{{{story|}}} | <span style="padding-left:10px;">{{icon|story|size=15px}}</span><small style="padding-left:2px;">{{{story-hidden-label| {{#var:story-steps}} }}}</small> }}
| |
− | | expansion = {{icon|misc|Zone icon.png|Expansion|size=15px}}<span style="padding-left:2px;">'''Крупное дополнение'''</span>{{#if:{{{story|}}} | <span style="padding-left:10px;">{{icon|story|size=15px}}</span><small style="padding-left:2px;">{{{story-hidden-label| {{#var:story-steps}} }}}</small> }}
| |
− | | original-release = {{icon|misc|Zone icon.png|Guild Wars 2|size=15px}}<span style="padding-left:2px;">'''Оригинальная игра'''</span>{{#if:{{{story|}}} | <span style="padding-left:10px;">{{icon|story|size=15px}}</span><small style="padding-left:2px;">{{{story-hidden-label| {{#var:story-steps}} }}}</small> }}
| |
− | | story = {{#if:{{{story|}}} | {{icon|story|size=15px}}<small style="padding-left:2px;">{{{story-hidden-label| {{#var:story-steps}} }}}</small> }}
| |
− | | story-return = {{#if:{{{story|}}} | {{icon|replay|size=16px}}<small style="padding-left:2px;">{{{story-hidden-label| {{#var:story-steps}} }}}</small> }}
| |
− | | #default = <span style="padding-left:18px;">'''{{#switch: {{lc:{{{category|}}}}}
| |
− | | competitive = Соревнование
| |
− | | raid = Рейд
| |
− | | quarterly update = Квартальное обновление
| |
− | | feature pack = Набор особенностей
| |
− | | #default = {{ucfirst:{{{category}}}}} }}'''</span>
| |
− | }} }} }}
| |
− | | |
− | {{#vardefine:feature-header| {{#if: {{{story-hidden-label|}}} |
| |
− | {{{!}} class="expandable"
| |
− | {{!}} {{#var:feature-header-label}}
| |
− | {{!}}-
| |
− | {{!}} style="line-height:1.333em" {{!}} {{icon|story|size=15px}} <small>{{#var:story-steps}}</small>
| |
− | {{!}}}
| |
− | | {{#var:feature-header-label}}
| |
− | }} }}
| |
− | | |
− | }}|- class="line-bottom" filter-row {{#var:category-filter}}" style="vertical-align: top;" {{#if: {{{description|}}} | title="{{#replace:{{{description}}}|"|"}}"}} {{#vardefine:default_file|{{#replace:{{#var:smw_name|{{{name}}}}}|:|-}} backdrop.jpg}}
| |
− | | {{#ifeq: {{{file|}}} | none |<!--
| |
− | RELEASE (NO IMAGE BACKDROP DISPLAYED)
| |
− | --> style="vertical-align: middle; padding-left: 16px; line-height: 145%; box-shadow:inset 4px 0 0 0 {{#var:category-color}}" {{!}} {{#ifeq: {{{recent|}}} | y | {{anchor|recent}}}}'''{{#iferror: {{#ifeq: {{{link-to-update|}}} | n | {{#time: j xg Y | {{{date|}}} }} | {{#ifexpr: {{#time: U | now }} > {{#time: U | {{{date|2014-10-10}}} }} | [[Game updates/{{{link-to-update|{{{date|}}}}}}|{{#time: j xg Y | {{{date|}}} }}]] | {{#time: j xg Y | {{{date|}}} }} }} }} | {{{date|}}} }}''' {{#if: {{{name|}}} | <br><span style="font-size:
| |
− | 90%">[[{{{name}}}|{{{label|{{#var:smw_name|{{{name}}}}}}}}]]</span> }} |<!--
| |
− | RELEASE (REGULAR VERSION)
| |
− | --> style="padding:0 0 0 4px; box-shadow:inset 4px 0 0 0 {{#var:category-color}}" {{!}}
| |
− | {{#ifeq: {{{recent|}}} | y | {{anchor|recent}}}}<div class="release-image" style="position:relative; width:206px; height:{{{height|60px}}}; overflow:hidden;">
| |
− | <div style="position:absolute; left:{{{left|0px}}}; top:{{{top|0px}}}; {{#ifeq: {{{flip|}}} | y | transform: scaleX(-1); }} {{#ifeq: {{{repeat|}}} | y | opacity: 0.6; }}">[[File:{{{file|{{#ifexist: File:{{#var:default_file}} | {{#var:default_file}} | Default backdrop.jpg}}}}}|{{{scale|}}}|link=]]</div>
| |
− | <div style="position:absolute; top:5px; left:13px; font-family:Georgia, serif; font-size: 15px;">{{#iferror: {{#ifeq: {{{link-to-update|}}} | n | {{#var: span-date}}{{#time: j xg Y | {{{date|}}} }}</span> | {{#ifexpr: {{#time: U | now }} > {{#time: U | {{{date|2014-10-10}}} }} | [[Game updates/{{{link-to-update|{{{date|}}}}}}|{{#var: span-date}}{{#time: j xg Y | {{{date|}}} }}</span>]] | {{#var: span-date}}{{#time: j xg Y | {{{date|}}} }}</span> }} }} | {{#var: span-date}}{{{date|}}}</span> }}</div>
| |
− | <div style="position:absolute; top:28px; left:13px; color:{{{release-color|white}}}; font-family:'Times New Roman', Times, serif; font-size: 13px; margin-right:{{{label-margin|30px}}}; line-height: 1;">[[{{{name}}}|<span style="color:{{{release-color|white}}}; {{#var:outline}}">{{{label|{{#var:smw_name|{{{name}}}}}}}}</span>]]</div>
| |
− | </div> }} <!--
| |
− | FEATURES COLUMN
| |
− | -->
| |
− | | <div style="float:right; width:75px; text-align:right; margin-left:{{{icons-margin|0px}}};">{{#arraymap:{{{icons|}}}|\n|@@@|[[File:{{#explode:@@@|;|1}}{{!}}24px{{!}}link={{#explode:@@@|;|0}}]]|}}</div>{{#var:feature-header}} | |
− | {{{features|}}} | |
| </includeonly><noinclude> | | </includeonly><noinclude> |
| == Description == | | == Description == |
Строка 66: |
Строка 15: |
| | date = | | | date = |
| | description = | | | description = |
− | | category =
| |
− | | story =
| |
| | features = | | | features = |
| | icons = | | | icons = |
Строка 87: |
Строка 34: |
| === Parameters === | | === Parameters === |
| ;name | | ;name |
− | :Optional. Name of the release page. | + | :Name of the release page. |
| ;label | | ;label |
− | :Optional. The text to appear on the link to the release page. (Defaults to the [[:Property:Has canonical name|canonical name]] of the release.) | + | :Optional. The text to appear on the link to the release page. (Defaults to value of "name" parameter) |
| ;date | | ;date |
− | :Date of launch. If written in the "yyyy-mm-dd" format, it displays the date in the "Month day, year" format and links to the corresponding update by default (if it's not in the future). | + | :Date of launch in the yyyy-mm-dd format. |
− | ;category | + | ;description |
− | :Optional. The type of the release, displayed at the top of the features section. The values <tt>story</tt>, <tt>story-return</tt>, <tt>special event</tt>, <tt>expansion</tt> and <tt>original-release</tt> also change the left border color to help distinguish between the main release types. | + | :Short description of the release. (Appears when hovering over bits of the image that doesn't contain text) |
− | ;story
| |
− | :Optional. Story steps for this release. Each step is on a separate line. If you need to display different text than the page name use the format: <tt>''page name''<nowiki>{{!}}</nowiki>''link text''</tt>. Value <tt>TBD</tt> doesn't create a link.
| |
− | ;story-hidden-label
| |
− | :Optional. If specified together with "story", this text will be shown by default instead and the individual story steps will be expandable.
| |
| ;features | | ;features |
| :The feature section in regular wikicode. | | :The feature section in regular wikicode. |
| ;icons | | ;icons |
− | :Optional. The icon links to achievement pages. Each icon is on a separate line and has the format: <tt>''page name'';''icon name''</tt> (without the File: prefix). | + | :The icon links to achievements and story page. Each icon is on a separate line and has the format: <tt>''page name'';''icon name''</tt> (without the File: prefix). |
− | ;recent
| |
− | :Optional. If set to <tt>y</tt>, the <tt><nowiki>#recent</nowiki></tt> anchor will point to this release.
| |
| ;date-color | | ;date-color |
| ;release-color | | ;release-color |
− | :Optional. The font colors of the date and release links respectively. (Typically only the "date-color" value will be changed, and the "release-color" will be left as "white") | + | :The font colors of the date and release links respectively. (Typically only the "date-color" value will be changed, and the "release-color" will be left as "white") |
| ;file | | ;file |
| :The name of the background image if it doesn't match the typical naming convention of <tt>File:<release name> backdrop.jpg</tt>. If the value is <tt>none</tt>, no image will be displayed. | | :The name of the background image if it doesn't match the typical naming convention of <tt>File:<release name> backdrop.jpg</tt>. If the value is <tt>none</tt>, no image will be displayed. |
− | ;link-to-update
| |
− | :Optional. If set to <tt>n</tt>, stops the date linking to the corresponding ''Game updates'' page. If set to a date in the "yyyy-mm-dd" format, the link will lead to that update page instead.
| |
− | ;description
| |
− | :Optional. Short description of the release. (Appears when hovering over parts of the row that don't contain links.)
| |
| ;scale | | ;scale |
| :Optional. The scale of the background image - typically left empty, but could scale larger image to fit using this parameter. | | :Optional. The scale of the background image - typically left empty, but could scale larger image to fit using this parameter. |
| ;flip | | ;flip |
| :Optional. If set to <tt>y</tt>, the background image will be flipped horizontally. | | :Optional. If set to <tt>y</tt>, the background image will be flipped horizontally. |
− | ;repeat
| |
− | :Optional. If set to <tt>y</tt>, the background image will be faded out slightly. This is intended for use in annual festival repeats so that new content releases stand out more in the lists.
| |
| ;left | | ;left |
| ;top | | ;top |
Строка 126: |
Строка 61: |
| ;label-margin | | ;label-margin |
| :Optional. Changes the right margin of the release name in the background frame. Defaults to 60px. | | :Optional. Changes the right margin of the release name in the background frame. Defaults to 60px. |
− | ;icons-margin
| |
− | :Optional. Changes the left margin of the icons, occasionally useful to match story chapter row count across browsers. Defaults to 0px.
| |
| | | |
| == Example == | | == Example == |
Строка 136: |
Строка 69: |
| | name = Release | | | name = Release |
| | date = 2012-10-22 | | | date = 2012-10-22 |
− | | icons = Explorer;Explorer.png | + | | icons = Tyria (achievements);Tyria (achievements).png |
| Living World;Special event (map icon).png | | Living World;Special event (map icon).png |
| | description = This is the description section. Usually it's the same description as the one on the official site. | | | description = This is the description section. Usually it's the same description as the one on the official site. |
Строка 145: |
Строка 78: |
| |} | | |} |
| </pre> | | </pre> |
− |
| |
− | {{Release table header|Season 1}}
| |
− | {{Release table row
| |
− | | name = Release
| |
− | | date = 2012-10-22
| |
− | | icons = Explorer;Explorer.png
| |
− | Living World;Special event (map icon).png
| |
− | | description = This is the description section. Usually it's the same description as the one on the official site.
| |
− | | features =
| |
− | * This is the feature section.
| |
− | * Usually it's a bullet point list of the most important features in the release.
| |
− | }}
| |
− | |}
| |
| [[Category:Table formatting templates]] | | [[Category:Table formatting templates]] |
| </noinclude> | | </noinclude> |