Malline:CCG

Jedipediasta, vapaasta Tähtien sota-tietosanakirjasta tänään, 24. marraskuuta 2024
Siirry navigaatioonSiirry hakuun


Usage[muokkaa wikitekstiä]

Place the following code on the page and replace "SET NAME", "URL", and "CARD NAME" with the appropriate information.

{{CCG|set=SET NAME|link=URL|cardname=CARD NAME}}

Add |nourl=1 into the template if you want the link to be a normal wikilink. If no |link= is provided, |cardname= will be shown as plain text. If |link= is provided without |cardname=, an error message will be produced instead of the normal output. An error message will also be produced if |set= is not defined.

Add |text= into the template if you want to pipe the set link. In this case, TEXT will be displayed and will link to the article named in |set=.

For backward compatibility, an unnamed parameter can also be used in place of |set=. This is considered deprecated and will produce a hidden tracking category. The ability to use this parameter will eventually be removed, so going forward, new usages of the template should use an explicit |set= instead.

Note that clicking on the card link in the template will typically produce an "access denied" error message on the target website. This can usually be bypassed by setting focus on your browser's address bar (e.g. by clicking on it) and either hitting the "Enter" key or clicking "Go".

Examples[muokkaa wikitekstiä]

With URL in |link= field:

SWCCGsmall.jpg Star Wars Customizable Card GameA New Hope Limited (Kortti: Victory-class Star Destroyer)

{{CCG|set=A New Hope Limited|link=ANewHope-Dark/large/victoryclassstardestroyer.gif|cardname=Victory-class Star Destroyer}}

Without internal page name in |link= field, and |nourl=1 added to template:

SWCCGsmall.jpg Star Wars Customizable Card GameA New Hope Limited (Kortti: Victory-class Star Destroyer)

{{CCG|set=A New Hope Limited|link=Victory-class Star Destroyer|cardname=Victory-class Star Destroyer|nourl=1}}

Without any link:

SWCCGsmall.jpg Star Wars Customizable Card GameA New Hope Limited (Kortti: Victory-class Star Destroyer)

{{CCG|set=A New Hope Limited|link=|cardname=Victory-class Star Destroyer}}