Template:AVAILABLEDOCPAGENAME: Difference between revisions

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

Latest revision as of 06:56, 14 August 2024