Template:LocalPage: Difference between revisions

From Donate
Jump to navigation Jump to search
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: Line 1:
{{#ifexist: {{{1}}}/{{{2|{{pagelang}}}}} | {{{1}}}/{{{2|{{pagelang}}}}}}} | {{{1}}} }}<noinclude>
{{#ifeq: {{{2|{{pagelang}}}}} | en
| {{{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).
Translated version of the given page if it exists, else fall back to root page (English).
Line 5: Line 11:
First parameter is page. Second is language, or if omitted defaults to the value of {{tl|pagelang}} for the current page.
First parameter is page. Second is language, or if omitted defaults to the value of {{tl|pagelang}} for the current page.


* <nowiki>{{LocalPage|Ways to Give|fr}}</nowiki> - {{LocalPage|Ways to Give|fr}}
* <code><nowiki>{{LocalPage|Ways to Give|fr}}</nowiki></code> - {{LocalPage|Ways to Give|fr}}
* <nowiki>{{LocalPage|Ways to Give|la}}</nowiki> - {{LocalPage|Ways to Give|la}}
* <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]]
[[Category:Utility templates]]

Latest revision as of 11:00, 27 July 2018

{{{1}}}

Translated version of the given page if it exists, else fall back to root page (English).

First parameter is page. Second is language, or if omitted defaults to the value of {{pagelang}} for the current page.

  • {{LocalPage|Ways to Give|fr}} - Ways to Give/fr
  • {{LocalPage|Ways to Give|la}} - Ways to Give
  • {{LocalPage|Ways to Give|en}} - Ways to Give
  • {{LocalPage|Ways to Give}} - Ways to Give