Template:Language: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
| data4 = {{{ethnicity|}}} | | data4 = {{{ethnicity|}}} | ||
| label5 = Number of speakers | | label5 = Number of speakers | ||
| data5 = | | data5 = <!-- | ||
-->{{#if:{{{extinct|}}}|{{#ifeq:{{{extinct}}}|?|(date missing)|{{{extinct}}}}}<!-- extinct input used | -->{{#if:{{{extinct|}}}|{{#ifeq:{{{extinct}}}|?|(date missing)|{{{extinct}}}}}<!-- extinct input used | ||
-->|{{#if:{{{era|}}}|{{{era}}}<!-- era input used | -->|{{#if:{{{era|}}}|{{{era}}}<!-- era input used | ||
-->|<!-- no era, check for sign/spoken -->{{#if:{{{signers|}}}{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}} }}|silver|1}}<!-- check for signers/silver | -->|<!-- no era, check for sign/spoken -->{{#if:{{{signers|}}}{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}} }}|silver|1}}<!-- check for signers/silver | ||
-->|<!-- SIGN language (silver) -->{{#if:{{{signers|}}}{{{speakers|}}}|{{#ifeq: {{lc:{{{date}}}}}|na|{{{signers|{{{speakers|–}}}}}} | -->|<!-- SIGN language (silver) -->{{#if:{{{signers|}}}{{{speakers|}}}|{{#ifeq: {{lc:{{{date}}}}}|na|{{{signers|{{{speakers|–}}}}}} | ||
|{{#ifeq:{{{signers|{{{speakers}}}}}}|?|<!-- | |{{#ifeq:{{{signers|{{{Speakers|{{{speakers}}}}}}}}}|?|<!-- | ||
-->|{{#ifeq:{{{signers|{{{speakers}}}}}}|none|''None'' | -->|{{#ifeq:{{{signers|{{{Speakers|{{{speakers}}}}}}}}}|none|''None'' | ||
|{{#if:{{{date|}}}|{{{signers|{{{speakers|–}}}}}} ({{{dateprefix|}}}{{{date}}}) | |{{#if:{{{date|}}}|{{{signers|{{{Speakers|{{{speakers|–}}}}}}}}} ({{{dateprefix|}}}{{{date}}}) | ||
|{{{signers|{{{speakers|–}}}}}}{{main other|[[Category:Language articles with speaker number undated]]}}}} }} }} }} }}<!--(end if:date, ifeq:date=na, if:signers. end of SIGN) | |{{{signers|{{{Speakers|{{{speakers|–}}}}}}}}}{{main other|[[Category:Language articles with speaker number undated]]}}}} }} }} }} }}<!--(end if:date, ifeq:date=na, if:signers. end of SIGN) | ||
-->|<!-- SPOKEN language (not silver) -->{{#if:{{{speakers|}}}|{{#ifeq: {{lc:{{{date}}}}}|na|{{{speakers|–}}} | -->|<!-- SPOKEN language (not silver) -->{{#if:{{{speakers|}}}|{{#ifeq: {{lc:{{{date}}}}}|na|{{{Speakers|{{{speakers|–}}}}}} | ||
|{{#ifeq: {{{date}}}|no date|(undated figure of {{{speakers}}})|<!-- | |{{#ifeq: {{{date}}}|no date|(undated figure of {{{Speakers|{{{speakers}}}}}})|<!-- | ||
The following changes the display depending on the age of the data. Limit set to 25 years, as a population can double in that time. | The following changes the display depending on the age of the data. Limit set to 25 years, as a population can double in that time. | ||
-->{{#if:{{{date|}}}|{{#iferror:{{#expr: {{padleft:|4|{{{date}}}|}} }}||{{#ifexpr:(({{CURRENTYEAR}} - {{padleft:|4|{{{date}}}|}}) < 25)<!-- | -->{{#if:{{{date|}}}|{{#iferror:{{#expr: {{padleft:|4|{{{date}}}|}} }}||{{#ifexpr:(({{CURRENTYEAR}} - {{padleft:|4|{{{date}}}|}}) < 25)<!-- | ||
-->|<!-- regular-->{{{speakers|–}}} ({{{dateprefix|}}}{{{date}}})<!-- | -->|<!-- regular-->{{{Speakers|{{{speakers|–}}}}}} ({{{dateprefix|}}}{{{date}}})<!-- | ||
-->|<!-- old (25+) -->({{{speakers}}} cited {{{dateprefix|}}}{{{date}}}){{main other|{{#ifeq:{{{ref}}}|e19|[[Category:Language articles with old Ethnologue 19 speaker data]]|{{#ifeq:{{{ref}}}|e18|[[Category:Language articles with old Ethnologue 18 speaker data]]|[[Category:Language articles with old speaker data]]}}}}}}}}}}<!--(end ifexpr:25+, iferror:) | -->|<!-- old (25+) -->({{{Speakers|{{{speakers}}}}}} cited {{{dateprefix|}}}{{{date}}}){{main other|{{#ifeq:{{{ref}}}|e19|[[Category:Language articles with old Ethnologue 19 speaker data]]|{{#ifeq:{{{ref}}}|e18|[[Category:Language articles with old Ethnologue 18 speaker data]]|[[Category:Language articles with old speaker data]]}}}}}}}}}}<!--(end ifexpr:25+, iferror:) | ||
-->|{{#ifeq:{{{speakers}}}|?|<!-- | -->|{{#ifeq:{{{speakers}}}|?|<!-- | ||
-->|{{#ifeq:{{{speakers}}}|none|''None'' | -->|{{#ifeq:{{{speakers}}}|none|''None'' | ||
|<!-- no date input -->{{{speakers|–}}}{{main other|[[Category:Language articles with speaker number undated]]}}}} }} }}<!--(end if:date, before the 25+ expr check) | |<!-- no date input -->{{{Speakers|{{{speakers|–}}}}}}{{main other|[[Category:Language articles with speaker number undated]]}}}} }} }}<!--(end if:date, before the 25+ expr check) | ||
-->}}<!--(end ifeq:date=no date) | -->}}<!--(end ifeq:date=no date) | ||
-->}}<!--(end ifeq:date=na) | -->}}<!--(end ifeq:date=na) | ||
Line 45: | Line 45: | ||
-->}} }}<!--(end if:era, if:extinct. No open #if:s left) | -->}} }}<!--(end if:era, if:extinct. No open #if:s left) | ||
If there is a ref, and there is any input for this row (data7), then we add the reference: | If there is a ref, and there is any input for this row (data7), then we add the reference: | ||
-->{{#if:{{{ref|}}}|{{#if:{{{extinct|}}}{{{era|}}}{{{signers|}}}{{{speakers|}}}{{{date|}}}{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}}}}|silver|sign_language}}|{{Infobox language/ref|{{{ref}}}|iso3={{{iso3|}}}|refname={{{refname|}}}|name={{{name|{{PAGENAME}}}}}|lc1={{{lc1|}}}|ld1={{Delink|{{{ld1}}}}}|lc2={{{lc2|}}}|ld2={{Delink|{{{ld2}}}}}|lc3={{{lc3|}}}|ld3={{Delink|{{{ld3}}}}}|lc4={{{lc4|}}}|ld4={{Delink|{{{ld4}}}}}|lc5={{{lc5|}}}|ld5={{Delink|{{{ld5}}}}}|lc6={{{lc6|}}}|ld6={{Delink|{{{ld6}}}}}|lc7={{{lc7|}}}|ld7={{Delink|{{{ld7}}}}}}}}}}}<!-- | -->{{#if:{{{ref|}}}|{{#if:{{{extinct|}}}{{{era|}}}{{{signers|}}}{{{Speakers|{{{speakers|}}}}}}{{{date|}}}{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}}}}|silver|sign_language}}|{{Infobox language/ref|{{{ref}}}|iso3={{{iso3|}}}|refname={{{refname|}}}|name={{{name|{{PAGENAME}}}}}|lc1={{{lc1|}}}|ld1={{Delink|{{{ld1}}}}}|lc2={{{lc2|}}}|ld2={{Delink|{{{ld2}}}}}|lc3={{{lc3|}}}|ld3={{Delink|{{{ld3}}}}}|lc4={{{lc4|}}}|ld4={{Delink|{{{ld4}}}}}|lc5={{{lc5|}}}|ld5={{Delink|{{{ld5}}}}}|lc6={{{lc6|}}}|ld6={{Delink|{{{ld6}}}}}|lc7={{{lc7|}}}|ld7={{Delink|{{{ld7}}}}}}}}}}}<!-- | ||
Add speakers2 after the ref: | Add speakers2 after the ref: | ||
-->{{#if:{{{speakers2|}}}|<br />{{{speakers2|}}} }} | -->{{#if:{{{speakers2|}}}|<br />{{{speakers2|}}} }} |
Revision as of 17:00, 2 July 2021
Language family |
Template:Infobox language/genetic
|
---|