|
|
Line 1: |
Line 1: |
| {{Documentation subpage}} | | <noinclude> |
| <!-- Please add categories to the /doc subpage. --> | | {{documentation}} |
| | | </noinclude><includeonly>{{#switch: {{{type|notice}}} |
| The '''Update''' template is used to mark pages or sections that contain outdated information and need to be updated with current game data from Chrono Odyssey.
| | | notice = <div class="update-notice" style="background-color: #fff3cd; border: 2px solid #ffc107; border-radius: 5px; padding: 10px; margin: 10px 0; display: flex; align-items: center;"> |
| | | [[File:Update icon.png|40px|link=|alt=Update needed|class=noviewer]] |
| == Usage == | | <div style="margin-left: 10px; flex: 1;"> |
| | | <div style="font-weight: bold; color: #856404; font-size: 1.1em;">Update Required</div> |
| This template has multiple display modes depending on the <code>type</code> parameter:
| | <div style="color: #856404; margin-top: 5px;">{{#if: {{{reason|}}} | {{{reason}}} | This page contains outdated information and needs to be updated.}}</div> |
| | | {{#if: {{{date|}}} | <div style="font-size: 0.9em; color: #666; margin-top: 5px;">''Last verified: {{{date}}}''</div> | }} |
| === Notice box (default) === | | {{#if: {{{patch|}}} | <div style="font-size: 0.9em; color: #666;">''As of patch: {{{patch}}}''</div> | }} |
| {{tlx|Update|reason{{=}}Information outdated since the combat rework|date{{=}}January 2025|patch{{=}}1.2.0}} | | </div> |
| | | </div> |
| Produces a prominent notice box at the top of a page or section.
| | | section = <div class="update-section" style="background-color: #f8f9fa; border-left: 4px solid #ffc107; padding: 5px 10px; margin: 5px 0;"> |
| | | <span style="color: #856404; font-weight: bold;">⚠ Update needed:</span> {{#if: {{{1|}}} | {{{1}}} | This section requires updating.}} |
| === Section notice ===
| | </div> |
| {{tlx|Update|type{{=}}section|Skills section needs updating after class balance patch}} | | | inline = <span class="update-inline" style="color: #856404; font-weight: bold;" title="This information may be outdated">[update needed{{#if: {{{1|}}} | : {{{1}}} | }}]</span> |
| | | | patch = <div class="patch-update" style="background-color: #d4edda; border: 1px solid #28a745; border-radius: 5px; padding: 10px; margin: 10px 0;"> |
| Produces a smaller notice for specific sections.
| | <div style="font-weight: bold; color: #155724; font-size: 1.1em;">🔄 Updated in Patch {{{patch|Unknown}}}</div> |
| | | {{#if: {{{changes|}}} | <div style="color: #155724; margin-top: 5px;">{{{changes}}}</div> | }} |
| === Inline notice ===
| | {{#if: {{{date|}}} | <div style="font-size: 0.9em; color: #666; margin-top: 5px;">''Released: {{{date}}}''</div> | }} |
| {{tlx|Update|type{{=}}inline|verify damage values}} | | </div> |
| | | }}{{#ifeq: {{{nocat|no}}} | no | [[Category:Pages needing updates]]{{#if: {{{patch|}}} | [[Category:Outdated as of patch {{{patch}}}]] | }}{{#if: {{{priority|}}} | [[Category:Update priority: {{{priority}}}]] | }} | }}</includeonly> |
| Produces an inline [update needed] tag.
| |
| | |
| === Patch update notice ===
| |
| {{tlx|Update|type{{=}}patch|patch{{=}}1.2.0|date{{=}}January 15, 2025|changes{{=}}Major class balance changes and new skill trees added}} | |
| | |
| Produces a green notice box showing that content was recently updated.
| |
| | |
| == Parameters == | |
| | |
| {{Parameter|type|optional|The display type of the update notice|Default: notice
| |
| * '''notice''' - Full notice box (default)
| |
| * '''section''' - Section-level notice
| |
| * '''inline''' - Inline text notice
| |
| * '''patch''' - Patch update notification}}
| |
| | |
| {{Parameter|reason|optional|Explanation of why the update is needed|For type=notice}} | |
| | |
| {{Parameter|date|optional|Date when the information was last verified|Format: Month Year}} | |
| | |
| {{Parameter|patch|optional|Game patch version that made the information outdated|Example: 1.2.0}}
| |
| | |
| {{Parameter|changes|optional|Description of changes made|For type=patch}}
| |
| | |
| {{Parameter|priority|optional|Update priority level|Options: high, medium, low}} | |
| | |
| {{Parameter|nocat|optional|Set to "yes" to prevent automatic categorization|Default: no}} | |
| | |
| {{Parameter|1|optional|Quick reason text|For type=section and type=inline}} | |
| | |
| == Examples ==
| |
| | |
| === Basic usage ===
| |
| <pre>
| |
| {{Update}}
| |
| </pre> | |
| {{Update}}
| |
| | |
| === With reason and patch === | |
| <pre> | |
| {{Update|reason=Drop rates changed in the latest patch|patch=1.1.5}} | |
| </pre> | |
| {{Update|reason=Drop rates changed in the latest patch|patch=1.1.5}} | |
| | |
| === Section update === | |
| <pre>
| |
| {{Update|type=section|Skill descriptions need updating}} | |
| </pre> | |
| {{Update|type=section|Skill descriptions need updating}}
| |
| | |
| === Inline usage ===
| |
| <pre>
| |
| The boss has 50,000 HP {{Update|type=inline|unconfirmed}} and drops rare materials.
| |
| </pre>
| |
| The boss has 50,000 HP {{Update|type=inline|unconfirmed}} and drops rare materials.
| |
| | |
| === Patch notification ===
| |
| <pre> | |
| {{Update|type=patch|patch=1.2.0|date=January 15, 2025|changes=Boss mechanics completely reworked, new phases added}}
| |
| </pre> | |
| {{Update|type=patch|patch=1.2.0|date=January 15, 2025|changes=Boss mechanics completely reworked, new phases added}} | |
| | |
| == Tracking categories ==
| |
| | |
| Pages using this template are automatically added to the following categories:
| |
| * [[:Category:Pages needing updates]] - All pages with update notices
| |
| * [[:Category:Outdated as of patch X]] - Pages outdated since a specific patch (if patch parameter is used)
| |
| * [[:Category:Update priority: high/medium/low]] - Pages sorted by update priority (if priority parameter is used)
| |
| | |
| == Notes ==
| |
| * The template assumes an "Update icon.png" file exists on the wiki. Upload an appropriate warning/update icon or modify the template to use a different image.
| |
| * Colors and styling can be adjusted in the template code to match your wiki's theme.
| |
| * Consider creating a maintenance project page to coordinate update efforts across the wiki.
| |
| | |
| == See also ==
| |
| * [[Template:Outdated]] - Alternative template for outdated content
| |
| * [[Template:Verify]] - For information that needs verification
| |
| * [[Template:Stub]] - For incomplete articles
| |
| * [[Project:Maintenance]] - Wiki maintenance coordination
| |
| | |
| <includeonly>
| |
| [[Category:Maintenance templates]]
| |
| [[Category:Notice templates]]
| |
| </includeonly> | |