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

提供: miniwiki
移動先:案内検索
1行目: 1行目:
<cite style="font-style:normal;"><includeonly>{{qif
+
<includeonly><onlyinclude><cite style="font-style:normal">{{
   |test={{boolnand
+
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}}
       |1={{{url|}}}
+
  || &#32;<strong class="error">[[Template:Cite web]]の呼び出しエラー:引数 '''url''' と '''title''' は必須です。</strong>{{#if: {{NAMESPACE}}|| [[Category:テンプレート呼び出しエラーのあるページ/Template:Cite web]]}}
       |2={{{title|}}}
+
}}{{
 +
#if: {{{archiveurl|}}}{{{archivedate|}}}
 +
   | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
 +
    || &#32;<strong class="error">[[Template:Cite web]]の呼び出しエラー:引数 '''archiveurl''' と '''archivedate''' は両方を指定してください。</strong>{{#if: {{NAMESPACE}}|| [[Category:テンプレート呼び出しエラーのあるページ/Template:Cite web]]}}
 +
  }}
 +
}}{{#if: {{{author|{{{last|}}}}}}
 +
  | {{#if: {{{authorlink|}}}
 +
    | [[{{{authorlink}}}|{{#if: {{{last|}}}
 +
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
 +
      | {{{author}}}
 +
      }}]]
 +
    | {{#if: {{{last|}}}
 +
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
 +
      | {{{author}}}
 +
    }}
 +
  }}
 +
}}{{#if: {{{author|{{{last|}}}}}}
 +
  | {{#if: {{{coauthors|}}}| <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
 +
}}{{#if: {{{author|}}}{{{last|}}}
 +
  | {{#if: {{{date|}}}
 +
    | &#32;({{{date}}})
 +
    | {{#if: {{{year|}}}
 +
      | {{#if: {{{month|}}}
 +
        | &#32;({{{month}}} {{{year}}})
 +
        | &#32;({{{year}}})
 +
      }}
 +
    }}
 +
  |}}
 +
}}{{#if: {{{last|}}}{{{author|}}}
 +
  | .&#32;}}{{
 +
  #if: {{{editor|}}}
 +
  | &#32;{{{editor}}}:
 +
}}"{{#if: {{{archiveurl|}}}
 +
  |{{#if: {{{archiveurl|}}}
 +
    |{{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}]
 +
    }}
 +
  }}
 +
  |{{#if: {{{url|}}}
 +
    |{{#if: {{{title|}}}
 +
       |{{#ifeq: {{{format|}}}
 +
        |PDF
 +
        |{{PDFlink|1=[{{{url}}} {{{title}}}]}}
 +
        |[{{{url}}} {{{title}}}]
 +
       }}
 +
    }}
 +
  }}
 +
}}"{{#ifeq: {{{format|PDF}}}
 +
  | PDF || {{#if: {{{format|}}}| &#32;({{{format}}}) | }}
 +
}}{{#if:{{{language|}}}
 +
  | &#32;({{{language}}})
 +
}}{{#if: {{{work|}}}
 +
  | .&#32;''{{{work}}}''
 +
}}{{#if: {{{pages|}}}
 +
  | &#32;{{{pages}}}
 +
}}{{#if: {{{publisher|}}}
 +
  | .&#32; {{#if: {{{location|}}}
 +
    | {{{location}}}:&#32;
 +
  }} {{{publisher}}}<!--{{#if: {{{author|}}}{{{last|}}}
 +
    |
 +
    | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }}
 +
  }}-->
 +
}}{{#if: {{{author|}}}{{{last|}}}
 +
  ||{{#if: {{{date|}}}
 +
    | &#32;({{{date}}})
 +
    | {{#if: {{{year|}}}
 +
      | {{#if: {{{month|}}}
 +
        | &#32;({{{month}}} {{{year}}})
 +
        | &#32;({{{year}}})
 +
      }}
 
     }}
 
     }}
  |then=Error on call to [[template:cite web]]: Parameters '''url''' and '''title''' must be specified&#32;
 
}}</includeonly>{{{author|}}}{{qif
 
  |test={{{year|}}}
 
  |then=&#32;({{{year|}}})
 
}}{{qif
 
  |test={{boolor
 
    |1={{{author|}}}
 
    |2={{{year|}}}}}
 
  |then=.}}{{qif
 
  |test={{booland
 
    |1={{{url|}}}
 
    |2={{{title|}}}}}
 
  |then=&#32;[{{{url}}} {{{title}}}].
 
}}{{qif
 
  |test={{{format|}}}
 
  |then=&#32;({{{format|}}})
 
}}{{qif
 
  |test={{{work|}}}
 
  |then=&#32;''{{{work}}}''.}}{{qif
 
  |test={{{publisher|}}}
 
  |then=&#32;{{{publisher}}}.
 
}}{{qif
 
  |test={{{accessdate|}}} 
 
  |then=&#32;URL accessed on [[{{{accessdate}}}]]{{qif
 
    |test={{{accessyear|}}}
 
    |then=, [[{{{accessyear}}}]]
 
 
   }}
 
   }}
}}</cite><noinclude>
+
}}.{{#if: {{{doi|}}}
[[en:Template:Cite web]]
+
  | &#32;[[デジタルオブジェクト識別子|doi]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}].
</noinclude>
+
}}{{#if: {{{archivedate|}}}
 +
  | &#32;{{{archivedate|}}} 時点の[{{{url}}} オリジナル]よりアーカイブ。
 +
}}{{#if: {{{accessdate|}}}
 +
  | {{#if:{{{archivedate|}}}||&#32;|}}{{#if: {{{accessyear|}}} | {{年月日|year={{{accessyear|}}}}}{{{accessdate|}}} | {{{accessdate|}}}}}&#32;閲覧。
 +
  | &#32;<strong class="error">[[Template:Cite web]]の呼び出しエラー:引数 '''accessdate''' は必須です。</strong>{{#if: {{NAMESPACE}}|| [[Category:テンプレート呼び出しエラーのあるページ/Template:Cite web]]}}
 +
}}{{#if: {{{quote|}}}
 +
  | &nbsp;“{{{quote}}}”
 +
}}</cite></onlyinclude></includeonly>
 +
{{Documentation}}
 +
<!-- カテゴリと言語間リンクはここではなく、/doc サブページに追加してください -->

2018/8/2/ (木) 10:57時点における版

view edit Documentation