「テンプレート:Harvnb」の版間の差分

提供: miniwiki
移動先:案内検索
(1版 をインポートしました)
 
1行目: 1行目:
<includeonly>{{#invoke:Footnotes|harvard_citation_no_bracket}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
<includeonly>{{#ifeq:{{{ref|{{{Ref|}}}}}}|none
 +
  |{{#if:{{{5|}}}
 +
      |{{{1|}}} et al. {{{5|}}}
 +
      |{{#if:{{{4|}}}
 +
          |{{{1|}}}, {{{2|}}} &amp; {{{3|}}} {{{4|}}}
 +
          |{{#if:{{{3|}}}
 +
            |{{{1|}}} &amp; {{{2|}}} {{{3|}}}
 +
            |{{{1|}}} {{{2|}}}
 +
          }}
 +
        }}
 +
    }}
 +
  | [[#{{anchorencode:<!--
 +
  -->{{#if:{{{ref|{{{Ref|}}}}}}<!--
 +
    -->|{{{ref|{{{Ref}}}}}}<!--
 +
    -->|CITEREF{{#if:||{{{1|}}}}}{{#if:||{{{2|}}}}}{{#if:||{{{3|}}}}}{{#if:||{{{4|}}}}}{{#if:||{{{5|}}}}}<!--
 +
  -->}}<!--
 +
  -->}}|{{#if:{{{5|}}}<!--
 +
      -->|{{{1|}}} et al. {{{5|}}}<!--
 +
      -->|{{#if:{{{4|}}}<!--
 +
          -->|{{{1|}}}, {{{2|}}} &amp; {{{3|}}} {{{4|}}}<!--
 +
          -->|{{#if:{{{3|}}}<!--
 +
            -->|{{{1|}}} &amp; {{{2|}}} {{{3|}}}<!--
 +
            -->|{{{1|}}} {{{2|}}}<!--
 +
          -->}}<!--
 +
        -->}}<!--
 +
    -->}}<!--
 +
-->]]
 +
}}{{#if:{{{loc|}}}
 +
  |, {{{loc|}}}
 +
  |{{#if:{{{p|{{{page|}}}}}}
 +
    |, p.&nbsp;{{{p|{{{page}}}}}}
 +
    |{{#if:{{{pp|{{{pages|}}}}}}
 +
        |, pp.&nbsp;{{{pp|{{{pages}}}}}}
 +
      }}
 +
  }}
 +
}}</includeonly><noinclude>{{Documentation}}</noinclude>

2018/8/5/ (日) 15:28時点における最新版

view edit Documentation

{{Harvnb}}は、{{Harv}}の括弧なしバージョンです。

{{Harvnb|著者姓|発行年}}

著者姓 発行年

詳細は、括弧以外同じである{{Harv}}をご覧ください。

関連項目

  • {{Harv}} - このテンプレートを括弧でくくったように表示されます。
  • {{sfn}}
  • {{sfnref}}


TemplateData

必須項目である刊行年の位置が著者の人数によって可変となり、現状対応方法が不明(質問中)ですので、必要に応じて入力願います。

<templatedata> { "params": { "1": { "label": "筆頭著者姓", "description": "参考文献の筆頭著者の姓", "type": "string", "required": true }, "2": { "label": "第二著者姓もしくは発行年", "description": "参考文献の第二著者の姓もしくは発行年", "type": "string", "required": true }, "3": { "label": "第三著者姓もしくは発行年", "description": "参考文献の第三著者の姓もしくは発行年", "type": "string" }, "4": { "label": "第四著者姓もしくは発行年", "description": "参考文献の第四著者の姓もしくは発行年", "type": "string" }, "5": { "label": "発行年", "description": "文献の発行年", "type": "number" }, "p": { "label": "引用箇所ページ番号", "description": "文献の引用箇所のページ番号", "type": "number", "suggested": true }, "pp": { "label": "引用箇所ページ範囲", "description": "文献の引用箇所が複数ページに渡る場合に使用", "type": "string", "suggested": true }, "loc": { "label": "引用箇所", "description": "文献の引用範囲が1つの章や節全体の場合に使用。", "type": "string" }, "ref": { "label": "リンク不要指定", "description": "ハイバーリンクを作製しない場合に none を指定", "type": "string", "default": "none" } }, "description": "ハーバード参照方式テンプレート、{{Harv}}の括弧なしバージョン。" } </templatedata>