Difference between revisions of "Template:Person"

From Tsadra Commons
Jump to navigation Jump to search
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
(10 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
{{!}}-
 
{{!}}-
 
! English Phonetics
 
! English Phonetics
{{!}} {{{ MainNamePhon | }}} | }}{{#if: {{{ MainNameChi | }}} | <br>
+
{{!}} {{{ MainNamePhon | }}} | }}{{#if: {{{ SortName | }}} | <br>
 +
{{!}}-
 +
! Sort Name
 +
{{!}} {{{ SortName | }}} | }}{{#if: {{{ MainNameChi | }}} | <br>
 
{{!}}-
 
{{!}}-
 
! Chinese Script
 
! Chinese Script
Line 274: Line 277:
  
 
;Wiki Pages{{#ifeq:{{{ HasDrlPage | }}}|Yes|
 
;Wiki Pages{{#ifeq:{{{ HasDrlPage | }}}|Yes|
* [http://research.tsadra.org/index.php/{{PAGENAMEE}} {{PAGENAME}} on the DRL]|}}{{#ifeq:{{{ HasLibPage | }}}|Yes|
+
* [https://research.tsadra.org/index.php/{{PAGENAMEE}} {{PAGENAME}} on the DRL]|}}{{#ifeq:{{{ HasLibPage | }}}|Yes|
* [http://library.tsadra.org/index.php/{{PAGENAMEE}} {{PAGENAME}} on the LIB]|}}{{#ifeq:{{{ HasRtzPage | }}}|Yes|
+
* [https://library.tsadra.org/index.php/{{PAGENAMEE}} {{PAGENAME}} on the LIB]|}}{{#ifeq:{{{ HasRtzPage | }}}|Yes|
 
* [http://rtz.tsadra.org/index.php/{{PAGENAMEE}} {{PAGENAME}} on the RTZ]|}}{{#ifeq:{{{ HasDnzPage | }}}|Yes|
 
* [http://rtz.tsadra.org/index.php/{{PAGENAMEE}} {{PAGENAME}} on the RTZ]|}}{{#ifeq:{{{ HasDnzPage | }}}|Yes|
 
* [http://dnz.tsadra.org/index.php/{{PAGENAMEE}} {{PAGENAME}} on the DNZ]|}}{{#ifeq:{{{ HasBnwPage | }}}|Yes|
 
* [http://dnz.tsadra.org/index.php/{{PAGENAMEE}} {{PAGENAME}} on the DNZ]|}}{{#ifeq:{{{ HasBnwPage | }}}|Yes|
Line 442: Line 445:
 
|HasLibPage={{{HasLibPage|}}}
 
|HasLibPage={{{HasLibPage|}}}
 
|HasRtzPage={{{HasRtzPage|}}}
 
|HasRtzPage={{{HasRtzPage|}}}
|FirstImageURL={{filepath:{{#titleparts:{{PAGENAME:{{FirstValueOfArray|{{#arraymap:{{#arraymap:{{{ images | }}}|{{!}}|@@@|@@@|\n}}|\n|@@@|@@@|;}}|;}}}}}}}}
+
|FirstImageURL={{filepath:{{#titleparts:{{PAGENAME:{{FirstValueOfArray|{{#arraymap:{{#arraymap:{{{ images | }}}|{{!}}|@@@|@@@|\n}}|\n|@@@|@@@|;}}|;}}}}}}|1000}}
|FirstImage={{FirstValueOfArray|{{#arraymap:{{#arraymap:{{{ images | }}}|{{!}}|@@@|@@@|\n}}|\n|@@@|@@@|;}}|;}}
+
|FirstImage={{#if: {{{ images | }}}
 +
| {{FirstValueOfArray
 +
|{{#arraymap: {{#arraymap: {{{ images | }}}
 +
|{{!}}
 +
|@@@
 +
|@@@
 +
|\n
 +
}}
 +
|\n
 +
|@@@
 +
|@@@
 +
|;
 +
}}
 +
|;
 +
}}
 +
| File:Noimagefound.jpg
 +
}}
 
|images={{{images|}}}
 
|images={{{images|}}}
 
|ImagesRaw={{#arraymap:{{#arraymap:{{#regex: {{{ images | }}} | /(.*)\{{!}}(.*)\n?/ | $1; }}|\n|@@@|@@@|;}}|;|@@@|@@@|;}}
 
|ImagesRaw={{#arraymap:{{#arraymap:{{#regex: {{{ images | }}} | /(.*)\{{!}}(.*)\n?/ | $1; }}|\n|@@@|@@@|;}}|;|@@@|@@@|;}}
Line 506: Line 525:
 
|religiousaffiliation={{{religiousaffiliation|}}};{{{ReligiousAffiliation|}}}|+sep=;
 
|religiousaffiliation={{{religiousaffiliation|}}};{{{ReligiousAffiliation|}}}|+sep=;
 
|religiousaffiliationRaw={{{religiousaffiliation|}}}{{{ReligiousAffiliation|}}}
 
|religiousaffiliationRaw={{{religiousaffiliation|}}}{{{ReligiousAffiliation|}}}
 +
|SortName={{{ SortName | }}}
 
|studentof={{{studentof|}}};{{{StudentOf|}}}|+sep=;
 
|studentof={{{studentof|}}};{{{StudentOf|}}}|+sep=;
 
|studentofRaw={{#arraymap:{{{studentof|}}};{{{StudentOf|}}}|;|@@@|@@@|;}}
 
|studentofRaw={{#arraymap:{{{studentof|}}};{{{StudentOf|}}}|;|@@@|@@@|;}}
Line 536: Line 556:
 
|BnwPersonEssay={{{ BnwPersonEssay | }}}
 
|BnwPersonEssay={{{ BnwPersonEssay | }}}
 
|BnwFeatured={{{ BnwFeatured | }}}
 
|BnwFeatured={{{ BnwFeatured | }}}
|subclass={{#if:{{{MainNamePhon|}}}{{{MainNameTib|}}}{{{MainNameWylie|}}}|Classical|{{#if:{{{namelast|}}}|Modern|}}}}
+
|subclass={{#if: {{{namelast|}}}
}}{{#arraymaptemplate:{{#titleparts:{{FULLPAGENAME}}}};People;{{{ PersonType| {{{ persontype | }}} }}};{{{ MainNameWylie | }}};
+
|Modern
 +
|{{#if: {{{MainNamePhon|}}}{{{MainNameTib|}}}{{{MainNameWylie|}}}
 +
|Classical
 +
|  
 +
}}
 +
}}
 +
}}{{#arraymaptemplate:{{#titleparts:{{FULLPAGENAME}}}};People;{{{ PersonType| {{{ persontype | }}} }}}
 
|MakeCategories
 
|MakeCategories
 
|;
 
|;

Revision as of 16:04, 24 July 2020