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

提供: miniwiki
移動先:案内検索
 
(同じ利用者による、間の3版が非表示)
1行目: 1行目:
<cite style="font-style:normal;"><includeonly>{{qif
+
<includeonly><onlyinclude><cite style="font-style:normal"  
   |test={{boolnand
+
{{
      |1={{{url|}}}
+
  #switch:{{{ref|}}}
       |2={{{title|}}}
+
  ||none =
 +
  |#default = id="{{anchorencode:{{{ref}}}}}"
 +
  |harv = {{#if:{{{last|}}}{{{author|}}}{{{publisher|}}}
 +
    |id="CITEREF{{anchorencode:{{{last|{{{author|{{{publisher|}}}}}}}}}{{{year|{{{date|}}}}}}}}"
 +
  }}
 +
}}>{{
 +
   #if: {{#if: {{{url|}}} | {{#if: {{{title|}}} | 1 }} }}
 +
  |
 +
  | {{Cite web/error|url|url={{{url|}}}|title={{{title|}}}}}
 +
}}{{
 +
  #ifexpr: {{#if: {{{archiveurl|}}} | 1 | 0 }} != {{#if: {{{archivedate|}}} | 1 | 0 }}
 +
  | {{Cite web/error|archive}}
 +
}}{{#if: {{{author|}}}{{{last|}}}
 +
  | {{#if: {{{authorlink|}}}
 +
    | [[{{{authorlink}}}|{{#if: {{{last|}}}
 +
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
 +
      | {{{author}}}
 +
    }}]]
 +
    | {{#if: {{{last|}}}
 +
       | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
 +
      | {{{author}}}
 
     }}
 
     }}
   |then=Error on call to [[template:cite web]]: Parameters '''url''' and '''title''' must be specified&#32;
+
   }}{{#if: {{{coauthors|}}}
}}</includeonly>{{{author|}}}{{qif
+
    | <nowiki>;</nowiki>&#32;{{{coauthors}}}
  |test={{{year|}}}
+
  }}{{ #if: {{{date|}}}{{{year|}}}
  |then=&#32;({{{year|}}})
+
    | &#32;({{Citation/showdate|{{{date|}}}|{{{year|}}}|{{{month|}}}}})
}}{{qif
+
    |
   |test={{boolor
+
  }}.&#32;
    |1={{{author|}}}
+
}}{{#if: {{{editor|}}}
    |2={{{year|}}}}}
+
   | &#32;{{{editor}}}&#58;&#32;
  |then=.}}{{qif
+
}}“{{#switch: {{{format|}}}
   |test={{booland
+
  | PDF
    |1={{{url|}}}
+
  | DOC
    |2={{{title|}}}}}
+
  | XLS
   |then=&#32;[{{{url}}} {{{title}}}].
+
  | PPT
}}{{qif
+
  | RTF = {{{{{format}}}link| 1 = [{{ifempty|{{{archiveurl|}}}|{{{url}}}}} {{{title}}}] }}
   |test={{{format|}}}
+
   |   <!-- 空白値 --> = [{{ifempty|{{{archiveurl|}}}|{{{url}}}}} {{{title}}}]
  |then=&#32;({{{format|}}})
+
   |           #default = [{{ifempty|{{{archiveurl|}}}|{{{url}}}}} {{{title}}}]&#32;({{{format}}})
}}{{qif
+
}}”{{#if:{{{language|}}}
   |test={{{work|}}}
+
   | {{#if:{{{trans_title|}}} | &nbsp;[{{{trans_title}}}] | {{#if:{{{trans-title|}}} | &nbsp;[{{{trans-title}}}]}}}} &#32;({{#ifeq: {{ISO639言語名|{{{language}}}}}||{{{language}}}|{{ISO639言語名|{{{language}}}}}}})
   |then=&#32;''{{{work}}}''.}}{{qif
+
}}{{#if: {{{website|}}}
   |test={{{publisher|}}}
+
   | .&#32;''{{{website}}}''
   |then=&#32;{{{publisher}}}.
+
}}{{#if: {{{work|}}}
}}{{qif
+
   | .&#32;''{{{work}}}''
   |test={{{accessdate|}}}
+
}}{{#if: {{{publisher|}}}
   |then=&#32;URL accessed on [[{{{accessdate}}}]]{{qif
+
  | .&#32; {{#if: {{{location|}}}
     |test={{{accessyear|}}}
+
    | {{{location}}}:&#32;
     |then=, [[{{{accessyear}}}]]
+
   }} {{{publisher}}}<!--{{#if: {{{author|}}}{{{last|}}}
 +
    |
 +
    | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }}
 +
  }}-->
 +
}}{{#if: {{{page|}}}
 +
   |.&#32;p.&nbsp;{{{page}}}
 +
  |{{
 +
    #if: {{{pages|}}}
 +
    |.&#32;pp.&nbsp;{{{pages}}}
 +
  }}
 +
}}{{#if: {{{author|}}}{{{last|}}}
 +
  |
 +
   |{{#if: {{{date|}}}{{{year|}}}
 +
    | &#32;({{Citation/showdate|{{{date|}}}|{{{year|}}}|{{{month|}}}}})
 +
    |
 +
  }}
 +
}}.{{#if: {{{doi|}}}  
 +
   | &#32;[[デジタルオブジェクト識別子|doi]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}].
 +
}}{{#if: {{{archivedate|}}}
 +
  | &#32;{{Citation/showdate|{{{archivedate|}}}}}時点の[{{{url}}} オリジナル]{{#if: {{{deadlink|{{{deadlinkdate|}}}}}}
 +
    | {{リンク切れ|date={{{deadlink|{{{deadlinkdate|}}}}}}|archiveurl={{{archiveurl|}}}}}
 +
    |
 +
  }}よりアーカイブ。
 +
}}{{#if: {{{accessdate|}}}{{{access-date|}}}
 +
  | {{#if:{{{archivedate|}}}
 +
    |
 +
    |&#32;
 +
     |
 +
  }}{{Accessdate|1={{{accessdate|{{{access-date|}}}}}}|isodate={{ISO dateJA|1={{{accessdate|{{{access-date|}}}}}}|defaultdate={{{accessdate|{{{access-date|}}}}}} }} }}
 +
  | {{Cite web/error|accessdate|deadlinkdate={{{deadlink|{{{deadlinkdate|}}}}}}}}
 +
}}{{#if: {{{quote|}}}
 +
  | &nbsp;“{{{quote}}}”
 +
}}</cite>{{#if: {{{archivedate|}}}
 +
  |
 +
  |{{#if: {{{deadlink|{{{deadlinkdate|}}}}}}
 +
     | {{リンク切れ|date={{{deadlink|{{{deadlinkdate|}}}}}}|archiveurl={{{archiveurl|}}}}}
 +
    |
 
   }}
 
   }}
}}</cite><noinclude>
+
}}<!--
[[en:Template:Cite web]]
+
-->{{#if:{{{accessdaymonth|}}}{{{accessmonthday|}}}{{{accessday|}}}{{{accessmonth|}}}{{{accessyear|}}}{{{day|}}}{{{dateformat|}}}{{{accessed|}}}|{{Citation/showdateError|accessyear={{{accessyear|}}}|dateformat={{{dateformat|}}}}}|}}<!--
 +
--></onlyinclude></includeonly><noinclude>
 +
{{Documentation}}
 +
<!-- カテゴリと言語間リンクはここではなく、/doc サブページに追加してください -->
 
</noinclude>
 
</noinclude>

2019/4/29/ (月) 03:18時点における最新版

view edit Documentation