Permanently protected template

Difference between revisions of "Template:Forum/header"

From Yugipedia
Jump to: navigation, search
(always pass a value for {{{last edit}}} - if manually archived via {{{last edit}}}, pass that value in, otherwise if manually archived via {{{archived}}}, pass "archived-without-date" in, otherwise pass {{REVISIONTIMESTAMP}} in)
(full-protecting a forum topic should auto-archive it)
Line 28: Line 28:
 
     | Yu-Gi-Oh! Wiki Discussion          = <!-- forum indexes *never* get archived -->
 
     | Yu-Gi-Oh! Wiki Discussion          = <!-- forum indexes *never* get archived -->
 
     | #default                            = {{
 
     | #default                            = {{
       #if: {{{archived|}}}{{{last edit|}}}<!-- manually archiving overrides everything else -->
+
       #if: {{{archived|}}}{{{last edit|}}}{{ #ifeq: {{PROTECTIONLEVEL:edit}} | sysop | 1 }}<!-- manually archiving overrides everything else -->
 
       | 1
 
       | 1
 
       | {{
 
       | {{
Line 43: Line 43:
 
     }}
 
     }}
 
   }}
 
   }}
| last edit = {{ #if: {{{last edit|}}} | {{{last edit}}} | {{ #if: {{{archived|}}} | archived-without-date | {{REVISIONTIMESTAMP}} }} }}
+
| last edit = {{ #if: {{{last edit|}}} | {{{last edit}}} | {{ #if: {{{archived|}}}{{ #ifeq: {{PROTECTIONLEVEL:edit}} | sysop | 1 }} | archived-without-date | {{REVISIONTIMESTAMP}} }} }}
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 02:05, 2 February 2015