Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Conj: Difference between revisions

Template page
+ Chinese (let's do it simply this way)
m Changed protection settings for "Template:Conj": Widely used template ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite))
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{#ifeq: {{{type|}}} | or | {{{1|}}}{{#if:{{{2|}}}
{{#invoke:Linguistic|conjfromWiki}}<noinclude>
|{{#if:{{{3|}}}
 
  |{{#if:{{{4|}}}
  |{{#if:{{{5|}}}
    |, {{{2}}}, {{{3}}}, {{{4}}}
    |, {{{2}}}, {{{3}}}
    }}
  |, {{{2}}}
  }}
  }}{{#if: {{{comma|}}}|,|<nowiki/>{{langSwitch|zh=|zh-cn=|zh-tw=|default=&#32;|lang={{{lang|}}}}}{{langSwitch|ca=o|de=oder|en=or|fr=ou|pl=lub|zh=或|lang={{{lang|}}}}}}}{{langSwitch|zh=|zh-cn=|zh-tw=|default=&#32;|lang={{{lang|}}}}}{{#if:{{{3|}}}
  |{{#if:{{{4|}}}
  |{{#if:{{{5|}}}
    |{{{5}}}
    |{{{4}}}
    }}
  |{{{3}}}
  }}
  |{{{2}}}
  }}
}}
|
{{{1|}}}{{#if:{{{2|}}}
|{{#if:{{{3|}}}
  |{{#if:{{{4|}}}
  |{{#if:{{{5|}}}
    |, {{{2}}}, {{{3}}}, {{{4}}}
    |, {{{2}}}, {{{3}}}
    }}
  |, {{{2}}}
  }}
  }}{{#if: {{{comma|}}}|,|<nowiki/>{{langSwitch|zh=|zh-cn=|zh-tw=|default=&#32;|lang={{{lang|}}}}}{{int:and{{#if:{{{lang|}}}|/{{{lang}}}}}}}}}{{langSwitch|zh=|zh-cn=|zh-tw=|default=&#32;|lang={{{lang|}}}}}{{#if:{{{3|}}}
  |{{#if:{{{4|}}}
  |{{#if:{{{5|}}}
    |{{{5}}}
    |{{{4}}}
    }}
  |{{{3}}}
  }}
  |{{{2}}}
  }}
}}
}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 16:47, 10 July 2021


Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Conj/doc.

Translates phrases line "A", "A and B", "A, B and C" or "A, B, C and D" etc. Technically it calls a function from Module:Linguistic, and relies solely on Lua code.

Usage

{{Conj |1= |2, 3, 4, 5= }}

Template parameters

ParameterDescriptionDefaultStatus
1first word ("A")emptyrequired
2, 3, 4, 5other words ("B", "C", "D", "E")emptyoptional
langlanguage{{int:lang}}optional
type"and", "or" or "comma"{{int:and}}optional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Relies on:
Module:Linguistic

Localization

To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)

For "or" type {{LangSwitch}} is used. For "and" type translatewiki.net translation is used.

Examples

code output
{{Conj|A|B|C|D|E}} A, B, C, D and E
{{Conj|A|B|C|D}} A, B, C and D
{{Conj|A|B|C}} A, B and C
{{Conj|A|B}} A and B
{{Conj|A}} A
{{Conj|A|B|C|D|E|type=or}} A, B, C, D or E
{{Conj|A|B|C|D|lang=pl}} A, B, C i D
{{Conj|A|B|C|D|lang=zh}} A、​B、​C和​D
{{Conj|אלף|בית|גימל|דלת|lang=he}} אלף, בית, גימל ודלת
{{Conj|A|B|C||E}} A, B, C and E
{{Conj|1=A|2=B|3=}} A and B
{{Conj |A |B |C |D |E }} A, B, C, D and E
Cookies help us deliver our services. By using our services, you agree to our use of cookies.