Пређи на садржај

Шаблон:Citation Style documentation/ref

Iz Vojne Enciklopedije
  • ref: the citation's HTML anchor identifier. When set, |{{SAFESUBST:#if:ref|ref=}}ID generates an anchor with the given ID (the id attribute in the citation's {{#switch:o
|c|close  = 
|s|single
|o|open
|p|pair   = <cite{{#if:id="ID"| id="ID"}}

}}{{#switch:o

|c|close  = 
|s|single =  />
|o|open   = >
|p|pair   = >...

}}{{#switch:o

|s|single
|o|open   = 
|c|close
|p|pair   = </cite>

}} HTML tag). Setting |{{SAFESUBST:#if:ref|ref=}}ID identifies the template as a target and allows wikilinking to full references, especially useful with short-form citations like shortened notes and parenthetical referencing. The special value |{{SAFESUBST:#if:ref|ref=}}harv generates an anchor identifier suitable for use with {{sfn}} and {{harv}} templates. When |{{SAFESUBST:#if:mode|mode=}}cs2 defaults to |{{SAFESUBST:#if:ref|ref=}}harv. See Template:Citation/doc § Anchors for Harvard referencing templates.