Template:Retrieved: Difference between revisions
m (fix unknown category link) |
(update) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{ | {{Documentation/sandbox|doc = | ||
{{ | The {{tll|Header}} can be used whenever something, such as code, is retrieved. This template indicates which version the information was retrieved from. | ||
</noinclude><includeonly> | ==Usage== | ||
Used for displaying when game code was retrieved. | |||
''<small>'''{{Translation|Retrieved}}''': {{#if: {{{version|}}} | |||
| | ===Parameters=== | ||
;<code>version</code> | |||
:the major Project Zomboid version this page's content is up to date to. The contents of this parameter will also be categorized on the page. | |||
;<code>incver</code> | |||
:the incremental (minor) Project Zomboid version this information is up to date to. Used to avoid creating many categories for a single release version. | |||
;<code>date</code> | |||
:the date retrieved can be added. Accepted input formats are: ISO 8601 (yyyy-mm-dd), or any order using the month shorthand (dd mmm yyyy). E.g. <code>2022-12-12</code>, <code>12 dec 2022</code>. | |||
;<code>hidecat</code> | |||
:if not blank (empty) page will not be added to the version category. ''This should only be used if absolutely necessary.'' | |||
==Examples== | |||
===Basic usage=== | |||
* {{tll|Retrieved|version{{=}}41|incver{{=}}78.16}} -> {{Retrieved|version=41|incver=78.16|hidecat=true}} | |||
* {{tll|Retrieved|version{{=}}41|incver{{=}}78.16|date{{=}}12 dec 2022}} -> {{Retrieved|version=41|incver=78.16|date=12 dec 2022|hidecat=true}} | |||
* {{tll|Retrieved}} -> {{Retrieved|hidecat=true}} | |||
===Used with game code=== | |||
{{Retrieved|version=41|incver=78.16|date=12 dec 2022|hidecat=true}} | |||
<pre>item TinOpener | |||
Weight = 0.6, | |||
Type = Normal, | |||
DisplayName = Can Opener, | |||
Icon = CanOpener, | |||
MetalValue = 3, | |||
</pre> | |||
*This will also add the page to "{{ll|:Category:Version 41.78.16|Version 41.78.16}}" category. | |||
{{Translation guide}} | |||
==See also== | |||
*{{ll|Template:Header}} | |||
*{{ll|Template:CodeSnip}} | |||
*{{ll|Template:CodeBox}} | |||
}} | |||
{{ll|Category:Templates}} | |||
</noinclude><includeonly>''<small>'''{{Translation|Retrieved}}''': {{#if: {{{version|}}} | |||
| {{ll|Build {{{version}}}{{!}}Build {{{version}}}{{#if: {{{incver|}}} | |||
| .{{{incver}}} | | .{{{incver}}} | ||
}} | }}}} | ||
| Unknown Version | | {{Translation|Unknown Version}} | ||
}}{{#if:{{{hidecat|}}} | }}{{#if: {{{hidecat|}}} | ||
|| | || {{ll|Category:{{#if: {{{version|}}} | ||
| Version {{{version}}}{{#if:{{{incver|}}} | | Version {{{version}}}{{#if:{{{incver|}}} | ||
| .{{{incver}}} | | .{{{incver}}} | ||
}} | }} | ||
| Unknown Version | | Unknown Version | ||
}} | }}}} | ||
}} {{#if:{{{date|}}}|({{#dateformat:{{{date}}}|dmy}})}}</small>'' | }} {{#if:{{{date|}}}|({{#dateformat:{{{date}}}|dmy}})}}</small>''</includeonly> | ||
Revision as of 04:50, 31 December 2023
The {{Header}}
can be used whenever something, such as code, is retrieved. This template indicates which version the information was retrieved from.
Usage
Used for displaying when game code was retrieved.
Parameters
version
- the major Project Zomboid version this page's content is up to date to. The contents of this parameter will also be categorized on the page.
incver
- the incremental (minor) Project Zomboid version this information is up to date to. Used to avoid creating many categories for a single release version.
date
- the date retrieved can be added. Accepted input formats are: ISO 8601 (yyyy-mm-dd), or any order using the month shorthand (dd mmm yyyy). E.g.
2022-12-12
,12 dec 2022
. hidecat
- if not blank (empty) page will not be added to the version category. This should only be used if absolutely necessary.
Examples
Basic usage
{{Retrieved|version=41|incver=78.16}}
-> Retrieved: Build 41.78.16{{Retrieved|version=41|incver=78.16|date=12 dec 2022}}
-> Retrieved: Build 41.78.16 (12 December 2022){{Retrieved}}
-> Retrieved: Unknown Version
Used with game code
Retrieved: Build 41.78.16 (12 December 2022)
item TinOpener Weight = 0.6, Type = Normal, DisplayName = Can Opener, Icon = CanOpener, MetalValue = 3,
- This will also add the page to "Version 41.78.16" category.
How to translate
This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:
- Create a subpage of this template with the language code of the language you want to translate to.
- Copy the code wrapped in the
<noinclude>
tag in this template into the page you created.{{Translation guide}}
template should be removed from the translated documentation.
- Translate the page according to the translation requirements of normal pages.