Template:Include-USGov/testcases
< Template:Include-USGov
Jump to navigation
Jump to search
Revision as of 06:06, 22 November 2011 by imported>Hike395 (→Testing main template: rm url from no url caees)
| 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}}
- 12px 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}}
- 12px 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}}
- 12px 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}}
- 12px 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}}
- 12px 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}}
- 12px 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}}
- 12px 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}}
- 12px This article incorporates [POLICY public domain material] from the AGENCY document: "Script error: No such module "If empty".". (COMMENT)
- Test source=
{{ {{BASEPAGENAME}}/sandbox|agency=AGENCY|source= |policy=POLICY |comment=COMMENT |article=ARTICLE |author=AUTHOR|accessdate=ACCESSDATE}}
- 12px 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}}
- 12px 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}}
- 12px 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}}
- 12px 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}}
- 12px This article incorporates public domain material from the AGENCY website http://www.whitehouse.gov.
{{ {{BASEPAGENAME}}|agency=AGENCY |url=http://www.whitehouse.gov |policy=POLICY}}
- 12px 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}}
- 12px 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}}
- 12px 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}}
- 12px 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}}
- 12px 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}}
- 12px 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}}
- 12px This article incorporates [POLICY public domain material] from the AGENCY document: "Script error: No such module "If empty".". (COMMENT)
- Test source=
- NO URL
{{ {{BASEPAGENAME}}|source=|agency=AGENCY |policy=POLICY |comment=COMMENT |article=ARTICLE |author=AUTHOR|accessdate=ACCESSDATE}}
- 12px This article incorporates [POLICY public domain material] from the AGENCY document: "Script error: No such module "If empty".". (COMMENT)
- NO URL
{{ {{BASEPAGENAME}}|source=1 | first=FIRST |last=LAST |title=TITLE |agency=AGENCY |policy=POLICY |comment=COMMENT |author=AUTHOR|accessdate=ACCESSDATE}}
- 12px This article incorporates [POLICY public domain material] from the AGENCY document: 1 (COMMENT)