Difference between revisions of "Template:Historylink/testcases"
imported>Bri m (→Testing main template: update w fancy formatting) |
imported>Bri m (→Testing main template: oops non sandbox) |
||
| Line 72: | Line 72: | ||
== Testing main template == | == Testing main template == | ||
===No parameters=== | ===No parameters=== | ||
| − | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | + | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> |
| − | {{{{BASEPAGENAME}} | + | {{{{BASEPAGENAME}}}} |
{{clear}} | {{clear}} | ||
===All parameters=== | ===All parameters=== | ||
| − | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | + | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |
|title = Sample Title | |title = Sample Title | ||
|article = 9999 | |article = 9999 | ||
| Line 86: | Line 86: | ||
}}</nowiki></code> | }}</nowiki></code> | ||
| − | {{{{BASEPAGENAME}} | + | {{{{BASEPAGENAME}} |
|title = Sample Title | |title = Sample Title | ||
|article = 9999 | |article = 9999 | ||
| Line 96: | Line 96: | ||
===Title only=== | ===Title only=== | ||
| − | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | + | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |
|title = Sample Title | |title = Sample Title | ||
}}</nowiki></code> | }}</nowiki></code> | ||
| − | {{{{BASEPAGENAME}} | + | {{{{BASEPAGENAME}} |
|title = Sample Title | |title = Sample Title | ||
}} | }} | ||
| Line 107: | Line 107: | ||
===Article ID only=== | ===Article ID only=== | ||
| − | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | + | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |
|article = 9999 | |article = 9999 | ||
}}</nowiki></code> | }}</nowiki></code> | ||
| − | {{{{BASEPAGENAME}} | + | {{{{BASEPAGENAME}} |
|article = 9999 | |article = 9999 | ||
}} | }} | ||
| Line 118: | Line 118: | ||
===Author only=== | ===Author only=== | ||
| − | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | + | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |
|author = John Doe | |author = John Doe | ||
}}</nowiki></code> | }}</nowiki></code> | ||
| − | {{{{BASEPAGENAME}} | + | {{{{BASEPAGENAME}} |
|author = John Doe | |author = John Doe | ||
}} | }} | ||
| Line 129: | Line 129: | ||
===Date only=== | ===Date only=== | ||
| − | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | + | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> |
|date = January 1, 1901 | |date = January 1, 1901 | ||
}}</nowiki></code> | }}</nowiki></code> | ||
| − | {{{{BASEPAGENAME}} | + | {{{{BASEPAGENAME}} |
|date = January 1, 1901 | |date = January 1, 1901 | ||
}} | }} | ||
{{clear}} | {{clear}} | ||
Revision as of 20:57, 9 November 2010
| 42px | This is the template test cases page for the sandbox of Template:Historylink. 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: |
Contents
Testing sandbox version
No parameters
{{Historylink/sandbox}}
Uncited article, HistoryLink
All parameters
{{Historylink/sandbox
|title = Sample Title
|article = 9999
|author = John Doe
|date = January 1, 1901
}}
John Doe (January 1, 1901), Sample Title, HistoryLink
Title only
{{Historylink/sandbox
|title = Sample Title
}}
Sample Title, HistoryLink
Article ID only
{{Historylink/sandbox
|article = 9999
}}
Author only
{{Historylink/sandbox
|author = John Doe
}}
John Doe, Uncited article, HistoryLink
Date only
{{Historylink/sandbox
|date = January 1, 1901
}}
Uncited article, HistoryLink, January 1, 1901
Testing main template
No parameters
{{Historylink}}
{{{{BASEPAGENAME}}}}
All parameters
{{Historylink
|title = Sample Title
|article = 9999
|author = John Doe
|date = January 1, 1901
}}
John Doe (January 1, 1901), Sample Title, HistoryLink
Title only
{{Historylink
|title = Sample Title
}}
Sample Title, HistoryLink
Article ID only
{{Historylink
|article = 9999
}}
Author only
{{Historylink
|author = John Doe
}}
John Doe, Uncited article, HistoryLink
Date only
{{Historylink
|date = January 1, 1901
}}
Uncited article, HistoryLink, January 1, 1901