Template:Cite Pub: Difference between revisions
Jump to navigation
Jump to search
(wip) |
No edit summary |
||
Line 2: | Line 2: | ||
-->{{#if: {{{1|}}}|{{#cargo_query: | -->{{#if: {{{1|}}}|{{#cargo_query: | ||
table = Publication | table = Publication | ||
|fields=_pageName,Author,Publication_Date,Title,Publisher,ISBN10,ISBN13 | |fields=_pageName,Author,Publication_Date,Title,Publisher,ISBN10,ISBN13 | ||
|where=Title="{{{1}}}" | |||
|limit=1 | |limit=1 | ||
|default={{pub|{{{1}}}}} | |||
| | |format=template | ||
}} | |template=Cite Pub/format | ||
| | |more results text= | ||
| | }}}}</includeonly><noinclude>{{Documentation}} | ||
| | |||
}} | |||
[[Category:Publication Templates]] | [[Category:Publication Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 19:09, 11 March 2020
Template documentation (for the above template, sometimes hidden or invisible)
Syntax
{{Cite Pub |Monster Manual (5e)}}
Optional Fields
|pages= <!--page number(s)-->
Example
{{Cite Pub |Monster Manual (5e)}} {{Cite Pub|Monster Manual (5e)|pages=3-7}}
produces:
Error: No field named "ISBN10" found for any of the specified database tables.
Error: No field named "ISBN10" found for any of the specified database tables.
This references the Publication:<Cited Publication> page, so any inconsistencies or errors in that page will need to be corrected.
Visit Template:Cite Pub/doc to edit this text! (How does this work?)