テンプレート:Refn/docのソースを表示
←
テンプレート:Refn/doc
ナビゲーションに移動
検索に移動
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
===Purpose=== This template is used to [[Help:Footnotes|create footnotes in Wikipedia]], as an alternative and complement to the {{tag|ref|o}} tag. [[:mw:Extension:Cite/Cite.php#Substitution and embedded parser functions|Because of a technical limitation]], some of the standard Wikipedia markup elements that are often used in the article prose do not work within a set of {{tag|ref}} tags, including but not limited to [[Help:Pipe trick|the pipe trick]], [[Wikipedia:Substitution|template substitution]] and another "nested" set of {{tag|ref}} tags. For example, the following does not work as expected: # {{tag|ref|content=<nowiki>[[Help:Footnotes|]]</nowiki>}} (Generates: <nowiki>[[Help:Footnotes|]]</nowiki> instead of a wikilink) # {{tag|ref|content=<nowiki>{{SUBST:TODAY}}</nowiki>}} (Generates: <nowiki>{{SUBST:TODAY}}</nowiki> instead of the date that the edit was made) # {{tag|ref|content=<nowiki>Explanatory footnote<ref>Citation</ref></nowiki>}} (Generates: <span style="font-weight: bold; color: #CC0000;">Cite error: A <ref> tag is missing the closing </ref> (see the [[:Help:Cite errors/Cite error included ref|help page]]).</span> </ref>) Replacing the outermost {{tag|ref}} set with {{tlp|Refn}} allows for the use of the markup elements listed above. ===Usage=== {{tld|refn|2=group=groupname|3=name=name|4=Contents of the footnote|allowlinebreak=yes}} :* '''groupname''': Groupname per [[WP:REFGROUP]]; if not specified, then the main and nested references will be rendered into the same reference list :* '''name''': Reference name per [[WP:REFNAME]] {{refname rules}} ===Examples=== ====Footnotes with citations==== {{markup |<nowiki>An example.{{refn|group=note|name=first|A note.<ref>An included reference.</ref>}} Another example.{{refn|group=note|Another note.<ref>Another included reference.</ref>}} A third example.{{refn|group=note|The third note.<ref>The reference in the third note.</ref>}} Repeating the first example.{{refn|group=note|name=first}} ==Notes== {{reflist|group=note}} ==References== {{reflist}}</nowiki> |An example.{{refn|group=note|name=first|A note.<ref>An included reference.</ref>}} Another example.{{refn|group=note|Another note.<ref>Another included reference.</ref>}} A third example.{{refn|group=note|The third note.<ref>The reference in the third note.</ref>}} Repeating the first example.{{refn|group=note|name=first}} {{fake heading|sub=3|Notes}} {{reflist|group=note}} {{fake heading|sub=3|References}} {{reflist|close=1}} }} ====Substitution==== The first example shows that substitution does not work in a regular {{tag|ref}} tag (the accessdate does not appear correctly). The second example shows that the accessdate is substituted correctly within {{tl|refn}}. {{markup |<nowiki><ref>{{cite web |accessdate={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}</ref> {{reflist}}</nowiki> |<ref>{{cite web |accessdate={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary|template doc demo=true}}</ref> {{reflist|close=1}} |<nowiki>{{refn|{{cite web |accessdate={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}}} {{reflist}}</nowiki> |{{refn|{{cite web |accessdate=4 April 2014 |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}}} {{reflist|close=1}} }} ===Errors=== If the reference or note content is missing, then "Cite error: Invalid {{tag|ref|open}} tag; refs with no name must have content." will be displayed. ===See also=== {{#lst:Help:Cite errors/Cite error group refs without references|rlt}} {{Wikipedia referencing}} <includeonly> <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> [[Category:Footnote templates]] </includeonly>
テンプレート:Refn/doc
に戻る。
ナビゲーション メニュー
個人用ツール
ログイン
名前空間
テンプレート
議論
日本語
表示
閲覧
履歴表示
その他
検索
案内
索引
脳科学辞典について
最近完成した項目
編集履歴
執筆にあたって
引用の仕方
著作権について
免責事項
問い合わせ
各学会編集のオンライン用語辞典
About us (in English)
Twitter (BrainScienceBot)
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報
他のプロジェクト