Difference between revisions of "Template:Citation/core"

From Self-sufficiency
Jump to: navigation, search
(More economical display of ; , avoiding nowiki clutter. Allow user configuration of separation of last, first)
(Sandbox testing of new display-author parameter successful; implement.)
Line 33: Line 33:
 
   }}{{
 
   }}{{
 
     #if: {{{Surname2|}}}
 
     #if: {{{Surname2|}}}
     |{{
+
     |{{#ifexpr:{{{Trunc|8}}}<2
        #iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }}
+
      |{{{AuthorSep|&#059;&#32;}}}&#32;''et al''.
        |&#32;<!-- then punctuation should be included in AuthorMask -->
+
      |{{
         |{{
+
          #iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }}
 +
          |&#32;<!-- then punctuation should be included in AuthorMask -->
 +
          |{{
 +
            #if: {{{Surname3|}}}
 +
            |{{{AuthorSep|&#059;&#32;}}}
 +
            |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
 +
          }}
 +
         }}{{
 +
          #if: {{{Authorlink2|}}}
 +
          |[[{{{Authorlink2}}} |{{{Surname2}}}{{
 +
            #if: {{{Given2|}}}
 +
            |{{{NameSep|,&#32;}}}{{{Given2}}}
 +
          }}]]
 +
          |{{{Surname2}}}{{
 +
            #if: {{{Given2|}}}
 +
            |{{{NameSep|,&#32;}}}{{{Given2}}}
 +
          }}
 +
        }}{{
 
           #if: {{{Surname3|}}}
 
           #if: {{{Surname3|}}}
           |{{{AuthorSep|&#059;&#32;}}}
+
           |{{#ifexpr:{{{Trunc|8}}}<3
          |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
+
            |{{{AuthorSep|&#059;&#32;}}}&#32;''et al''.
        }}
+
            |{{
      }}{{
+
              #if: {{{Surname4|}}}
        #if: {{{Authorlink2|}}}
+
              |{{{AuthorSep|&#059;&#32;}}}
        |[[{{{Authorlink2}}} |{{{Surname2}}}{{
+
              |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
          #if: {{{Given2|}}}
+
            }}{{
          |{{{NameSep|,&#32;}}}{{{Given2}}}
+
              #if: {{{Authorlink3|}}}
        }}]]
+
              |[[{{{Authorlink3}}} |{{{Surname3}}}{{
        |{{{Surname2}}}{{
+
                  #if: {{{Given3|}}}
          #if: {{{Given2|}}}
+
                  |{{{NameSep|,&#32;}}}{{{Given3}}}
          |{{{NameSep|,&#32;}}}{{{Given2}}}
+
                }}]]
        }}
+
              |{{{Surname3}}}{{
      }}{{
+
                  #if: {{{Given3|}}}
        #if: {{{Surname3|}}}
+
                  |{{{NameSep|,&#32;}}}{{{Given3}}}
        |{{
+
                }}
          #if: {{{Surname4|}}}
+
            }}{{
          |{{{AuthorSep|&#059;&#32;}}}
+
              #if:{{{Surname4|}}}
          |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
+
               |{{#ifexpr:{{{Trunc|8}}}<4
        }}{{
+
                 |{{{AuthorSep|&#059;&#32;}}}&#32;''et al''.
          #if: {{{Authorlink3|}}}
+
          |[[{{{Authorlink3}}} |{{{Surname3}}}{{
+
              #if: {{{Given3|}}}
+
              |{{{NameSep|,&#32;}}}{{{Given3}}}
+
            }}]]
+
          |{{{Surname3}}}{{
+
              #if: {{{Given3|}}}
+
              |{{{NameSep|,&#32;}}}{{{Given3}}}
+
            }}
+
        }}{{
+
          #if:{{{Surname4|}}}
+
          |{{
+
              #if: {{{Surname5|}}}
+
              |{{{AuthorSep|&#059;&#32;}}}
+
              |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
+
            }}{{
+
              #if: {{{Authorlink4|}}}
+
              |[[{{{Authorlink4}}} |{{{Surname4}}}{{
+
                #if: {{{Given4|}}}
+
                |{{{NameSep|,&#32;}}}{{{Given4}}}
+
               }}]]
+
              |{{{Surname4}}}{{
+
                #if: {{{Given4|}}}
+
                |{{{NameSep|,&#32;}}}{{{Given4}}}
+
              }}
+
            }}{{
+
              #if:{{{Surname5|}}}
+
              |{{
+
                #if: {{{Surname6|}}}
+
                 |{{{AuthorSep|&#059;&#32;}}}
+
                |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
+
              }}{{
+
                #if: {{{Authorlink5|}}}
+
                |[[{{{Authorlink5}}} |{{{Surname5}}}{{
+
                    #if: {{{Given5|}}}
+
                    |{{{NameSep|,&#32;}}}{{{Given5}}}
+
                  }}]]
+
                |{{{Surname5}}}{{
+
                    #if: {{{Given5|}}}
+
                    |{{{NameSep|,&#32;}}}{{{Given5}}}
+
                  }}
+
              }}{{
+
                #if:{{{Surname6|}}}
+
 
                 |{{
 
                 |{{
                     #if: {{{Surname7|}}}
+
                     #if: {{{Surname5|}}}
 
                     |{{{AuthorSep|&#059;&#32;}}}
 
                     |{{{AuthorSep|&#059;&#32;}}}
 
                     |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
 
                     |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
 
                   }}{{
 
                   }}{{
                     #if: {{{Authorlink6|}}}
+
                     #if: {{{Authorlink4|}}}
                     |[[{{{Authorlink6}}} |{{{Surname6}}}{{
+
                     |[[{{{Authorlink4}}} |{{{Surname4}}}{{
                       #if: {{{Given6|}}}
+
                       #if: {{{Given4|}}}
                       |{{{NameSep|,&#32;}}}{{{Given6}}}
+
                       |{{{NameSep|,&#32;}}}{{{Given4}}}
 
                     }}]]
 
                     }}]]
                     |{{{Surname6}}}{{
+
                     |{{{Surname4}}}{{
                       #if: {{{Given6|}}}
+
                       #if: {{{Given4|}}}
                       |{{{NameSep|,&#32;}}}{{{Given6}}}
+
                       |{{{NameSep|,&#32;}}}{{{Given4}}}
                    }}
+
                    }}
 
                   }}{{
 
                   }}{{
                    #if:{{{Surname7|}}}
+
                  #if:{{{Surname5|}}}
 +
                  |{{#ifexpr:{{{Trunc|8}}}<5
 +
                    |{{{AuthorSep|&#059;&#32;}}}&#32;''et al''.
 
                     |{{
 
                     |{{
                      #if: {{{Surname8|}}}
+
                    #if: {{{Surname6|}}}
                      |{{{AuthorSep|&#059;&#32;}}}
+
                    |{{{AuthorSep|&#059;&#32;}}}
                      |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
+
                    |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
                     }}{{
+
                    }}{{
                      #if: {{{Authorlink7|}}}
+
                     #if: {{{Authorlink5|}}}
                      |[[{{{Authorlink7}}} |{{{Surname7}}}{{
+
                    |[[{{{Authorlink5}}} |{{{Surname5}}}{{
                          #if: {{{Given7|}}}
+
                        #if: {{{Given5|}}}
                          |{{{NameSep|,&#32;}}}{{{Given7}}}
+
                        |{{{NameSep|,&#32;}}}{{{Given5}}}
                        }}]]
+
                      }}]]
                      |{{{Surname7}}}{{
+
                    |{{{Surname5}}}{{
                          #if: {{{Given7|}}}
+
                        #if: {{{Given5|}}}
                          |{{{NameSep|,&#32;}}}{{{Given7}}}
+
                        |{{{NameSep|,&#32;}}}{{{Given5}}}
                        }}
+
                      }}
                    }}{{
+
                  }}{{
                      #if:{{{Surname8|}}}
+
                    #if:{{{Surname6|}}}
                      |{{
+
                    |{{#ifexpr:{{{Trunc|8}}}<6
                          #if: {{{Surname9|}}}
+
                    |{{{AuthorSep|&#059;&#32;}}}&#32;''et al''.
                          |{{{AuthorSep|&#059;&#32;}}}
+
                      |{{
                          |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
+
                        #if: {{{Surname7|}}}
                        }}{{
+
                        |{{{AuthorSep|&#059;&#32;}}}
                          #if: {{{Authorlink8|}}}
+
                        |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
                          |[[{{{Authorlink8}}} |{{{Surname8}}}{{
+
                      }}{{
                            #if: {{{Given8|}}}
+
                        #if: {{{Authorlink6|}}}
                            |{{{NameSep|,&#32;}}}{{{Given8}}}
+
                        |[[{{{Authorlink6}}} |{{{Surname6}}}{{
                          }}]]
+
                          #if: {{{Given6|}}}
                          |{{{Surname8}}}{{
+
                          |{{{NameSep|,&#32;}}}{{{Given6}}}
                            #if: {{{Given8|}}}
+
                        }}]]
                            |{{{NameSep|,&#32;}}}{{{Given8}}}
+
                        |{{{Surname6}}}{{
                          }}
+
                          #if: {{{Given6|}}}
                        }}{{
+
                          |{{{NameSep|,&#32;}}}{{{Given6}}}
                          #if:{{{Surname9|}}}
+
                        }}
                          |{{{AuthorSep|&#059;&#32;}}}&#32;''et al''.
+
                      }}{{
                        }}
+
                        #if:{{{Surname7|}}}
 +
                        |{{#ifexpr:{{{Trunc|8}}}<7
 +
                          |{{{AuthorSep|&#059;&#32;}}}&#32;''et al''.
 +
                        |{{
 +
                          #if: {{{Surname8|}}}
 +
                          |{{{AuthorSep|&#059;&#32;}}}
 +
                          |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
 +
                        }}{{
 +
                          #if: {{{Authorlink7|}}}
 +
                          |[[{{{Authorlink7}}} |{{{Surname7}}}{{
 +
                              #if: {{{Given7|}}}
 +
                              |{{{NameSep|,&#32;}}}{{{Given7}}}
 +
                            }}]]
 +
                          |{{{Surname7}}}{{
 +
                              #if: {{{Given7|}}}
 +
                              |{{{NameSep|,&#32;}}}{{{Given7}}}
 +
                            }}
 +
                                    }}{{
 +
                                      #if:{{{Surname8|}}}
 +
                                      |{{#ifexpr:{{{Trunc|8}}}<8
 +
                                          |{{{AuthorSep|&#059;&#32;}}}&#32;''et al''.
 +
                                          |{{
 +
                                              #if: {{{Surname9|}}}
 +
                                              |{{{AuthorSep|&#059;&#32;}}}
 +
                                              |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
 +
                                            }}{{
 +
                                              #if: {{{Authorlink8|}}}
 +
                                              |[[{{{Authorlink8}}} |{{{Surname8}}}{{
 +
                                                #if: {{{Given8|}}}
 +
                                                |{{{NameSep|,&#32;}}}{{{Given8}}}
 +
                                              }}]]
 +
                                              |{{{Surname8}}}{{
 +
                                                #if: {{{Given8|}}}
 +
                                                |{{{NameSep|,&#32;}}}{{{Given8}}}
 +
                                              }}
 +
                                            }}{{
 +
                                              #if:{{{Surname9|}}}
 +
                                              |{{{AuthorSep|&#059;&#32;}}}&#32;''et al''.
 +
                                            }}
 +
                                        }}
 +
                                      }}
 +
                                  }}
 +
                                }}
 +
                            }}
 +
                          }}
 +
                      }}                  
 
                     }}
 
                     }}
 
                   }}
 
                   }}
Line 157: Line 178:
 
         }}
 
         }}
 
       }}
 
       }}
 +
 
 
   }}{{
 
   }}{{
 
     #if: {{{Date|}}}
 
     #if: {{{Date|}}}

Revision as of 08:01, 7 October 2009