Difference between revisions of "Template:PublicRevision"

From Organic Design wiki
(rv)
m
Line 1: Line 1:
{{message|icon=[[Image:Text-x-generic.svg|40px]]|text=This page shows an old version of the article intended for public consumption. Editing will allow you to edit the most recent version. You can then choose to make private revisions or make the article revision public.<br/>
+
<noinclude>
*[{{fullurl:{{PAGENAME}}|action=makePublic}} Make this revision public]
+
{{PublicRevisionNotice}}
*[{{fullurl:{{PAGENAME}}|action=makePublic}} Always show the most recent revision]
+
<pre>
 +
{{PublicRevisionNotice}}
 +
</pre>
 +
This template shows a notice when there is an active Public Revision for the article. The notice is only shown to the ''staff'' group, so anon users and students (''user'') groups see a normal article.
 +
==Todo==
 +
Hide the ''previous next'' links that show when ''oldid'' is used.
 +
[[Category:Todo]]
 +
</noinclude>
 +
<includeonly>{{#ifgroup:staff|
 +
{{#if:
 +
{{#ifexist:PublicRevision:{{PAGENAME}}|{{PublicRevision:{{PAGENAME}}}}|}}|
 +
{{Message|icon=[[Image:Text-x-generic.svg|40px]]|text='''Public Revision: You are viewing an old version of this page'''<br/>Editing will allow you to edit the most recent version.}}
 
}}
 
}}
 +
}}</includeonly>

Revision as of 23:46, 11 October 2007

Template:PublicRevisionNotice

{{PublicRevisionNotice}}

This template shows a notice when there is an active Public Revision for the article. The notice is only shown to the staff group, so anon users and students (user) groups see a normal article.

Todo

Hide the previous next links that show when oldid is used.