Ta̱mpi̱let:R/testcases
This is the template test cases page for the sandbox of Ta̱mpi̱let:R. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Usage | Display | Notes |
---|---|---|
{{r/sandbox|RefName}}
|
Text.Ta̱mpi̱let:R/ref/sandbox | Equivalent to <ref name=RefName/> .
|
{{r/sandbox|RefName|p=100}}
|
Text.Ta̱mpi̱let:R/ref/sandbox | Adds a page number (or other location identifier) within the source.
The If the article cites only one location in a given source, reduce clutter by coding simply |
{{r/sandbox|RefName|p=10–14}}
|
Text.Ta̱mpi̱let:R/ref/sandbox
Text.Ta̱mpi̱let:R/ref/sandbox | |
{{r/sandbox|RefName|Bam|Bar}}
|
Text.Ta̱mpi̱let:R/ref/sandboxTa̱mpi̱let:R/ref/sandboxTa̱mpi̱let:R/ref/sandbox | Equivalent to {{r/sandbox|RefName}}{{r/sandbox|Bam}}{{r/sandbox|Bar}} or Ta̱mpi̱let:Nobr
Up to nine references may be "bundled" this way. |
{{r/sandbox|RefName|Bam|Bar|Bas|p1=100|p2=10–14|p4=§C}}
|
Ta̱mpi̱let:Nobr | Equivalent to {{r/sandbox|RefName|p=100}}{{r/sandbox|Bam}}{{r/sandbox|Bar|p=10–14}}{{r/sandbox|Bas|p=§C}} .
Multiple "bundled" citations with page numbers in a single call utilizing numbered Note that not all references have location identifiers; use care in ensuring the corresponding The name parameters may also be numbered to ensure accuracy, as shown in the last two examples, which also demonstrate that you may group all the name parameters and page parameters, or list them sequentially. |
{{r/sandbox|group=Notes|NtName}}
|
Text.Ta̱mpi̱let:R/ref/sandbox | The |group= , |grp= , and |g= parameters are equivalent and echo Ta̱mpi̱let:Nobr
If present, the parameter applies to all references in the template. Location identifiers may also be used as detailed above. |
{{r/sandbox|RefName|p=100|q=quote from the text}}
|
Text.Ta̱mpi̱let:R/ref/sandbox | Adds the relevant quote from the source to a pop-up when the mouse is hovered over the location identifier. Requires that a location identifier be specified. The |q= and |quote= parameters are equivalent.
|
{{r/sandbox|RefName|Bam|Bar|Bas|p1=100|p2=10–14|p4=§C|q1=Quote from 100|q4=Quote from §C}}
|
Text.Ta̱mpi̱let:R/ref/sandboxTa̱mpi̱let:R/ref/sandboxTa̱mpi̱let:R/ref/sandbox | Note that not all location identifiers have quotes; use care in ensuring the corresponding |q= parameter number is listed for the correct reference.
|
Usage | Display | Notes |
---|---|---|
{{r|RefName}}
|
Text.[1]: {{[[Template:{{{1}}}|{{{1}}}]]}} | Equivalent to <ref name=RefName/> .
|
{{r|RefName|p=100}}
|
Text.[1]: {{[[Template:{{{1}}}|{{{1}}}]]}} | Adds a page number (or other location identifier) within the source.
The If the article cites only one location in a given source, reduce clutter by coding simply |
{{r|RefName|p=10–14}}
|
Text.[1]: {{[[Template:{{{1}}}|{{{1}}}]]}}
Text.[1]: {{[[Template:{{{1}}}|{{{1}}}]]}} Text.[1]: {{[[Template:{{{1}}}|{{{1}}}]]}} Text.[1]: {{[[Template:{{{1}}}|{{{1}}}]]}} | |
{{r|RefName|Bam|Bar}}
|
Text.[1]: {{[[Template:{{{1}}}|{{{1}}}]]}} [2]: {{[[Template:{{{1}}}|{{{1}}}]]}} [3]: {{[[Template:{{{1}}}|{{{1}}}]]}} | Equivalent to {{r|RefName}}{{r|Bam}}{{r|Bar}} or Ta̱mpi̱let:Nobr
Up to nine references may be "bundled" this way. |
{{r|RefName|Bam|Bar|Bas|p1=100|p2=10–14|p4=§C}}
|
Ta̱mpi̱let:Nobr | Equivalent to {{r|RefName|p=100}}{{r|Bam}}{{r|Bar|p=10–14}}{{r|Bas|p=§C}} .
Multiple "bundled" citations with page numbers in a single call utilizing numbered Note that not all references have location identifiers; use care in ensuring the corresponding The name parameters may also be numbered to ensure accuracy, as shown in the last two examples, which also demonstrate that you may group all the name parameters and page parameters, or list them sequentially. |
{{r|group=Notes|NtName}}
|
Text.[Notes 1]: {{[[Template:{{{1}}}|{{{1}}}]]}}
Text.[Notes 1]: {{[[Template:{{{1}}}|{{{1}}}]]}} [Notes 2]: {{[[Template:{{{1}}}|{{{1}}}]]}} Text.[Notes 1]: {{[[Template:{{{1}}}|{{{1}}}]]}} |
The |group= , |grp= , and |g= parameters are equivalent and echo Ta̱mpi̱let:Nobr
If present, the parameter applies to all references in the template. Location identifiers may also be used as detailed above. |
{{r|RefName|p=100|q=quote from the text}}
|
Text.[1]: {{[[Template:{{{1}}}|{{{1}}}]]}} | Adds the relevant quote from the source to a pop-up when the mouse is hovered over the location identifier. Requires that a location identifier be specified. The |q= and |quote= parameters are equivalent.
|
{{r|RefName|Bam|Bar|Bas|p1=100|p2=10–14|p4=§C|q1=Quote from 100|q4=Quote from §C}}
|
Text.[1]: {{[[Template:{{{1}}}|{{{1}}}]]}} [2]: {{[[Template:{{{1}}}|{{{1}}}]]}} [3]: {{[[Template:{{{1}}}|{{{1}}}]]}} [4]: {{[[Template:{{{1}}}|{{{1}}}]]}}
Text.[1]: {{[[Template:{{{1}}}|{{{1}}}]]}} [3]: {{[[Template:{{{1}}}|{{{1}}}]]}} |
Note that not all location identifiers have quotes; use care in ensuring the corresponding |q= parameter number is listed for the correct reference.
|
Test cases using testcase template
jhyuk{{R}}
Ghyuap di̱n tyan: Invalid <ref>
tag; refs with no name must have content: {{[[Template:{{{1}}}|{{{1}}}]]}}
{{R/sandbox}}