Difference between revisions of "Template:R from alternative language"

From blackwiki
Jump to navigation Jump to search
test>Trappist the monk
(per edit request;)
test>Wugapodes
(Replace native check with Module:Lang's is_ietf_code function which is far more reliable than category names, see, eg, Encyclopedia of the Yiddish Theatre)
Line 2: Line 2:
 
</noinclude>{{Redirect template
 
</noinclude>{{Redirect template
 
   |name=[[:Category:Redirects from alternative languages|From an alternative language]]
 
   |name=[[:Category:Redirects from alternative languages|From an alternative language]]
   |from=a page name in {{#if:{{{1|}}}{{{from|}}}{{{lang|}}}|{{#switch:{{{1|}}}{{{from|}}}{{{lang|}}}|art=an [[Constructed language|artificial language]]|bo=one of the [[Tibetan languages]]|und=an as yet [[undetermined language]]|#default={{#ifexist:Category:Redirects from {{#invoke:Lang|name_from_code|{{{1|{{{from|{{{lang|}}}}}}}}}}}-language terms|{{#invoke:Lang|name_from_code|{{{1|{{{from|{{{lang|}}}}}}}}}|link=yes}}|an as yet [[undetermined language]]}}}}|an as yet [[undetermined language]]}}
+
   |from=a page name in {{#switch:{{{1|}}}{{{from|}}}{{{lang|}}}
   |to=a page name in {{#if:{{{2|}}}{{{to|}}}|{{#switch:{{{2}}}{{{to|}}}|art=an [[Constructed language|artificial language]]|bo=one of the [[Tibetan languages]]|und=an as yet [[undetermined language]]|#default={{#ifexist:Category:Redirects to {{#invoke:Lang|name_from_code|{{{2|{{{to}}}}}}}}-language terms|[[{{#invoke:Lang|name_from_code|{{{2|{{{to}}}}}}}} language|{{#invoke:Lang|name_from_code|{{{2|{{{to}}}}}}}}]]|an as yet [[undetermined language]]}}}}|an as yet [[undetermined language]]}}.  These words may directly translate or they may be related words, names or phrases
+
              |art=an [[Constructed language|artificial language]]
 +
              |bo=one of the [[Tibetan languages]]
 +
              |und=an as yet [[undetermined language]]
 +
              |#default={{#if:{{#invoke:lang|is_ietf_code|{{{1}}}{{{from|}}}{{{lang|}}}}}
 +
                        |{{#invoke:lang|name_from_code|{{{1}}}{{{from|}}}{{{lang|}}}|link=yes}}
 +
                        |an as yet [[undetermined language]]}}}}
 +
   |to=a page name in {{#switch:{{{2|}}}{{{to|}}}
 +
              |art=an [[Constructed language|artificial language]]
 +
              |bo=one of the [[Tibetan languages]]
 +
              |und=an as yet [[undetermined language]]
 +
              |#default={{#if:{{#invoke:lang|is_ietf_code|{{{2|}}}{{{to|}}}}}
 +
                        |{{#invoke:lang|name_from_code|{{{2|}}}{{{to|}}}|link=yes}}
 +
                        |an as yet [[undetermined language]]}}}}.  These words may directly translate or they may be related words, names or phrases
 
   |info=** This redirect leads to its target in accordance with the naming conventions for titles in other languages and can help writing and searches.  However, per [[WP:NOTBROKEN]] do not replace these redirected links with a [[WP:piped link|piped link]] unless the page is updated for another reason.
 
   |info=** This redirect leads to its target in accordance with the naming conventions for titles in other languages and can help writing and searches.  However, per [[WP:NOTBROKEN]] do not replace these redirected links with a [[WP:piped link|piped link]] unless the page is updated for another reason.
 
   |printworthy={{main other|{{#ifeq:{{{1}}}{{{from|}}}{{{lang|}}}|en|{{#ifeq:{{{printworthy}}}|no|no|yes}}}}}}
 
   |printworthy={{main other|{{#ifeq:{{{1}}}{{{from|}}}{{{lang|}}}|en|{{#ifeq:{{{printworthy}}}|no|no|yes}}}}}}

Revision as of 06:41, 12 July 2019

Template:This is a redirect/rcat

  • From an alternative language: This is a redirect from a page name in Script error: The function "name_from_code" does not exist. to a page name in Script error: The function "name_from_code" does not exist.. These words may directly translate or they may be related words, names or phrases.
    • This redirect leads to its target in accordance with the naming conventions for titles in other languages and can help writing and searches. However, per WP:NOTBROKEN do not replace these redirected links with a piped link unless the page is updated for another reason.
50px Template documentation[create]