Template:LocalPage: Difference between revisions

Content deleted Content added
Created page with "{{#ifexist: {{{1}}}/{{{2|{{pagelang}}}}} | {{{1}}}/{{{2|{{pagelang}}}}}}} | {{{1}}} }}<noinclude> Translated version of the given page if it exists, else fall back to root pa..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1:
{{#ifexistifeq: {{{1}}}/{{{2|{{pagelang}}}}} | {{{1}}}/{{{2|{{pagelang}}}}}}}en | {{{1}}} }}<noinclude>
| {{{1}}}
| {{#ifexist: {{{1}}}/{{{2|{{pagelang}}}}}
| {{{1}}}/{{{2|{{pagelang}}}}}
| {{{1}}}
}}
}}<noinclude>
 
Translated version of the given page if it exists, else fall back to root page (English).
Line 5 ⟶ 11:
First parameter is page. Second is language, or if omitted defaults to the value of {{tl|pagelang}} for the current page.
 
* <code><nowiki>{{LocalPage|Ways to Give|fr}}</nowiki></code> - {{LocalPage|Ways to Give|fr}}
* <code><nowiki>{{LocalPage|Ways to Give|la}}</nowiki></code> - {{LocalPage|Ways to Give|la}}
* <code><nowiki>{{LocalPage|Ways to Give|en}}</nowiki></code> - {{LocalPage|Ways to Give|en}}
* <code><nowiki>{{LocalPage|Ways to Give}}</nowiki></code> - {{LocalPage|Ways to Give}}
 
[[Category:Utility templates]]