「テンプレート:Cite web」の版間の差分
提供: miniwiki
細 |
細 |
||
(同じ利用者による、間の2版が非表示) | |||
1行目: | 1行目: | ||
− | <includeonly><onlyinclude><cite style="font-style:normal">{{ | + | <includeonly><onlyinclude><cite style="font-style:normal" |
− | #if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}} | + | {{ |
− | || | + | #switch:{{{ref|}}} |
+ | ||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: {{{author|{{{last| | ||
| {{#if: {{{authorlink|}}} | | {{#if: {{{authorlink|}}} | ||
| [[{{{authorlink}}}|{{#if: {{{last|}}} | | [[{{{authorlink}}}|{{#if: {{{last|}}} | ||
| {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }} | | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }} | ||
| {{{author}}} | | {{{author}}} | ||
− | + | }}]] | |
| {{#if: {{{last|}}} | | {{#if: {{{last|}}} | ||
| {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }} | | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }} | ||
| {{{author}}} | | {{{author}}} | ||
}} | }} | ||
− | + | }}{{#if: {{{coauthors|}}} | |
− | }}{{#if: {{{ | + | | <nowiki>;</nowiki> {{{coauthors}}} |
− | + | }}{{ #if: {{{date|}}}{{{year|}}} | |
− | }}{{#if: {{{ | + | |  ({{Citation/showdate|{{{date|}}}|{{{year|}}}|{{{month|}}}}}) |
− | + | | | |
− | |  ({{{date}}} | + | }}.  |
− | + | }}{{#if: {{{editor|}}} | |
− | + | |  {{{editor}}}:  | |
− | + | }}“{{#switch: {{{format|}}} | |
− | + | | PDF | |
− | + | | DOC | |
− | + | | XLS | |
− | + | | PPT | |
− | }}{{# | + | | RTF = {{{{{format}}}link| 1 = [{{ifempty|{{{archiveurl|}}}|{{{url}}}}} {{{title}}}] }} |
− | + | | <!-- 空白値 --> = [{{ifempty|{{{archiveurl|}}}|{{{url}}}}} {{{title}}}] | |
− | + | | #default = [{{ifempty|{{{archiveurl|}}}|{{{url}}}}} {{{title}}}] ({{{format}}}) | |
− | + | }}”{{#if:{{{language|}}} | |
− | }} | + | | {{#if:{{{trans_title|}}} | [{{{trans_title}}}] | {{#if:{{{trans-title|}}} | [{{{trans-title}}}]}}}}  ({{#ifeq: {{ISO639言語名|{{{language}}}}}||{{{language}}}|{{ISO639言語名|{{{language}}}}}}}) |
− | |{{ | + | }}{{#if: {{{website|}}} |
− | + | | . ''{{{website}}}'' | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}{{#if:{{{ | ||
− | |   | ||
}}{{#if: {{{work|}}} | }}{{#if: {{{work|}}} | ||
| . ''{{{work}}}'' | | . ''{{{work}}}'' | ||
− | |||
− | |||
}}{{#if: {{{publisher|}}} | }}{{#if: {{{publisher|}}} | ||
| .  {{#if: {{{location|}}} | | .  {{#if: {{{location|}}} | ||
63行目: | 53行目: | ||
| {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }} | | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }} | ||
}}--> | }}--> | ||
+ | }}{{#if: {{{page|}}} | ||
+ | |. p. {{{page}}} | ||
+ | |{{ | ||
+ | #if: {{{pages|}}} | ||
+ | |. pp. {{{pages}}} | ||
+ | }} | ||
}}{{#if: {{{author|}}}{{{last|}}} | }}{{#if: {{{author|}}}{{{last|}}} | ||
− | ||{{#if: {{{date|}}} | + | | |
− | |  ({{ | + | |{{#if: {{{date|}}}{{{year|}}} |
− | + | |  ({{Citation/showdate|{{{date|}}}|{{{year|}}}|{{{month|}}}}}) | |
− | + | | | |
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
}}.{{#if: {{{doi|}}} | }}.{{#if: {{{doi|}}} | ||
|  [[デジタルオブジェクト識別子|doi]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}]. | |  [[デジタルオブジェクト識別子|doi]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}]. | ||
}}{{#if: {{{archivedate|}}} | }}{{#if: {{{archivedate|}}} | ||
− | |  {{{archivedate|}}} 時点の[{{{url}}} オリジナル]よりアーカイブ。 | + | |  {{Citation/showdate|{{{archivedate|}}}}}時点の[{{{url}}} オリジナル]{{#if: {{{deadlink|{{{deadlinkdate|}}}}}} |
− | }}{{#if: {{{accessdate|}}} | + | | {{リンク切れ|date={{{deadlink|{{{deadlinkdate|}}}}}}|archiveurl={{{archiveurl|}}}}} |
− | | {{#if:{{{archivedate|}}}|| |}}{{ | + | | |
− | | | + | }}よりアーカイブ。 |
+ | }}{{#if: {{{accessdate|}}}{{{access-date|}}} | ||
+ | | {{#if:{{{archivedate|}}} | ||
+ | | | ||
+ | |  | ||
+ | | | ||
+ | }}{{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|}}} | }}{{#if: {{{quote|}}} | ||
| “{{{quote}}}” | | “{{{quote}}}” | ||
− | }}</cite></onlyinclude></includeonly> | + | }}</cite>{{#if: {{{archivedate|}}} |
+ | | | ||
+ | |{{#if: {{{deadlink|{{{deadlinkdate|}}}}}} | ||
+ | | {{リンク切れ|date={{{deadlink|{{{deadlinkdate|}}}}}}|archiveurl={{{archiveurl|}}}}} | ||
+ | | | ||
+ | }} | ||
+ | }}<!-- | ||
+ | -->{{#if:{{{accessdaymonth|}}}{{{accessmonthday|}}}{{{accessday|}}}{{{accessmonth|}}}{{{accessyear|}}}{{{day|}}}{{{dateformat|}}}{{{accessed|}}}|{{Citation/showdateError|accessyear={{{accessyear|}}}|dateformat={{{dateformat|}}}}}|}}<!-- | ||
+ | --></onlyinclude></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- カテゴリと言語間リンクはここではなく、/doc サブページに追加してください --> | <!-- カテゴリと言語間リンクはここではなく、/doc サブページに追加してください --> | ||
+ | </noinclude> |