Difference between revisions of "Template:mainpage"
(DPL not fetching templates and subpages) |
(Fixed Japanese times to JST) |
||
Line 144: | Line 144: | ||
{{OverlayCaption|100%|{{CountDown|TW_maintenanceEnd|{{{TW_maintenanceEnd_time|}}} +0800|<br>until [[{{{TW_maintenanceEnd_link|}}}|the end of maintenance]]|<br>since [[{{{TW_maintenanceEnd_link|}}}|the last maintenance]]}}|top}}[[file:Blank.png|link={{{TW_maintenance1_link|}}}|395x300px]]</div> | {{OverlayCaption|100%|{{CountDown|TW_maintenanceEnd|{{{TW_maintenanceEnd_time|}}} +0800|<br>until [[{{{TW_maintenanceEnd_link|}}}|the end of maintenance]]|<br>since [[{{{TW_maintenanceEnd_link|}}}|the last maintenance]]}}|top}}[[file:Blank.png|link={{{TW_maintenance1_link|}}}|395x300px]]</div> | ||
<div id="update-jp" class="updates {{#if:{{{JP_maintenanceStart_time|}}}|button-glow}}"> | <div id="update-jp" class="updates {{#if:{{{JP_maintenanceStart_time|}}}|button-glow}}"> | ||
− | {{OverlayCaption|100%|{{#if:{{{JP_maintenanceStart_time|}}}|{{CountDown|JP_maintenanceStart|{{{JP_maintenanceStart_time|}}} + | + | {{OverlayCaption|100%|{{#if:{{{JP_maintenanceStart_time|}}}|{{CountDown|JP_maintenanceStart|{{{JP_maintenanceStart_time|}}} +0900|<br>until [[{{{JP_maintenanceStart_link|}}}|the next maintenance]]|<br>since [[{{{JP_maintenanceStart_link|}}}|the maintenance began]]}}|Time until the next maintenance:<BR>TBA}}}} |
− | {{OverlayCaption|100%|{{CountDown|JP_maintenanceEnd|{{{JP_maintenanceEnd_time|}}} + | + | {{OverlayCaption|100%|{{CountDown|JP_maintenanceEnd|{{{JP_maintenanceEnd_time|}}} +0900|<br>until [[{{{JP_maintenanceEnd_link|}}}|the end of maintenance]]|<br>since [[{{{JP_maintenanceEnd_link|}}}|the last maintenance]]}}|top}}[[file:Blank.png|link={{{JP_maintenance1_link|}}}|395x300px]]</div> |
<div id="prmotion-blank" class="jcarousel-item promotions" style="visibility:visible;position:inherit">[[File:Promotion_timer.png|20px|left|link=]][[file:Promotion_Blank.png|300px]]</div> | <div id="prmotion-blank" class="jcarousel-item promotions" style="visibility:visible;position:inherit">[[File:Promotion_timer.png|20px|left|link=]][[file:Promotion_Blank.png|300px]]</div> | ||
{{PromotionSlider|id=promotion-cn|noarrow=1|list= | {{PromotionSlider|id=promotion-cn|noarrow=1|list= | ||
Line 196: | Line 196: | ||
}} | }} | ||
{{PromotionSlider|id=promotion-jp|noarrow=1|list= | {{PromotionSlider|id=promotion-jp|noarrow=1|list= | ||
− | {{#if:{{{JP_promotion1_image|}}}{{{JP_promotion1_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion1_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion1|{{{JP_promotion1_time|}}} + | + | {{#if:{{{JP_promotion1_image|}}}{{{JP_promotion1_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion1_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion1|{{{JP_promotion1_time|}}} +0900|remaining|past}}[[file:Promotion_Blank.png|300px]]{{OverlayCaption|100%|{{{JP_promotion1_caption|}}}}}</div>}} |
− | {{#if:{{{JP_promotion2_image|}}}{{{JP_promotion2_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion2_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion2|{{{JP_promotion2_time|}}} + | + | {{#if:{{{JP_promotion2_image|}}}{{{JP_promotion2_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion2_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion2|{{{JP_promotion2_time|}}} +0900|remaining|past}}[[file:Promotion_Blank.png|300px]]{{OverlayCaption|100%|{{{JP_promotion2_caption|}}}}}</div>}} |
− | {{#if:{{{JP_promotion3_image|}}}{{{JP_promotion3_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion3_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion3|{{{JP_promotion3_time|}}} + | + | {{#if:{{{JP_promotion3_image|}}}{{{JP_promotion3_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion3_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion3|{{{JP_promotion3_time|}}} +0900|remaining|past}}[[file:Promotion_Blank.png|300px]]{{OverlayCaption|100%|{{{JP_promotion3_caption|}}}}}</div>}} |
− | {{#if:{{{JP_promotion4_image|}}}{{{JP_promotion4_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion4_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion4|{{{JP_promotion4_time|}}} + | + | {{#if:{{{JP_promotion4_image|}}}{{{JP_promotion4_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion4_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion4|{{{JP_promotion4_time|}}} +0900|remaining|past}}[[file:Promotion_Blank.png|300px]]{{OverlayCaption|100%|{{{JP_promotion4_caption|}}}}}</div>}} |
− | {{#if:{{{JP_promotion5_image|}}}{{{JP_promotion5_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion5_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion5|{{{JP_promotion5_time|}}} + | + | {{#if:{{{JP_promotion5_image|}}}{{{JP_promotion5_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion5_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion5|{{{JP_promotion5_time|}}} +0900|remaining|past}}[[file:Promotion_Blank.png|300px]]{{OverlayCaption|100%|{{{JP_promotion5_caption|}}}}}</div>}} |
− | {{#if:{{{JP_promotion6_image|}}}{{{JP_promotion6_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion6_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion6|{{{JP_promotion6_time|}}} + | + | {{#if:{{{JP_promotion6_image|}}}{{{JP_promotion6_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion6_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion6|{{{JP_promotion6_time|}}} +0900|remaining|past}}[[file:Promotion_Blank.png|300px]]{{OverlayCaption|100%|{{{JP_promotion6_caption|}}}}}</div>}} |
− | {{#if:{{{JP_promotion7_image|}}}{{{JP_promotion7_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion7_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion7|{{{JP_promotion7_time|}}} + | + | {{#if:{{{JP_promotion7_image|}}}{{{JP_promotion7_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion7_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion7|{{{JP_promotion7_time|}}} +0900|remaining|past}}[[file:Promotion_Blank.png|300px]]{{OverlayCaption|100%|{{{JP_promotion7_caption|}}}}}</div>}} |
− | {{#if:{{{JP_promotion8_image|}}}{{{JP_promotion8_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion8_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion8|{{{JP_promotion8_time|}}} + | + | {{#if:{{{JP_promotion8_image|}}}{{{JP_promotion8_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion8_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion8|{{{JP_promotion8_time|}}} +0900|remaining|past}}[[file:Promotion_Blank.png|300px]]{{OverlayCaption|100%|{{{JP_promotion8_caption|}}}}}</div>}} |
− | {{#if:{{{JP_promotion9_image|}}}{{{JP_promotion9_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion9_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion9|{{{JP_promotion9_time|}}} + | + | {{#if:{{{JP_promotion9_image|}}}{{{JP_promotion9_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion9_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion9|{{{JP_promotion9_time|}}} +0900|remaining|past}}[[file:Promotion_Blank.png|300px]]{{OverlayCaption|100%|{{{JP_promotion9_caption|}}}}}</div>}} |
− | {{#if:{{{JP_promotion10_image|}}}{{{JP_promotion10_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion10_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion10|{{{JP_promotion10_time|}}} + | + | {{#if:{{{JP_promotion10_image|}}}{{{JP_promotion10_time|}}}|<div class="jcarousel-item" data-value="{{filepath:{{{JP_promotion10_image|}}}}}">[[File:Promotion_timer.png|20px|left|link=]]{{CountDown|JP_promotion10|{{{JP_promotion10_time|}}} +0900|remaining|past}}[[file:Promotion_Blank.png|300px]]{{OverlayCaption|100%|{{{JP_promotion10_caption|}}}}}</div>}} |
}} | }} | ||
</div> | </div> | ||
Line 281: | Line 281: | ||
==Example== | ==Example== | ||
− | {{Template:mainpage | + | {{Template:mainpage |
<!-- CN Server --> | <!-- CN Server --> |
Revision as of 09:35, 1 August 2018
This template is used to update the main page here: Girls'_Frontline_Wiki
Usage
Please remove the parameters that are left blank.
{{Template:mainpage |CN_banner1_image = |CN_banner1_caption = |EN_banner1_image = |EN_banner1_caption = |KR_banner1_image = |KR_banner1_caption = |TW_banner1_image = |TW_banner1_caption = |JP_banner1_image = |JP_banner1_caption = |CN_maintenanceEnd_time = |CN_maintenanceEnd_link = |CN_maintenanceStart_time = |CN_maintenanceStart_link = |EN_maintenanceEnd_time = |EN_maintenanceEnd_link = |EN_maintenanceStart_time = |EN_maintenanceStart_link = |KR_maintenanceEnd_time = |KR_maintenanceEnd_link = |KR_maintenanceStart_time = |KR_maintenanceStart_link = |TW_maintenanceEnd_time = |TW_maintenanceEnd_link = |TW_maintenanceStart_time = |TW_maintenanceStart_link = |JP_maintenanceEnd_time = |JP_maintenanceEnd_link = |JP_maintenanceStart_time = |JP_maintenanceStart_link = |CN_promotion1_time = |CN_promotion1_image = |CN_promotion1_caption = |EN_promotion1_time = |EN_promotion1_image = |EN_promotion1_caption = |KR_promotion1_time = |KR_promotion1_image = |KR_promotion1_caption = |TW_promotion1_time = |TW_promotion1_image = |TW_promotion1_caption = |JP_promotion1_time = |JP_promotion1_image = |JP_promotion1_caption = }}
Parameter list
Event Banners (from the in-game event page)
REGION_banner1~n_image
— For each slide, put down the filename for slide. Get the slide images here. Currently the wiki saves and upload these image files as BANNER_YEAR_MONTH_DAY format, adding _N for additional pictures uploaded within the same day (e.g.BANNER_2017_MAR_3_1.jpg
for second image uploaded on the 3rd of March), so if should you be interested in uploading the images, please follow the same format.REGION_banner1~n_caption
— The line of text that goes under the same slide, usually a translation of the contents inside the slide. A link to the event page is appreciated.
Maintenance timers
REGION_maintenanceEnd_time
— the previous/current maintenance end time count up/countdown timer. Put the end time for the previous maintenance or an ongoing maintenance. Use "YEAR MONTH DAY 24hrTIME" format (e.g.2017 MAR 3 13:00
for 2017 3rd of March at 1PM in China).REGION_maintenanceEnd_link
— a link to the contents of the update somewhere within a subpage of Updates. Subpage format is Updates/year/month(full month name). e.g. Updates/2017/MarchREGION_maintenanceStart_time
— the next/current maintenance start time count up/countdown timer. Put the start time for the current maintenance or starting time of the next maintenance. Use "YEAR MONTH DAY 24hrTIME" format (e.g.2017 MAR 3 13:00
for 2017 3rd of March at 1PM in China).REGION_maintenanceStart_link
— a link for contents of the update for maintenanceStart_time instead of maintenanceEnd_time.
Promotion Timers (from in-game main screen left bottom corner)
REGION_promotion1~n_time
— countdown until or countup after the end of this promotion. Uses "YEAR MONTH DAY 24hrTIME" format (e.g.2017 MAR 3 13:00
for 2017 3rd of March at 1PM in China).REGION_promotion1~n_image
— Similar to banner slides, put down the filename for slide. Get the slide images from your android/emulator, in thesdcard/Android/data/com.digitalsky.girlsfrontline.cn/files/activity/
directory. Currently the wiki saves and upload these image files as Promotion_YEAR_MONTH_DAY format, adding _N for additional pictures uploaded within the same day (e.g.Promotion_2017_MAR_3_1.jpg
for second promotion image uploaded on the 3rd of March), so if should you be interested in uploading the images, please follow the same format.REGION_promotion1~n_caption
— The line of text that goes under the same slide, usually a translation of the contents inside the slide. A link to the event page is appreciated.
Notes
- This template uses Widget:mainpage.
Example
GuidesIndexes |
Mechanics |
NewsCommunity |
TBA
TBA
TBA
Recently added
P2000 |
Stevens M520 |
Stevens M620 |
FM24 |
Tactical Defense Shield |
Pattern 64 Light Webbing |
FA Origin Exoskeleton |
Multi-Function Accessory |
Extension:DynamicPageList (DPL), version 3.3.3: Warning: No results.
Ladon |
Technician |
Cannoneer |
Arachne's Clone |
About Girls' Frontline
Developed by Mica Team, Girls' Frontline is a mobile Tactical SLG for Android and iOS where the player takes the role of a newly recruited commander in a Private Military Company named Grifon&Kryuger and completes various tasks by commanding highly advanced androids known as Tactical Dolls.
The above documentation is transcluded from Template:mainpage/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
Example
GuidesIndexes |
Mechanics |
NewsCommunity |
TBA
TBA
TBA
Recently added
P2000 |
Stevens M520 |
Stevens M620 |
FM24 |
Tactical Defense Shield |
Pattern 64 Light Webbing |
FA Origin Exoskeleton |
Multi-Function Accessory |
Extension:DynamicPageList (DPL), version 3.3.3: Warning: No results.
Ladon |
Technician |
Cannoneer |
Arachne's Clone |
About Girls' Frontline
Developed by Mica Team, Girls' Frontline is a mobile Tactical SLG for Android and iOS where the player takes the role of a newly recruited commander in a Private Military Company named Grifon&Kryuger and completes various tasks by commanding highly advanced androids known as Tactical Dolls.