Difference between revisions of "User:Fbstj/testing/page-prop"
Jump to navigation
Jump to search
(test page for page-property tag) |
m (+between tags example) |
||
Line 28: | Line 28: | ||
; <code>no-page="<nowiki>{{{no-page|?}}}</nowiki>"</code> |
; <code>no-page="<nowiki>{{{no-page|?}}}</nowiki>"</code> |
||
: <code><page-property key="cite-date" page="Cite:Arcanum-1234" no-page="{{{no-page|?}}}" /></code> |
: <code><page-property key="cite-date" page="Cite:Arcanum-1234" no-page="{{{no-page|?}}}" /></code> |
||
+ | |||
+ | ; between tags: <code><nowiki>[[{{{page}}}]]: {{#time: F Y| {{{cite-date}}} }}</nowiki></code> |
||
+ | : <page-property key="cite-date" page="Cite: Arcanum-6737">[[{{{page}}}]]: {{#time: F Y| {{{cite-date}}} }}</page-property> |
Revision as of 21:14, 7 July 2018
Testing the <page-property />
tag
- empty
ERROR: no key passed
- non-empty
ERROR: no key passed
- only-key
ERROR: no page passed
- only-page
ERROR: no key passed
demonstrate both literal key and page
- Cite:Arcanum-6737
2014-03-22
demonstrate template substitution of page attr
{{{page|Cite:Arcanum-6737}}}
2014-03-22
demonstrate template substitution of key attr
- Cite:Arcanum-6737 (with
key="{{{key|cite-date}}}"
2014-03-22
demonstrate page with space in title
- Cite: Arcanum-6737
2014-03-22
demonstrate non-existent key on good page
- non-existent key
ERROR: page 'Cite: Arcanum-6737' has no key 'bad-key' set
demonstrate literal no-key attr
no-value="NO VALUE"
NO VALUE
demonstrate template substitution of no-key attr
no-value="{{{no-value|?}}}"
?
demonstrate non-existent page
- Cite:Arcanum-1234
2012-09-27
demonstrate literal no-page attr
no-page="NO PAGE"
2012-09-27
demonstrate template substitution of no-page attr
no-page="{{{no-page|?}}}"
2012-09-27
- between tags
[[{{{page}}}]]: {{#time: F Y| {{{cite-date}}} }}
- Cite: Arcanum-6737: March 2014