Template:UserContentVersion: Difference between revisions

Add display-inline to remove p block when version is up to date
(Add default parameter fallback)
(Add display-inline to remove p block when version is up to date)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--{{MainOnly|[[Category:Outdated user content pages]]}}-->
<includeonly>{{#if:{{{1|}}}
<!--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-->
|{{#ifeq:{{{1}}}
<includeonly>
{{#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}}}
     |{{CurrentVersion}}
     |{{CurrentVersion}}
     |<!--Version matches, no category-->
     |<div style="display:inline;"/><!--Version matches, no category-->
     |[[Category:Outdated user content pages]]}}
     |{{MessageBox|img=[[File:Rock Carving (item).png|35x35px|center|link=]]
|{{V}}[[Category:Pages without a version]]}}
    |This page is possibly not up to date. It was last updated for {{{1}}}
</includeonly><noinclude>{{/doc}}[[Category:Maintenance Templates]]</noinclude>
    |You can help with bringing this page up to date by [[Special:EditPage/{{FULLPAGENAME}}|contributing]].
    }}{{MainOnly|[[Category:Outdated user content pages]]}}}}
|{{MainOnly|[[Category:Pages without a version]]}}}}<!--
--></includeonly><noinclude>{{/doc}}[[Category:Maintenance Templates]]</noinclude>
2,647

edits