Difference between revisions of "Template:Has person"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
[[{{#if:{{{first name|}}}|{{{first name|}}}|<!-show nothing-->}}{{#if:{{{middle name|}}}| {{{middle name|}}}|<!-show nothing-->}}{{#if:{{{last name|}}}| {{{last name|}}}|<!-show nothing-->}}{{#if:{{{suffix|}}}| {{{suffix|}}}|<!-show nothing-->}}{{#if: {{{id|}}}| ({{{id|}}})|<!-show nothing-->}}{{#!:|}}{{{alt|}}}]]|<!-no name no alt-->[[{{#if:{{{first name|}}}|{{{first name|}}}|<!-show nothing-->}}{{#if:{{{middle name|}}}| {{{middle name|}}}|<!-show nothing-->}}{{#if:{{{last name|}}}| {{{last name|}}}|<!-show nothing-->}}{{#if:{{{suffix|}}}| {{{suffix|}}}|<!-show nothing-->}}{{#if: {{{id|}}}| ({{{id|}}})|<!-show nothing-->}}]]}}}} | [[{{#if:{{{first name|}}}|{{{first name|}}}|<!-show nothing-->}}{{#if:{{{middle name|}}}| {{{middle name|}}}|<!-show nothing-->}}{{#if:{{{last name|}}}| {{{last name|}}}|<!-show nothing-->}}{{#if:{{{suffix|}}}| {{{suffix|}}}|<!-show nothing-->}}{{#if: {{{id|}}}| ({{{id|}}})|<!-show nothing-->}}{{#!:|}}{{{alt|}}}]]|<!-no name no alt-->[[{{#if:{{{first name|}}}|{{{first name|}}}|<!-show nothing-->}}{{#if:{{{middle name|}}}| {{{middle name|}}}|<!-show nothing-->}}{{#if:{{{last name|}}}| {{{last name|}}}|<!-show nothing-->}}{{#if:{{{suffix|}}}| {{{suffix|}}}|<!-show nothing-->}}{{#if: {{{id|}}}| ({{{id|}}})|<!-show nothing-->}}]]}}}} | ||
− | {{#if:{{{surname}}}|<!-has surname-->[[Category:{{{surname|}}}]]{{#set:has surname={{{surname|}}}}}|<!-doesn't have surname-->{{#if:{{{alt|}}}|<!-no surname and alt exists-->{{#if:{{#explode:{{{alt}}}| |2}}|<!-show third word-->[[Category:{{#explode:{{{alt}}}| |2}}]]|<!-has less than three words show the second word-->[[Category:{{#explode:{{{alt|}}}| |1}}]] }}|<!-no surname and no alt-->{{#if:{{#explode:{{{name}}}| |2}}|<!-show third word-->[[Category:{{#explode:{{{name}}}| |2}}]]|<!-has less than three words show the second word-->[[Category:{{#explode:{{{name|}}}| |1}}]] }} }} }} | + | {{#if:{{{surname|}}}|<!-has surname-->[[Category:{{{surname|}}}]]{{#set:has surname={{{surname|}}}}}|<!-doesn't have surname-->{{#if:{{{alt|}}}|<!-no surname and alt exists-->{{#if:{{#explode:{{{alt}}}| |2}}|<!-show third word-->[[Category:{{#explode:{{{alt}}}| |2}}]]|<!-has less than three words show the second word-->[[Category:{{#explode:{{{alt|}}}| |1}}]] }}|<!-no surname and no alt-->{{#if:{{#explode:{{{name}}}| |2}}|<!-show third word-->[[Category:{{#explode:{{{name}}}| |2}}]]|<!-has less than three words show the second word-->[[Category:{{#explode:{{{name|}}}| |1}}]] }} }} }} |
Revision as of 15:28, 25 January 2019
<!-no name given--><!-no name no alt-->[[<!-show nothing--><!-show nothing--><!-show nothing--><!-show nothing--><!-show nothing-->]]
<!-doesn't have surname--><!-no surname and no alt--><!-has less than three words show the second word-->[[Category:]]