Difference between revisions of "Template:PublicRevision"

From Organic Design wiki
m
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Box|Dialog-warning.svg|This page shows an old version of the article intended for public viewing.|
+
<noinclude>
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/>
+
{{PublicRevision}}
*[{{fullurl:{{PAGENAME}}|action=makePublic}} Make this revision public]
+
<pre>
*[{{fullurl:{{PAGENAME}}|action=makePublic}} Always show the most recent revision]
+
{{PublicRevision}}
 +
</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>

Latest revision as of 23:46, 11 October 2007


{{PublicRevision}}

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.