Template:BibliographyMagazine: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
Rexidos (talk | contribs)
No edit summary
adding display example
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>A bibliography helper for [[:Template:Bibliography]] for magazine entries. You won't need to use this directly.
<noinclude>A bibliography helper for [[:Template:Bibliography]] for magazine entries. You won't need to use this directly.
Instead, to create a bibliography entry for a magazine entry, use this format:
<pre>{{subst:bib|Dragon #100|firstname=Robert|lastname=Schroeck|article=The City Beyond the Gate}}</pre>
Which displays as
* {{BibliographyMagazine|magazine=Dragon|issue=100|article=The City Beyond the Gate|firstname=Robert|lastname=Schroeck|coauthors=|date=Aug 1985}}


==Usage==
==Usage==
 
* '''Magazine:''' Dragon, Dungeon, LGJ, or Polyhedron.
* '''Magazine:''' Dragon, Dungeon, or Polyhedron.
* '''Issue:''' Number. Polyhedron also has "Introductory issue" and "GC1".
* '''Issue:''' Number. Polyhedron also has "Introductory issue" and "GC1".
* '''Article:''' Article title.
* '''Article:''' Article title.
* '''Firstname:''' Author's first name.
* '''Firstname:''' Author's first name.
* '''Lastname:''' Author's last name. Multiple contributors are not supported.
* '''Lastname:''' Author's last name.
* '''Coauthors:''' Any co-authors other than the primary author, separated by commas, and wikilinked as needed; e.g. "<nowiki>[[Erik Mona]], [[Sean K. Reynolds]], and [[Gary Holian]]</nowiki>".
* '''Date:''' Year or year/month of magazine issue.
* '''Date:''' Year or year/month of magazine issue.
</noinclude><includeonly>{{#if:{{{lastname|}}}{{{firstname|}}}|[[{{{firstname|}}} {{{lastname|}}}|{{{lastname|}}}, {{{firstname|}}}]]|Author unknown}}. {{#if:{{{article|}}}|"{{{article|}}}".}} ''{{#switch:{{{magazine|}}}
</noinclude><includeonly>{{#if:{{{lastname|}}}{{{firstname|}}}|[[{{{firstname|}}} {{{lastname|}}}|{{{lastname|}}}, {{{firstname|}}}]]|{{#switch:{{{magazine|}}}
| LGJ | Living Greyhawk Journal = [[Erik Mona|Mona, Erik]], ed
| Author unspecified.
}}}}{{#if:{{{coauthors|}}}|, {{{coauthors|}}}}}. {{#if:{{{article|}}}|"{{{article|}}}".}} ''{{#switch:{{{magazine|}}}
| Dragon = [[Dragon (magazine)|Dragon]]
| Dragon = [[Dragon (magazine)|Dragon]]
| Dungeon = [[Dungeon]]
| Dungeon = [[Dungeon]]
| Polyhedron = [[Polyhedron]]
| Polyhedron = [[Polyhedron]]
| LGJ | Living Greyhawk Journal = [[Living Greyhawk Journal]]
| error
| error
}} #{{{issue|}}}''. {{#switch:{{{magazine|}}}
}} #{{{issue|}}}''. {{#switch:{{{magazine|}}}
| Dragon = {{#ifexpr:{{{issue|}}}<240|Lake Geneva, WI: TSR|{{#ifexpr:{{{issue|}}}<209|Renton, WA: Wizards of the Coast|{{#ifexpr:{{{issue|}}}<466|Bellvue, WA: Paizo Publishing|Renton, WA: Wizards of the Coast}}}}}}
| Dragon = {{#if:{{#pos:{{{issue|}}}|A|0}}|{{#switch:{{{issue|}}}
| Dungeon = {{#ifexpr:{{{issue|}}}<64|Lake Geneva, WI: TSR|{{#ifexpr:{{{issue|}}}<94|Renton, WA: Wizards of the Coast|{{#ifexpr:{{{issue|}}}<151|Bellvue, WA: Paizo Publishing|Renton, WA: Wizards of the Coast}}}}}}
| #A1 | #A1996 | #A96 | #Annual 1 | #Annual 1996 | A1 | A1996 | A96 | Annual 1 | Annual 1996 = Lake Geneva, WI: TSR
| Polyhedron = {{#ifeq:{{{issue|}}}|Introductory issue|Lake Geneva, WI: TSR|{{#ifeq:{{{issue|}}}|GC1|Lake Geneva, WI: TSR|{{#ifexpr:{{{issue|}}}<126|Lake Geneva, WI: TSR|{{#ifexpr:{{{issue|}}}<126|Renton, WA: Wizards of the Coast|{{#ifexpr:{{{issue|}}}<153|Bellvue, WA: Paizo Publishing|Renton, WA: Wizards of the Coast}}}}}}}}}}
| #A2 | #A1997 | #A97 | #Annual 2 | #Annual 1997 | A2 | A1997 | A97 | Annual 2 | Annual 1997 = Renton, WA: TSR
| #A3 | #A1998 | #A98 | #Annual 3 | #Annual 1998 | A3 | A1998 | A98 | Annual 3 | Annual 1998 = Renton, WA: TSR
| #A4 | #A1999 | #A99 | #Annual 4 | #Annual 1999 | A4 | A1999 | A99 | Annual 4 | Annual 1999 = Renton, WA: Wizards of the Coast
| #A5 | #A2000 | #A00 | #Annual 5 | #Annual 2000 | A5 | A2000 | A00 | Annual 5 | Annual 2000 = Renton, WA: Wizards of the Coast
| #A6 | #A2001 | #A01 | #Annual 6 | #Annual 2001 | A6 | A2001 | A01 | Annual 6 | Annual 2001 = Renton, WA: Wizards of the Coast
| #A7 | #A2009 | #A09 | #Annual 6 | #Annual 2009 | A7 | A2009 | A09 | Annual 7 | Annual 2009 = Renton, WA: Wizards of the Coast
}}|{{#ifexpr:{{{issue|}}}<240|Lake Geneva, WI: TSR|{{#ifexpr:{{{issue|}}}<298|Renton, WA: Wizards of the Coast|{{#ifexpr:{{{issue|}}}<361|Bellvue, WA: Paizo Publishing|Renton, WA: Wizards of the Coast}}}}}}}}
| Dungeon = {{#ifexpr:{{{issue|}}}<64|Lake Geneva, WI: TSR|{{#ifexpr:{{{issue|}}}<94|Lake Geneva, WI: TSR|{{#ifexpr:{{{issue|}}}<151|Bellvue, WA: Paizo Publishing|Renton, WA: Wizards of the Coast}}}}}}
| Polyhedron = {{#ifeq:{{{issue|}}}|Introductory issue|Lake Geneva, WI: TSR|{{#ifeq:{{{issue|}}}|GC1|Lake Geneva, WI: TSR|{{#ifexpr:{{{issue|}}}<126|Lake Geneva, WI: TSR|{{#ifexpr:{{{issue|}}}<126|Renton, WA: Wizards of the Coast|{{#ifexpr:{{{issue|}}}<153|Renton, WA: Wizards of the Coast|Bellvue, WA: Paizo Publishing}}}}}}}}}}
| LGJ | Living Greyhawk Journal = Renton, WA: Wizards of the Coast|Bellvue, WA: Paizo Publishing
| error
| error
}}, {{{date|}}}.</includeonly>
}}, {{{date|}}}.</includeonly>

Latest revision as of 16:32, 10 March 2024

A bibliography helper for Template:Bibliography for magazine entries. You won't need to use this directly.

Instead, to create a bibliography entry for a magazine entry, use this format:

{{subst:bib|Dragon #100|firstname=Robert|lastname=Schroeck|article=The City Beyond the Gate}}

Which displays as

Usage

  • Magazine: Dragon, Dungeon, LGJ, or Polyhedron.
  • Issue: Number. Polyhedron also has "Introductory issue" and "GC1".
  • Article: Article title.
  • Firstname: Author's first name.
  • Lastname: Author's last name.
  • Coauthors: Any co-authors other than the primary author, separated by commas, and wikilinked as needed; e.g. "[[Erik Mona]], [[Sean K. Reynolds]], and [[Gary Holian]]".
  • Date: Year or year/month of magazine issue.