Template:UserContentVersion: Difference between revisions

From Melvor Idle
(Add V template more decently)
(Add default parameter fallback)
Line 2: Line 2:
<!--This template is to replace the V template ONLY for user created content pages (such as guides). The version parameter is no longer going to be optional for this template, as to force someone having to manually evaluate the page, in order to remove the page from the list if outdated pages. The template will compare against the {{CurrentVersion}} template to determine if the page is outdated or not. In case the page is outdated, a banner will be shown indicated that the page is in need of re-eveluating-->
<!--This template is to replace the V template ONLY for user created content pages (such as guides). The version parameter is no longer going to be optional for this template, as to force someone having to manually evaluate the page, in order to remove the page from the list if outdated pages. The template will compare against the {{CurrentVersion}} template to determine if the page is outdated or not. In case the page is outdated, a banner will be shown indicated that the page is in need of re-eveluating-->
<includeonly>
<includeonly>
{{#if:{{{1}}}<!--Version template (V) is included in here for the meantime. It will eventually be removed from user content versioning.-->
{{#if:{{{1|}}}<!--Version template (V) is included in here for the meantime. It will eventually be removed from user content versioning.-->
|{{V|{{{1}}}}}{{#ifeq:{{{1}}}
|{{V|{{{1}}}}}{{#ifeq:{{{1}}}
     |{{CurrentVersion}}
     |{{CurrentVersion}}

Revision as of 21:42, 13 June 2024

This template is to replace Template:V ONLY for user created content pages (such as guides). The version parameter is no longer going to be optional for this template, as to force someone having to manually evaluate the page, in order to remove the page from the list of outdated pages. The template will compare against the Template:CurrentVersion template to determine if the page is outdated or not. In case the page is outdated, a banner will be shown indicated that the page is in need of re-evaluating.

If a page is outdated, Category:Outdated user content pages is added to the page. In case a version is omitted, Category:Pages without a version is added to the page instead.