Difference between revisions of "Template:Bgg par"
Jump to navigation
Jump to search
imported>AGK m (Changed protection level of Template:Bgg par: Highly-visible template (between 700 and 1200 transclusions) ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite))) |
imported>Elegie (Use HTTPS for the generated BoardGameGeek link(s) in order to provide increased user privacy/security) |
||
| Line 1: | Line 1: | ||
| − | [ | + | [https://www.boardgamegeek.com/{{#ifeq:{{{section1|{{{section|{{{1}}}}}}}}}|search|quicksearch.php3?exact=0&search=|{{{section1|{{{section|{{{1}}}}}}}}}/}}{{{id1|{{{id|{{{2}}}}}}}}} {{{name1|{{{name|{{{3|{{PAGENAME}}}}}}}}}}}]{{#if:{{{id2|{{{4|}}}}}}|{{#if:{{{name2|{{{5|}}}}}}|{{#if:{{{id3|{{{6|}}}}}}|{{#if:{{{name3|{{{7|}}}}}}|,|}}|}}|}}|}} {{#if:{{{id2|{{{4|}}}}}}|{{#if:{{{name2|{{{5|}}}}}}|{{#if:{{{id3|{{{6|}}}}}}{{{name3|{{{7|}}}}}}||and}} [https://www.boardgamegeek.com/{{#ifeq:{{{section2|{{{section|{{{1}}}}}}}}}|search|quicksearch.php3?exact=0&search=|{{{section2|{{{section|{{{1}}}}}}}}}/}}{{{id2|{{{4}}}}}} {{{name2|{{{5}}}}}}]|}}|}} {{#if:{{{id3|{{{6|}}}}}}|{{#if:{{{name3|{{{7|}}}}}}|and [https://www.boardgamegeek.com/{{#ifeq:{{{section3|{{{section|{{{1}}}}}}}}}|search|quicksearch.php3?exact=0&search=|{{{section3|{{{section|{{{1}}}}}}}}}/}}{{{id3|{{{6}}}}}} {{{name3|{{{7}}}}}}]|}}|}} at {{{dest|[[BoardGameGeek]]}}}<noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 07:12, 3 July 2017
Template:Tocright This template is used by the other BoardGameGeek external link templates:
- {{bgg title}}
- {{BoardGameGeek designer}}
- {{BoardGameGeek publisher}}
- {{BoardGameGeek wiki}}
Contents
Usage
Single link
Unnamed parameters:
{{Bgg par|SECTION|ID}}{{Bgg par|SECTION|ID|NAME}}
Named parameters:
{{Bgg par|section=SECTION|id=ID}}{{Bgg par|section=SECTION|id=ID|name=NAME}}
Multiple links using same section
Unnamed parameters:
{{Bgg par|SECTION|ID1|NAME1|ID2|NAME2}}{{Bgg par|SECTION|ID1|NAME1|ID2|NAME2|ID3|NAME3}}
Named parameters:
{{Bgg par|section=SECTION|id1=ID|name1=NAME|id2=ID2|name2=NAME2}}{{Bgg par|section=SECTION|id1=ID1|name1=NAME1|id2=ID2|name2=NAME2id3=ID3|name3=NAME3}}
Multiple links using different section
Named parameters:
{{Bgg par|section1=SECTION1|id1=ID1|name1=NAME1|section2=SECTION2|id2=ID2|name2=NAME2}}{{Bgg par|section1=SECTION1|id1=ID1|name1=NAME1|section2=SECTION2|id2=ID2|name2=NAME2|section3=SECTION3|id3=ID3}}
Examples
Single link
Usage with article name as link text:
* {{Bgg par|boardgame|2557}}* {{Bgg par|section=boardgame|id=2557}}
Output:
Usage with name parameter as link text:
* {{Bgg par|boardgame|2557|Castle Risk}}* {{Bgg par|section=boardgame|id=2557|name=Castle Risk}}
Output:
Multiple links using same section
Usage with two links:
* {{Bgg par|boardgame|54|Tikal|855|Java}}* {{Bgg par|section=boardgame|id1=54|name1=Tikal|id2=855|name2=Java}}
Output:
- Tikal and Java at BoardGameGeek
- Tikal and Java at BoardGameGeek
Usage with three links:
* {{Bgg par|boardgame|54|Tikal|855|Java|2955|Mexica}}* {{Bgg par|section=boardgame|id1=54|name1=Tikal|id2=855|name2=Java|id3=2955|name3=Mexica}}
Output:
- Tikal, Java and Mexica at BoardGameGeek
- Tikal, Java and Mexica at BoardGameGeek
Multiple links using different section
Usage with three links:
* {{Bgg par|section1=boardgamedesigner|id1=11|name1=Klaus Teuber|section2=boardgamepublisher|id2=49|name2=Columbia Games|section3=wiki/page|id3=18xx|name3=18XX}}
Output:
- Klaus Teuber, Columbia Games and 18XX at BoardGameGeek
| The above documentation is transcluded from Template:Bgg par/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |