Help:CS1テンプレートエラー
[Wikipedia|▼Menu]
.mw-parser-output .ombox{margin:4px 0;border-collapse:collapse;border:1px solid #a2a9b1;background-color:#f8f9fa;box-sizing:border-box}.mw-parser-output .ombox.mbox-small{font-size:88%;line-height:1.25em}.mw-parser-output .ombox-speedy{border:2px solid #b32424;background-color:#fee7e6}.mw-parser-output .ombox-delete{border:2px solid #b32424}.mw-parser-output .ombox-content{border:1px solid #f28500}.mw-parser-output .ombox-style{border:1px solid #fc3}.mw-parser-output .ombox-move{border:1px solid #9932cc}.mw-parser-output .ombox-protection{border:2px solid #a2a9b1}.mw-parser-output .ombox .mbox-text{border:none;padding:0.25em 0.9em;width:100%;font-size:90%}.mw-parser-output .ombox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .ombox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .ombox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ombox .mbox-invalid-type{text-align:center}@media(min-width:720px){.mw-parser-output .ombox{margin:4px 10%}.mw-parser-output .ombox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;width:238px}}

この文書は手引き書です。ウィキペディア日本語版での活動の参考にされていますが、方針やガイドラインではありません。

このページでは出典表記形式1出典表記形式2和書用出典表記形式のテンプレートで表示されるエラーメッセージの意味と解決策を説明します。エラーメッセージが表示されているページはCategory:テンプレート呼び出しエラーのあるページ/CS1に収集されます。

なお、脚注用のrefタグの使用にまつわるエラーメッセージはこのページでは扱いません。
エラーメッセージの表示変更
プレビュー時のメッセージ

When editors preview an article, MediaWiki displays a preview message box under the Preview header. When 出典表記形式1 and 出典表記形式2 templates have error or maintenance messages, Module:Citation/CS1 summarizes those messages in the preview message box. Such a message box might look something like this:

これはプレビューです。変更内容はまだ公開されていません! → 編集エリアに移動する

Script warning: .mw-parser-output .monospaced{font-family:monospace,monospace}{{cite book}}テンプレートにメンテナンス用メッセージがあります。メッセージが非表示になっている可能性があります(説明)。

Script warning: {{cite journal}}テンプレートにエラーがあります。エラーメッセージが非表示になっている可能性があります(説明)。

The summary messages have three components:
'Script warning:' ? this prefix is provided by MediaWiki;

a colored (green maintenance or red error) message that identifies the type of template that has a message with a link to that template's documentation; wrapper templates with messages will show the name of the wrapped template, and;

'messages may be hidden' ? the message suffix with a help link to this page.

Preview messages in the preview message box cannot be hidden. The preview message suffix 'messages may be hidden' means that the template's message(s) may not be visible. To learn how to show or hide template messages, see the next section ( §?Error and maintenance messages).
Error and maintenance messages

出典表記形式1出典表記形式2和書用出典表記形式のエラーメッセージは既定で表示され、メンテナンス用メッセージは既定で表示されません。

メンテナンス用メッセージを表示させたい場合、共通のCSSファイル(Common.css)あるいは内装ごとのCSSファイル(Skin.css)に下記の内容を追加してください。

(Note to new editors: those CSS pages are specific to you, and control your view of pages, by adding to your user account's CSS code. If you have not yet created such a page, then clicking one of the .css links above will yield a page that starts "Wikipedia does not have a user page with this exact name." Click the "Start the User:username/filename page" link, paste the text below, save the page, follow the instructions at the bottom of the new page on bypassing your browser's cache, and finally, in order to see the previously hidden maintenance messages, refresh the page you were editing earlier.).mw-parser-output span.cs1-maint {display: inline;} /* CS1のメンテナンス用メッセージを表示する */

既定で非表示になっているエラーメッセージを表示する場合:.mw-parser-output span.cs1-hidden-error {display: inline;} /* CS1の非表示のエラーメッセージを表示する */

上記のCSSを使用した場合でも古いキャッシュなどの要因によりメッセージが正しく表示されないことがあります。その場合は空編集を行うことで解消されます。

既定で表示されるエラーメッセージを非表示にする場合:.mw-parser-output span.cs1-visible-error {display: none;} /* CS1のエラーメッセージを非表示にする */

表示/非表示の切り替えのほかにも文字色を変えるといったカスタム化ができますが、自身にCSSの知識を持ち合わせていない場合は利用案内などで質問してください。

Nota bene: these CSS rules are not obeyed by Navigation popups. They also do not hide script warning messages in the Preview box that begin with "This is only a preview; your changes have not yet been saved".



|access-date=を指定する場合、|url=も指定してください 利用案内.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation.cs-ja1 q,.mw-parser-output .citation.cs-ja2 q{quotes:"「""」""『""』"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free a,.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited a,.mw-parser-output .id-lock-registration a,.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription a,.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:#d33}.mw-parser-output .cs1-visible-error{color:#d33}.mw-parser-output .cs1-maint{display:none;color:#3a3;margin-left:0.3em}.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}

|access-date=を指定する場合、|url=も指定してください。

|access-date=引数(または|accessdate=引数)は|url=で指定されたインターネット出典が閲覧され、記事に追加された日付です。|url=を指定していないのに|access-date=を指定した場合、このエラーメッセージが表示されます。インターネット出典ではない場合、閲覧日付(|access-date=)は不要であり、その場合は除去してください。たとえば、書籍出典の場合は|edition=や|isbn=で特定すべきであり、閲覧日付は指定する意味がありません。

このエラーを解消するには、|url=を指定するか、|access-date=を除去してください。具体的には下記のように対処します。

出典が追加された時点で|url=が指定されていない場合:|access-date=を除去してください。

|url=のリンク先に著作権侵害の疑いがあるとして除去された場合(WP:COPYLINKも参照):|access-date=を除去してください。

|url=のリンク切れにより除去された場合:|url=を元に戻し、|url-status=を指定してください。また、アーカイブ版がある場合は|archive-url=と|archive-date=も指定してください(Help:リンク切れ(英語版)を参照)。

このエラーメッセージが表示されるページはCategory:テンプレート呼び出しエラーのあるページ/CS1/accessdate関連(1,533ページ)に追加されます[注釈 1]
|archive-date=と|archive-url=の日付が異なります 利用案内

|archive-date=と|archive-url=の日付が異なります。

Archive.org や Archive.today のURLには14桁のタイムスタンプが付いています。タイムスタンプの日付と|archive-date=に指定された日付が異なると、このエラーが表示されます。

このエラーを解消するには、|archive-url=と|archive-date=が同じアーカイブを参照しているようにしてください。アーカイブされたページを表示し、下部のFILE ARCHIVED ONで始まる行を確認して、正しい|archive-date=を取得してください。

このエラーメッセージが表示されるページはCategory:テンプレート呼び出しエラーのあるページ/CS1/archiveurl関連(0ページ)に追加されます[注釈 1]
|archive-date=を指定する場合、|archive-url=も指定してください 利用案内

|archive-date=を指定する場合、|archive-url=も指定してください。

|archive-date=は、Webページがアーカイブされた日付を示します。|archive-url=がなければ|archive-date=は無意味です。

このエラーを解消するには、|archive-url=を指定するか、|archive-date=を除去してください。

このエラーメッセージが表示されるページはCategory:テンプレート呼び出しエラーのあるページ/CS1/archiveurl関連(0ページ)に追加されます[注釈 1]


次ページ
記事の検索
おまかせリスト
▼オプションを表示
ブックマーク登録
mixiチェック!
Twitterに投稿
オプション/リンク一覧
話題のニュース
列車運行情報
暇つぶしWikipedia

Size:187 KB
出典: フリー百科事典『ウィキペディア(Wikipedia)
担当:undef