Template:AVAILABLEDOCPAGENAME: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#ifeq: {{intlang}} | en | {{#ifeq: {{intlang}} | en <!-- just go ahead and return english if we have english --> | ||
| {{#if: {{PROTECTIONEXPIRY:edit| {{BASEDOCPAGENAME|{{{1|}}}}} | {{BASEDOCPAGENAME|{{{1|}}}}} }} | | {{#if: {{PROTECTIONEXPIRY:edit| {{BASEDOCPAGENAME|{{{1|}}}}} }} | {{BASEDOCPAGENAME|{{{1|}}}}} }} | ||
| {{#if: {{PROTECTIONEXPIRY:edit| {{DOCPAGENAME|{{{1|}}}}} }} | | {{#if: {{PROTECTIONEXPIRY:edit| {{DOCPAGENAME|{{{1|}}}}} }} | ||
<!-- if doc for current language exists --> | |||
| {{DOCPAGENAME|{{{1|}}}}} | | {{DOCPAGENAME|{{{1|}}}}} | ||
| {{#if:{{{translated|}}} | |||
| | <!-- if doc for current language doesn't exists --> | ||
| {{#if: {{PROTECTIONEXPIRY:edit| {{{1| | | {{#if:{{{translated|}}} <!-- translated=1 means we want only translated doc page name to be returned and no default base --> | ||
| {{{1| | | | ||
| {{#if: {{PROTECTIONEXPIRY:edit| {{BASEDOCPAGENAME|{{{1|}}}}} }} | |||
| {{BASEDOCPAGENAME|{{{1|}}}}} | |||
}} | }} | ||
}} | }} | ||
}} | }} | ||
}}<!-- this is confusing AS FUCK fuck me *%&#&*#&--> | }}<!-- this is confusing AS FUCK fuck me *%&#&*#&--> |