Difference between revisions of "Template:Historylink/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Bri
imported>Bri
m (→‎Testing main template: update w fancy formatting)
Line 71: Line 71:
  
 
== Testing main template ==
 
== Testing main template ==
 +
===No parameters===
 +
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>/sandbox}}</nowiki></code>
  
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
+
{{{{BASEPAGENAME}}/sandbox}}
  
{{ {{BASEPAGENAME}} }}
+
{{clear}}
  
===No parameters===
+
===All parameters===
{{Historylink}}
+
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>/sandbox
 +
|title = Sample Title
 +
|article = 9999
 +
|author = John Doe
 +
|date = January 1, 1901
 +
}}</nowiki></code>
  
===All parameters===
+
{{{{BASEPAGENAME}}/sandbox
{{Historylink
 
 
|title = Sample Title
 
|title = Sample Title
 
|article = 9999
 
|article = 9999
Line 86: Line 92:
 
|date = January 1, 1901
 
|date = January 1, 1901
 
}}
 
}}
 +
 +
{{clear}}
  
 
===Title only===
 
===Title only===
{{Historylink
+
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>/sandbox
 +
|title = Sample Title
 +
}}</nowiki></code>
 +
 
 +
{{{{BASEPAGENAME}}/sandbox
 
|title = Sample Title
 
|title = Sample Title
 
}}
 
}}
 +
 +
{{clear}}
  
 
===Article ID only===
 
===Article ID only===
{{Historylink
+
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>/sandbox
 +
|article = 9999
 +
}}</nowiki></code>
 +
 
 +
{{{{BASEPAGENAME}}/sandbox
 
|article = 9999
 
|article = 9999
 
}}
 
}}
 +
 +
{{clear}}
  
 
===Author only===
 
===Author only===
{{Historylink
+
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>/sandbox
 +
|author = John Doe
 +
}}</nowiki></code>
 +
 
 +
{{{{BASEPAGENAME}}/sandbox
 
|author = John Doe
 
|author = John Doe
 
}}
 
}}
 +
 +
{{clear}}
  
 
===Date only===
 
===Date only===
{{Historylink
+
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>/sandbox
 +
|date = January 1, 1901
 +
}}</nowiki></code>
 +
 
 +
{{{{BASEPAGENAME}}/sandbox
 
|date = January 1, 1901
 
|date = January 1, 1901
 
}}
 
}}
 +
 +
{{clear}}

Revision as of 20:56, 9 November 2010

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 }}

Essay #9999, HistoryLink


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/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 }}

Essay #9999, HistoryLink


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