Difference between revisions of "Template:Include-USGov/testcases"
Jump to navigation
Jump to search
imported>PBS |
imported>PBS (clean up) |
||
| Line 11: | Line 11: | ||
== Testing sandbox version == | == Testing sandbox version == | ||
| − | |||
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>/sandbox}}</nowiki></code> | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>/sandbox}}</nowiki></code> | ||
*{{{{BASEPAGENAME}}/sandbox}} | *{{{{BASEPAGENAME}}/sandbox}} | ||
| Line 21: | Line 20: | ||
*{{ {{BASEPAGENAME}}/sandbox|url=http://www.whitehouse.gov}} | *{{ {{BASEPAGENAME}}/sandbox|url=http://www.whitehouse.gov}} | ||
| − | :<code><nowiki> | + | :<code><nowiki>{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |url=http://www.whitehouse.gov}}</nowiki></code> |
*{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |url=http://www.whitehouse.gov}} | *{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |url=http://www.whitehouse.gov}} | ||
| Line 44: | Line 43: | ||
---- | ---- | ||
;Test source= | ;Test source= | ||
| − | : | + | :<code><nowiki>{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY|source= |policy=POLICY |comment=COMMENT |article=ARTICLE |author=AUTHOR|accessdate=ACCESSDATE}} </nowiki></code> |
| − | *{{ {{BASEPAGENAME}}/sandbox | + | *{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY|source= |policy=POLICY |comment=COMMENT |article=ARTICLE |author=AUTHOR|accessdate=ACCESSDATE}} |
| − | : | + | ;test source=This is a test string |
| − | *{{ {{BASEPAGENAME}}/sandbox|source= | + | :<code><nowiki>{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |source=This is a test string |policy=POLICY |comment=COMMENT |author=AUTHOR|accessdate=ACCESSDATE}} </nowiki></code> |
| + | *{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |source=This is a test string |policy=POLICY |comment=COMMENT |author=AUTHOR|accessdate=ACCESSDATE}} | ||
| + | |||
| + | ;test source={{tl|cite book}} | ||
| + | :<code><nowiki>{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |source={{cite book|first=John |last=Smith |title=Battle of Hastings}} |policy=POLICY |comment=COMMENT |author=AUTHOR|accessdate=ACCESSDATE}} </nowiki></code> | ||
| + | *{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |source={{cite book|first=John |last=Smith |title=Battle of Hastings}} |policy=POLICY |comment=COMMENT |author=AUTHOR|accessdate=ACCESSDATE}} | ||
{{clear}} | {{clear}} | ||
Revision as of 04:13, 22 November 2011
| This is the template test cases page for the sandbox of Template:Include-USGov. Script error: No such module "Purge". 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: |
- agency (required) - name of agency (or reference source) that produced material
- url (optional) - URL of reference
- policy (optional) - URL of re-use policy of agency or reference source
- comment (optional) - free field that produces parenthesized comment at end
- article (optional) - the title of the reference
- author (optional) - author of reference
- accessdate (optional) - date page last checked
Testing sandbox version
{{Include-USGov/sandbox}}
- No "agency=name" parameter provided.
{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY}}
This article incorporates public domain material from websites or documents of the AGENCY.
{{ {{BASEPAGENAME}}/sandbox|url=http://www.whitehouse.gov}}
- No "agency=name" parameter provided.
{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |url=http://www.whitehouse.gov}}
This article incorporates public domain material from the AGENCY website http://www.whitehouse.gov.
{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |url=http://www.whitehouse.gov |policy=POLICY}}
This article incorporates [POLICY public domain material] from the AGENCY website http://www.whitehouse.gov.
{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |url=http://www.whitehouse.gov |policy=POLICY |comment=COMMENT}}
This article incorporates [POLICY public domain material] from the AGENCY website http://www.whitehouse.gov. (COMMENT)
{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |url= |policy=POLICY |comment=COMMENT}}
This article incorporates [POLICY public domain material] from the AGENCY website http://www.whitehouse.gov. (COMMENT)
{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |url=http://www.whitehouse.gov |policy=POLICY |comment=COMMENT |article=ARTICLE}}
This article incorporates [POLICY public domain material] from the AGENCY document: "ARTICLE". (COMMENT)
{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |url=http://www.whitehouse.gov |policy=POLICY |comment=COMMENT |article=ARTICLE |author=AUTHOR}}
This article incorporates [POLICY public domain material] from the AGENCY document: AUTHOR. "ARTICLE". (COMMENT)
- NO URL
{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |policy=POLICY |comment=COMMENT |article=ARTICLE |author=AUTHOR|accessdate=ACCESSDATE}}
This article incorporates [POLICY public domain material] from the AGENCY document: AUTHOR. "ARTICLE". Retrieved ACCESSDATE. Check date values in: |accessdate=(help) (COMMENT)
- Test source=
{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY|source= |policy=POLICY |comment=COMMENT |article=ARTICLE |author=AUTHOR|accessdate=ACCESSDATE}}
This article incorporates [POLICY public domain material] from the AGENCY document: "Script error: No such module "If empty".". (COMMENT)
- test source=This is a test string
{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |source=This is a test string |policy=POLICY |comment=COMMENT |author=AUTHOR|accessdate=ACCESSDATE}}
This article incorporates [POLICY public domain material] from the AGENCY document: This is a test string (COMMENT)
- test source={{cite book}}
{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY |source={{cite book|first=John |last=Smith |title=Battle of Hastings}} |policy=POLICY |comment=COMMENT |author=AUTHOR|accessdate=ACCESSDATE}}
This article incorporates [POLICY public domain material] from the AGENCY document: Smith, John. Battle of Hastings. (COMMENT)
Testing main template
{{Include-USGov}}
- No "agency=name" parameter provided.
{{ {{BASEPAGENAME}}|agency=AGENCY}}
This article incorporates public domain material from websites or documents of the AGENCY.
{{ {{BASEPAGENAME}}|url=http://www.whitehouse.gov}}
- No "agency=name" parameter provided.
{{ {{BASEPAGENAME}}|agency=AGENCY |url=http://www.whitehouse.gov}}
This article incorporates public domain material from the AGENCY website http://www.whitehouse.gov.
{{ {{BASEPAGENAME}}|agency=AGENCY |url=http://www.whitehouse.gov |policy=POLICY}}
This article incorporates [POLICY public domain material] from the AGENCY website http://www.whitehouse.gov.
{{ {{BASEPAGENAME}}|agency=AGENCY |url=http://www.whitehouse.gov |policy=POLICY |comment=COMMENT}}
This article incorporates [POLICY public domain material] from the AGENCY website http://www.whitehouse.gov. (COMMENT)
{{ {{BASEPAGENAME}}|agency=AGENCY |url=http://www.whitehouse.gov |policy=POLICY |comment=COMMENT}}
This article incorporates [POLICY public domain material] from the AGENCY website http://www.whitehouse.gov. (COMMENT)
{{ {{BASEPAGENAME}}|agency=AGENCY |url=http://www.whitehouse.gov |policy=POLICY |comment=COMMENT |article=ARTICLE}}
This article incorporates [POLICY public domain material] from the AGENCY document: "ARTICLE". (COMMENT)
{{ {{BASEPAGENAME}}agency=AGENCY |url=http://www.whitehouse.gov |policy=POLICY |comment=COMMENT |article=ARTICLE |author=AUTHOR}}
This article incorporates [POLICY public domain material] from the AGENCY document: AUTHOR. "ARTICLE". (COMMENT)
{{ {{BASEPAGENAME}}|agency=AGENCY |url=http://www.whitehouse.gov |policy=POLICY |comment=COMMENT |article=ARTICLE |author=AUTHOR|accessdate=ACCESSDATE}}
This article incorporates [POLICY public domain material] from the AGENCY document: AUTHOR. "ARTICLE". Retrieved ACCESSDATE. Check date values in: |accessdate=(help) (COMMENT)
- NO URL
{{ {{BASEPAGENAME}}|agency=AGENCY |policy=POLICY |comment=COMMENT |article=ARTICLE |author=AUTHOR|accessdate=ACCESSDATE}}
This article incorporates [POLICY public domain material] from the AGENCY document: AUTHOR. "ARTICLE". Retrieved ACCESSDATE. Check date values in: |accessdate=(help) (COMMENT)
- Test source=
- NO URL
{{ {{BASEPAGENAME}}|source=|agency=AGENCY |policy=POLICY |comment=COMMENT |article=ARTICLE |author=AUTHOR|accessdate=ACCESSDATE}}
This article incorporates [POLICY public domain material] from the AGENCY document: AUTHOR. "ARTICLE". Retrieved ACCESSDATE. Check date values in: |accessdate=(help) (COMMENT)
- NO URL
{{ {{BASEPAGENAME}}|source=1 | first=FIRST |last=LAST |title=TITLE |agency=AGENCY |policy=POLICY |comment=COMMENT |author=AUTHOR|accessdate=ACCESSDATE}}
This article incorporates [POLICY public domain material] from the AGENCY document: 1 (COMMENT)