Jump to content

Template:Upcoming: Difference between revisions

From Stardew Valley Wiki
imported>Pathoschild
+ position argument for content
imported>Pathoschild
+ custom message parameter
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="border: 1px solid gray; border-left: 1em solid gray; padding: 0.5em 1em; border-radius: 5px;">
{{#if:{{{inline|}}}|<span style="color: gray;">{{{message|As of {{#if:{{{1|{{{version|}}}}}}|the upcoming {{{name|Stardew Valley}}} {{{1|{{{version}}}}}}|an upcoming version of {{{name|Stardew Valley}}}}}}}}: {{{content|{{{2|}}}}}}</span>|<div style="border: 1px solid gray; border-left: 1em solid gray; padding: 0.5em 1em; border-radius: 5px;"><!--
<div>The following describes {{#if:{{{1|{{{version|}}}}}}|the upcoming {{{name|Stardew Valley}}} {{{1|{{{version}}}}}}|an upcoming version of {{{name|Stardew Valley}}}}}, and may change before release.</div>
--><div>{{{message|The following describes {{#if:{{{1|{{{version|}}}}}}|the upcoming {{{name|Stardew Valley}}} {{{1|{{{version}}}}}}|an upcoming version of {{{name|Stardew Valley}}}}}, and may change before release.}}}</div>
{{#if:{{{content|{{{2|}}}}}}|<div style="opacity: 0.65;">{{{content|{{{2|}}}}}}</div>}}
{{#if:{{{content|{{{2|}}}}}}|<div style="opacity: 0.65;">{{{content|{{{2|}}}}}}</div>}}<!--
</div><noinclude>
--></div>}}<noinclude>
{{{{FULLPAGENAME}}/doc}}
{{{{FULLPAGENAME}}/doc}}
</noinclude>
</noinclude>

Latest revision as of 20:41, 1 March 2025

The following describes an upcoming version of Stardew Valley, and may change before release.

Description

This template wraps features available in a future version of Stardew Valley or SMAPI to avoid confusion.

Basic usage

As a header

{{upcoming|1.3 beta}}
The following describes the upcoming Stardew Valley 1.3 beta, and may change before release.

As a content block

{{upcoming
 |version = 1.3 beta
 |content = Feature documentation goes here.
}}
The following describes the upcoming Stardew Valley 1.3 beta, and may change before release.
Feature documentation goes here.

As an inline phrase

{{upcoming|1.3 beta|Feature description goes here.|inline=1}}

As of the upcoming Stardew Valley 1.3 beta: Feature description goes here.

Advanced usage

For non-Stardew Valley releases

By default the template will say 'Stardew Valley'. For something else, specify the name argument:

{{upcoming
 |name    = SMAPI
 |version = 3.0
 |content = Feature documentation goes here.
}}
The following describes the upcoming SMAPI 3.0, and may change before release.
Feature documentation goes here.

Custom message

For rare cases, you can completely override the message displayed with any of the previous forms. For example:

{{upcoming
 |version = 3.0
 |message = '''This page describes an unreleased pre-alpha version of the game with no estimated release date. Things ''will'' change before it's released!'''
}}
This page describes an unreleased pre-alpha version of the game with no estimated release date. Things will change before it's released!

See also