This is a documentation subpage for 模板:R/ref. It may contain usage information, categories and other content that is not part of the original 模板 page. |
This template is used on approximately 26,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This is a subtemplate, implementing a piece of Template:R for a single ref name.
Usage
For internal use only:
{{r/ref |[1=]name |[2=]group |direction=ltr/rtl |page=page / |pages=pages / |location=in-source-location |quote=quote |quote-page=page/p (for page) / quote-page / |quote-pages=pages/pp (for pages) / quote-pages |quote-location=page/p/pages/pp (for page/pages) / quote-location |language=language-code/language-name |translation=translation |quote-cite=quote-anchor (cite the quote belongs to) |reference=citation-text |annotation=p[age[s]] (for pages) / q[uote] (for quote including quote-page) / annotation-text |leadin=leadin-sequence |postscript=postscript-sequence |section=y[es] (to use internally generated section name) / context-section |needed-reason=y[es] (for "unspecified reason") / page-needed-reason |needed-date=page-needed-date |wrap=n[o] (default) / y[es] (to activate wrapping) / f[orced] (to enforce inline wrapping) |no-pp=y[es] (to optionally suppress p/pp) |style=AMA / else (to optionally select AMA style) |content-id=content-anchor (to mark annotation) |link-id=link-anchor (to mark superscript link) |debug=debug-value }}
See also
- Module:DecodeEncode.encode()
- Module:Plain text.main()
- Module:String.replace()
- Module:String2.hyphen2dash()
- Template:lang fn