Template:Editnotice load: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content added Content deleted
m (fix whitespace issues)
(Adding "view" links, and some "clear:both;" so notices can't flow into next section. Forwarding "notice action=view" and don't show namespace-notice when "viewing" a protected page. See talk page.)
Line 1: Line 1:
<div class="editnotice-area" style="clear: both;"><!--
<div class="editnotice-area" style="clear: both;"><!--
Namespace notice:

-->{{#ifeq: {{{notice action|}}} | view

| <!--"Viewing the source" of a protected page, don't show namespace notice-->
Namespace notice
| {{#ifexist: Template:Editnotices/Namespace/{{#if:{{NAMESPACE}}|{{NAMESPACE}}|Main}}

-->{{#ifexist:Template:Editnotices/Namespace/{{#if:{{NAMESPACE}}|{{NAMESPACE}}|Main}}
| <div class="editnotice-namespace"> {{Template:Editnotices/Namespace/{{#if:{{NAMESPACE}}|{{NAMESPACE}}|Main}}}} </div>
}}
| <div class="editnotice-namespace">{{Template:Editnotices/Namespace/{{#if:{{NAMESPACE}}|{{NAMESPACE}}|Main}}}}</div>
}}<!--
}}<!--
Group notice:

-->{{#if: {{ns has subpages}}

| {{#ifexist: Template:Editnotices/Group/{{FULLROOTPAGENAME}}
Group notice
| <div class="editnotice-group-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; font-size: 88%; line-height: 1em;"> [[Template:Editnotices/Group/{{FULLROOTPAGENAME}}|view]] </div>

<div class="editnotice-group" style="clear: both;"> {{Template:Editnotices/Group/{{FULLROOTPAGENAME}}| notice action={{{notice action|}}} }} </div>
-->{{ #if:{{ns has subpages}}
}}
| {{#ifexist:Template:Editnotices/Group/{{FULLROOTPAGENAME}}
| <div class="editnotice-group">{{Template:Editnotices/Group/{{FULLROOTPAGENAME}}}}</div>
}}
}}<!--
}}<!--
Page notice. Load user (talk) rootpage editnotices from
user space, rest from "Template:Editnotices/Page/".
-->{{#switch: {{PAGENAME}}:::{{NAMESPACE}}
| {{BASEPAGENAME}}:::{{ns:User}}
| {{BASEPAGENAME}}:::{{ns:User talk}} =
{{#ifexist: {{FULLPAGENAME}}/Editnotice
| <div class="editnotice-page-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; font-size: 88%; line-height: 1em;"> [[{{FULLPAGENAME}}/Editnotice|view]] </div>
<div id="editnotice-ns-{{NAMESPACEID}}" class="editnotice-page" style="clear: both;"> {{{{FULLPAGENAME}}/Editnotice| notice action={{{notice action|}}} }} </div>
}}
| #default =
{{#ifexist: Template:Editnotices/Page/{{FULLPAGENAME}}
| <div class="editnotice-page-link" style="clear: both; float: right; margin: 0px 0.8em; padding: 0; font-size: 88%; line-height: 1em;"> [[Template:Editnotices/Page/{{FULLPAGENAME}}|view]] </div>
<div class="editnotice-page" style="clear: both;"> {{Template:Editnotices/Page/{{FULLPAGENAME}}| notice action={{{notice action|}}} }} </div>
}}
}}<div style="clear: both;"></div> </div><noinclude>



Page notice. Load user (talk) rootpage editnotices from user space, rest from Template:Editnotices/Page/

-->{{#switch:{{PAGENAME}}:::{{NAMESPACE}}
| {{BASEPAGENAME}}:::{{ns:User}} | {{BASEPAGENAME}}:::{{ns:User talk}} =
{{#ifexist:{{FULLPAGENAME}}/Editnotice
| <div id="editnotice-ns-{{NAMESPACEID}}" class="editnotice-page">{{{{FULLPAGENAME}}/Editnotice}}</div>
}}
| #default =
{{#ifexist:Template:Editnotices/Page/{{FULLPAGENAME}}
| <div class="editnotice-page">{{Template:Editnotices/Page/{{FULLPAGENAME}}}}</div>
}}
}}<!--


--></div><noinclude>
{{pp-template|small=yes}}
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 03:57, 6 January 2010