Jump to content

Template:Source-attribution/testcases

From Wikipedia, the free encyclopedia
Test0 no carriage return after the template
{{Source-attribution}} Test this string is on the same line

{{Source-attribution}}

Public Domain This article incorporates text from this source, which is in the public domain. Test this string is on the same line

{{Source-attribution/sandbox}}

Public Domain This article incorporates text from this source, which is in the public domain. Test this string is on the same line

Test1 no parameters
{{Source-attribution|}}

{{Source-attribution}}

Public Domain This article incorporates text from this source, which is in the public domain.

{{Source-attribution/sandbox}}

Public Domain This article incorporates text from this source, which is in the public domain.

Test2 With an unnamed parameter
{{Source-attribution|''Handbook to the cathedrals of England'', by Richard John (1869)}}

{{Source-attribution}}

Public Domain This article incorporates text from this source, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

{{Source-attribution/sandbox}}

Public Domain This article incorporates text from this source, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

Test3 With pl (Plural) and an unnamed parameter
{{Source-attribution|''Handbook to the cathedrals of England'', by Richard John (1869)|pl=y}}

{{Source-attribution}}

Public Domain This article incorporates text from these sources, which are in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

{{Source-attribution/sandbox}}

Public Domain This article incorporates text from these sources, which are in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

Test3 With pl=yes (Plural) and an unnamed parameter
{{Source-attribution|''Handbook to the cathedrals of England'', by Richard John (1869)|pl=yes}}

{{Source-attribution}}

Public Domain This article incorporates text from these sources, which are in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

{{Source-attribution/sandbox}}

Public Domain This article incorporates text from these sources, which are in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

Test4 With pl=y (Plural) and an unnamed parameter
{{Source-attribution|pl=y |''Handbook to the cathedrals of England'', by Richard John (1869)}}; second book

{{Source-attribution}}

Public Domain This article incorporates text from these sources, which are in the public domain: Handbook to the cathedrals of England, by Richard John (1869); second book

{{Source-attribution/sandbox}}

Public Domain This article incorporates text from these sources, which are in the public domain: Handbook to the cathedrals of England, by Richard John (1869); second book

Test5 With plural=yes and an unnamed parameter
{{Source-attribution|''Handbook to the cathedrals of England'', by Richard John (1869)|plural=yes}}

{{Source-attribution}}

Public Domain This article incorporates text from these sources, which are in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

{{Source-attribution/sandbox}}

Public Domain This article incorporates text from these sources, which are in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

Test6 With plural=y and an unnamed parameter
{{Source-attribution|''Handbook to the cathedrals of England'', by Richard John (1869)|plural=y}}

{{Source-attribution}}

Public Domain This article incorporates text from these sources, which are in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

{{Source-attribution/sandbox}}

Public Domain This article incorporates text from these sources, which are in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

Test7 With sentence=yes and an unnamed parameter
{{Source-attribution|''Handbook to the cathedrals of England'', by Richard John (1869)|sentence=yes}}

{{Source-attribution}}

Public Domain One or more of the preceding sentences incorporates text from this source, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

{{Source-attribution/sandbox}}

Public Domain One or more of the preceding sentences incorporates text from this source, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

Test8 With sentence=y and an unnamed parameter
{{Source-attribution|''Handbook to the cathedrals of England'', by Richard John (1869)|sentence=y}}

{{Source-attribution}}

Public Domain One or more of the preceding sentences incorporates text from this source, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

{{Source-attribution/sandbox}}

Public Domain One or more of the preceding sentences incorporates text from this source, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

Test9 With inline=y and an unnamed parameter
{{Source-attribution|''Handbook to the cathedrals of England'', by Richard John (1869)|inline=y}}

{{Source-attribution}}

Public Domain One or more of the preceding sentences incorporates text from this source, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

{{Source-attribution/sandbox}}

Public Domain One or more of the preceding sentences incorporates text from this source, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

Test10 With noicon=y and an unnamed parameter
{{Source-attribution|''Handbook to the cathedrals of England'', by Richard John (1869)|noicon=y}}

{{Source-attribution}}

This article incorporates text from this source, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

{{Source-attribution/sandbox}}

This article incorporates text from this source, which is in the public domain: Handbook to the cathedrals of England, by Richard John (1869)
Test11 all oprions set
{{Source-attribution|''Handbook to the cathedrals of England'', by Richard John (1869)|inline=y |noicon=y |plural=y}}

{{Source-attribution}}

One or more of the preceding sentences incorporates text from these sources, which are in the public domain: Handbook to the cathedrals of England, by Richard John (1869)

{{Source-attribution/sandbox}}

One or more of the preceding sentences incorporates text from these sources, which are in the public domain: Handbook to the cathedrals of England, by Richard John (1869)