Difference between revisions of "Template:OCG-TCG card image"
(The region should never be the last item, supposedly; so this should make sure it's not confused with a set, for all cases.) |
Dinoguy1000 (talk | contribs) (stub in DDM support) |
||
Line 77: | Line 77: | ||
}}{{ #vardefine: $para_release | {{ uc: {{{release}}} }} | }}{{ #vardefine: $para_release | {{ uc: {{{release}}} }} | ||
}}{{ #vardefine: $para_release | {{ #switch: {{ #var: $para_release }} | }}{{ #vardefine: $para_release | {{ #switch: {{ #var: $para_release }} | ||
− | | OP | GC | CT | RP | VG | SAMPLE = {{ #var: $para_release }} | + | | OP | GC | CT | RP | VG | DDM | SAMPLE = {{ #var: $para_release }} |
| OSP = CT | | OSP = CT | ||
| ANIME | MANGA = {{ ucfirst: {{ lc: {{ #var: $para_release }} }} }} | | ANIME | MANGA = {{ ucfirst: {{ lc: {{ #var: $para_release }} }} }} | ||
| #default = {{ #switch: {{ #var: $para_edition }} | | #default = {{ #switch: {{ #var: $para_edition }} | ||
− | | OP | GC | CT | RP | VG | SAMPLE = {{ #var: $para_edition }} | + | | OP | GC | CT | RP | VG | DDM | SAMPLE = {{ #var: $para_edition }} |
| OSP = CT | | OSP = CT | ||
| ANIME | MANGA = {{ ucfirst: {{ lc: {{ #var: $para_edition }} }} }} | | ANIME | MANGA = {{ ucfirst: {{ lc: {{ #var: $para_edition }} }} }} | ||
Line 88: | Line 88: | ||
}}{{ #vardefine: $para_release | {{ #var: $para_release | {{ #var: $fn_release }} }} | }}{{ #vardefine: $para_release | {{ #var: $para_release | {{ #var: $fn_release }} }} | ||
}}{{ #vardefine: $para_release_full | {{ #switch: {{ #var: $para_release }} | }}{{ #vardefine: $para_release_full | {{ #switch: {{ #var: $para_release }} | ||
− | | OP = Official Proxy | + | | OP = Official Proxy |
− | | GC = Giant Card | + | | GC = Giant Card |
− | | CT = Case Topper | + | | CT = Case Topper |
− | | RP = Reprint | + | | RP = Reprint |
− | | VG = video game | + | | VG = video game |
+ | | DDM = Dungeon Dice Monsters | ||
| SAMPLE | Anime | Manga = {{ #var: $para_release }} | | SAMPLE | Anime | Manga = {{ #var: $para_release }} | ||
}} | }} | ||
Line 157: | Line 158: | ||
}}{{ #if: {{{poor|}}} | {{Poor quality|{{ #ifexpr: {{ #len: {{{poor}}} }} > 4 | {{{poor}}} | }}}} | }}{{ #if: {{{poor|}}} | {{Poor quality|{{ #ifexpr: {{ #len: {{{poor}}} }} > 4 | {{{poor}}} | }}}} | ||
}}{{ #if: {{{watermark|}}} | {{Watermark}} }}{{imbox | }}{{ #if: {{{watermark|}}} | {{Watermark}} }}{{imbox | ||
− | | text = This is a {{ #ifeq: {{ #var: $para_alt }} | NC | non- }}card image for the {{ #if: {{ #var: $para_rarity_full }} | [[{{ #var: $para_rarity_full }}]] }} {{ #if: {{ #var: $para_edition_full }} | [[{{ #var: $para_edition_full }}]] }} {{ #if: {{ #var: $para_release_full }} | {{ #switch: {{ #var: $para_release }} | Anime | Manga = {{ #var: $para_release_full }} | VG = | [[{{ #var: $para_release_full }}]] }} }} card "[[{{ #var: $para_page_name }}|{{ #var: $para_pretty_name }}]]" from the {{ #ifeq: {{ #var: $para_release }} | VG | [[Gallery of {{vg|{{ #var: $para_set }}|full=1}} cards|{{ #var: $para_region_full }}]] release of {{ #ifeq: {{ #var: $para_release }} | VG | the video game }} ''[[{{vg|{{ #var: $para_set }}|full=1|link=1}}|{{vg|{{ #var: $para_set }}|full=1}}]]''. | [[Set Card Galleries:{{ #var: $para_pretty_set }} ({{ #var: $para_ocg_tcg }}-{{ #var: $para_region }}{{ #switch: {{ #var: $para_region }} | JP | JA | TC = | #default = {{ #if: {{ #var: $para_edition_abbr }} | -{{ #var: $para_edition_abbr }} | {{ #if: {{ #var: $para_release }} | -1E }} }} }})|{{ #var: $para_region_full }}]] print of ''[[{{ #var: $para_set_full }}|{{ #var: $para_pretty_set }}]]''. }} You can also view a [[Special:Prefixindex/File:{{ #var: $para_url_name }}|list]] {{ #ifeq: {{ #var: $para_url_name }} | {{ #var: $para_old_url_name }} || <span class="cardimageoldname" style="display: none;">([[Special:Prefixindex/File:{{ #var: $para_old_url_name }}|old]])</span> }} {{ #ifexist: Card Gallery:{{ #var: $para_name }} | and [[Card Gallery:{{ #var: $para_name }}|gallery]] }} of all images uploaded for "{{ #var: $para_pretty_name }}". | + | | text = This is a {{ #ifeq: {{ #var: $para_alt }} | NC | non- }}card image for the {{ #if: {{ #var: $para_rarity_full }} | [[{{ #var: $para_rarity_full }}]] }} {{ #if: {{ #var: $para_edition_full }} | [[{{ #var: $para_edition_full }}]] }} {{ #if: {{ #var: $para_release_full }} | {{ #switch: {{ #var: $para_release }} | Anime | Manga = {{ #var: $para_release_full }} | VG | DDM = | [[{{ #var: $para_release_full }}]] }} }} card "[[{{ #var: $para_page_name }}|{{ #var: $para_pretty_name }}]]" from the {{ #ifeq: {{ #var: $para_release }} | VG | [[Gallery of {{vg|{{ #var: $para_set }}|full=1}} cards|{{ #var: $para_region_full }}]] release of {{ #ifeq: {{ #var: $para_release }} | VG | the video game }} ''[[{{vg|{{ #var: $para_set }}|full=1|link=1}}|{{vg|{{ #var: $para_set }}|full=1}}]]''. | [[Set Card Galleries:{{ #var: $para_pretty_set }} ({{ #var: $para_ocg_tcg }}-{{ #var: $para_region }}{{ #switch: {{ #var: $para_region }} | JP | JA | TC = | #default = {{ #if: {{ #var: $para_edition_abbr }} | -{{ #var: $para_edition_abbr }} | {{ #if: {{ #var: $para_release }} | -1E }} }} }})|{{ #var: $para_region_full }}]] print of ''[[{{ #var: $para_set_full }}|{{ #var: $para_pretty_set }}]]''. }} You can also view a [[Special:Prefixindex/File:{{ #var: $para_url_name }}|list]] {{ #ifeq: {{ #var: $para_url_name }} | {{ #var: $para_old_url_name }} || <span class="cardimageoldname" style="display: none;">([[Special:Prefixindex/File:{{ #var: $para_old_url_name }}|old]])</span> }} {{ #ifexist: Card Gallery:{{ #var: $para_name }} | and [[Card Gallery:{{ #var: $para_name }}|gallery]] }} of all images uploaded for "{{ #var: $para_pretty_name }}". |
}} | }} | ||
{{ #ifeq: {{ #var: $ns }} | {{NS:6}} | | {{ #ifeq: {{ #var: $ns }} | {{NS:6}} | |
Revision as of 03:08, 2 January 2017
This image is named incorrectly, and must be renamed to comply with the image policy. The image should be located at [[:File:Jinzo7-OCG--[1].png]]. Please do not reupload this image; a mover or admin will be along shortly to move it to the correct name. Movers and administrators: What links here • Image history • Rename image |
This is a card image for the [[[[#cite_note-'"`UNIQ--ref-00000001-QINU`"'-2|[2]]]]] card "Jinzo #7" from the [[Set Card Galleries:Template:Set (-)|]] print of [[Template:Set|Template:Set]]. You can also view a list and gallery of all images uploaded for "Jinzo #7". |
{{OCG-TCG card image}} displays information about card images, including links to the card, set, rarity, and edition, as well as links to a prefix search for all images of that card and to the card's gallery page, if one exists. It also adds {{Fair use}} to card images, and in the future, may add categories as well.
This template is ready to use now, and should be added to all new card images as they are uploaded, if they are of a TCG or OCG card. While its functionality may change in the future, its usage will not, so there's no need to worry about current transclusions needing to be updated in the future.
Usage
{{OCG-TCG card image | name = | set = | region = | rarity = | edition = | release = | alt = }}
name
- The English name of the card.
set
- The set prefix as displayed in the card's set number (e.g.
TAEV
from "TAEV-EN040"). region
- The region the card is for. The template can accept either the two-letter region code (
JP
) or the region name (Japanese
). If there is no region code on the card, list it asNA
(for "North American region"). rarity
- The card's rarity. The template can accept either the rarity abbreviation (
ScR
) or the full name of the rarity (Secret Rare
). edition
- Whether the card is 1st (
1E
), Unlimited (UE
), or Limited (LE
) Edition. This parameter should also be used for Duel Terminal Edition (DT
) and Strategy (SC
) cards. release
- Whether the card is an Official Proxy (
OP
), Giant Card (GC
), Case Topper (CT
), or Replica (RP
). These values can also be used with theedition
parameter, though usingrelease
is preferred. alt
- Whether this is an alternate artwork version of the card. This parameter should generally not be needed.
Unused parameters should be deleted.
Maintenance
This template helps automate maintenance in a few ways:
- If one or more required parameters isn't supplied, the template outputs an error message with the name of the parameter(s). This means you can simply add "{{OCG-TCG card image}}" to an image and click "Preview" to get a list of parameters.
- The template checks to make sure that the value in the "name" parameter points to an actual article, and if not, notifies that the value should be checked. It then checks to make sure the value matches the article's actual name, and notifies if the match fails (this is useful when moving pages around).
- When correctly filled out, this template automatically identifies, tags, and categorizes card images that should be renamed to conform with the image policy, saving the tagger (and the administrator renaming the image) some work, since {{Rename media}} doesn't have to be added to or removed from the image.
- The template automatically detects non-PNG images and recommends that a PNG version be uploaded and the non-PNG version be tagged for deletion, as recommended by the image policy. This message can be ignored if a PNG version is not known to exist, and the user doesn't know how to create one.
See also
- {{Card image name}}
- {{R}}
- {{Region}}, {{Rg}}, and {{Rgo}}