Шаблон:Release table row — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
Строка 8: Строка 8:
 
<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>
 
<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>
 
</div> }}
 
</div> }}
| <div style="float:right; width:50px; text-align:right">{{#arraymap:{{{icons|}}}|\n|@@@|[[File:{{#explode:@@@|;|1}}{{!}}24px{{!}}link={{#explode:@@@|;|0}}]]|}}</div>
+
| <div style="float:right; width:75px; text-align:right">{{#arraymap:{{{icons|}}}|\n|@@@|[[File:{{#explode:@@@|;|1}}{{!}}24px{{!}}link={{#explode:@@@|;|0}}]]|}}</div>
 
{{{features}}}
 
{{{features}}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>

Версия 19:36, 21 октября 2017

Description

{{Release table row
| name = 
| date = 
| description =
| features = 
| icons = 
| date-color = 
| release-color = 
| file = 
}}

Use with {{Release table header}} and the following frame:

{{Release table header|Header title}}
{{Release table row| … }}
{{Release table row| … }}
|}

Parameters

name
Name of the release page.
label
Optional. The text to appear on the link to the release page. (Defaults to the canonical name of the release.)
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).
link-to-update
Optional. If set to n, 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.)
features
The feature section in regular wikicode.
icons
The icon links to achievements and story page. Each icon is on a separate line and has the format: page name;icon name (without the File: prefix).
date-color
release-color
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
The name of the background image if it doesn't match the typical naming convention of File:<release name> backdrop.jpg. If the value is none, no image will be displayed.
scale
Optional. The scale of the background image - typically left empty, but could scale larger image to fit using this parameter.
flip
Optional. If set to y, the background image will be flipped horizontally.
left
top
Optional. Parameters to position the background image within the 206 by 60px background frame.
height
Optional. Can be used to make a taller link tile. Defaults to 60px, should not be made smaller.
label-margin
Optional. Changes the right margin of the release name in the background frame. Defaults to 60px.

Example

Основная статья: Release
{{Release table header|Season 1}}
{{Release table row
| name = Release
| date = 2012-10-22
| icons = Tyria (achievements);Tyria (achievements).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.
}}
|}