Template:BibliographyMagazine: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
Rexidos (talk | contribs)
Co-authors
adding display example
 
(10 intermediate revisions by 2 users not shown)
Line 4: Line 4:


<pre>{{subst:bib|Dragon #100|firstname=Robert|lastname=Schroeck|article=The City Beyond the Gate}}</pre>
<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==
Line 10: Line 12:
* '''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. "[[Erik Mona]], [[Sean K. Reynolds]], and [[Gary Holian]]".
* '''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|}}}]]|{{#switch:{{{magazine|}}}
</noinclude><includeonly>{{#if:{{{lastname|}}}{{{firstname|}}}|[[{{{firstname|}}} {{{lastname|}}}|{{{lastname|}}}, {{{firstname|}}}]]|{{#switch:{{{magazine|}}}
Line 23: Line 25:
| error
| error
}} #{{{issue|}}}''. {{#switch:{{{magazine|}}}
}} #{{{issue|}}}''. {{#switch:{{{magazine|}}}
| Dragon = {{#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}}}}}}
| Dragon = {{#if:{{#pos:{{{issue|}}}|A|0}}|{{#switch:{{{issue|}}}
| #A1 | #A1996 | #A96 | #Annual 1 | #Annual 1996 | A1 | A1996 | A96 | Annual 1 | Annual 1996 = Lake Geneva, WI: TSR
| #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}}}}}}
| 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}}}}}}}}}}
| 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}}}}}}}}}}

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.