Difference between revisions of "Template:OCG-TCG card image"
Dinoguy1000 (talk | contribs) (let's pretend nothing uses any of these alternate parameter names any more (some stuff probably does, especially in the case of "lang", but it shouldn't matter since we're getting info from the image name now)) |
Dinoguy1000 (talk | contribs) (minor reword; (hopefully) fix handling of cases where a card page name has parentheses but the page hasn't been created yet) |
||
Line 46: | Line 46: | ||
}}{{ #vardefine: $para_pretty_name | {{Card name|{{ #var: $para_name }}}}<!-- name as it will be displayed; should include e.g. "#" and exclude "(stuff)" --> | }}{{ #vardefine: $para_pretty_name | {{Card name|{{ #var: $para_name }}}}<!-- name as it will be displayed; should include e.g. "#" and exclude "(stuff)" --> | ||
}}{{ #vardefine: $has_article | {{ #var: $para_pretty_name }}<!-- card has a page --> | }}{{ #vardefine: $has_article | {{ #var: $para_pretty_name }}<!-- card has a page --> | ||
− | }}{{ #vardefine: $para_pretty_name | {{ #var: $para_pretty_name | {{ #var: $para_name }} }}<!-- support redlinked names --> | + | }}{{ #vardefine: $para_pretty_name | {{ #var: $para_pretty_name | {{ #explode: {{ #var: $para_name }} | ( }} }}<!-- support redlinked names --> |
}}{{ #vardefine: $para_page_name | {{ #if: {{ #var: $smw }} | {{ #show: {{ #var: $para_name }} |?Page name }} | {{ #var: $para_name }} }}<!-- check that $para_name is the actual page name and not e.g. a redirect; if so $para_name and $para_page_name will be the same --> | }}{{ #vardefine: $para_page_name | {{ #if: {{ #var: $smw }} | {{ #show: {{ #var: $para_name }} |?Page name }} | {{ #var: $para_name }} }}<!-- check that $para_name is the actual page name and not e.g. a redirect; if so $para_name and $para_page_name will be the same --> | ||
}}{{ #vardefine: $para_page_name | {{ #var: $para_page_name | {{ #var: $para_name }} }}<!-- support redlinked names --> | }}{{ #vardefine: $para_page_name | {{ #var: $para_page_name | {{ #var: $para_name }} }}<!-- support redlinked names --> | ||
Line 146: | Line 146: | ||
| {{imbox | | {{imbox | ||
| type = style | | type = style | ||
− | | text = '''There is a [[wikipedia:Portable Network Graphics|PNG]] version of this image available.'''<br /> | + | | text = '''There is a [[wikipedia:Portable Network Graphics|PNG]] version of this image available.'''<br />Per the [[Yu-Gi-Oh!:Image policy|image policy]], PNG images are preferred for card images. There is a PNG version of this image at [[:File:{{ #var: $correctimgname }}.png]], which should be used instead of this file. Please switch all [[Special:Whatlinkshere/{{FULLPAGENAMEE}}|uses]] of this image to the PNG version and mark this one for deletion. |
}}{{ #ifeq: {{ #var: $ns }} | {{NS:6}}<!-- only categorize images --> | }}{{ #ifeq: {{ #var: $ns }} | {{NS:6}}<!-- only categorize images --> | ||
| [[Category:Card images with an available PNG version]] | | [[Category:Card images with an available PNG version]] | ||
Line 152: | Line 152: | ||
| {{imbox | | {{imbox | ||
| type = style | | type = style | ||
− | | text = '''This is not a [[wikipedia:Portable Network Graphics|PNG]] image.'''<br /> | + | | text = '''This is not a [[wikipedia:Portable Network Graphics|PNG]] image.'''<br />Per the [[Yu-Gi-Oh!:Image policy|image policy]], PNG images are preferred for card images. If possible, [[Special:Upload/{{ #var: $correctimgname }}.png|upload a PNG version]] of this image and mark this one for deletion. |
}}{{ #ifeq: {{ #var: $ns }} | {{NS:6}}<!-- only categorize images --> | }}{{ #ifeq: {{ #var: $ns }} | {{NS:6}}<!-- only categorize images --> | ||
| [[Category:Non-PNG card images]] | | [[Category:Non-PNG card images]] |
Revision as of 18:38, 23 June 2016
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}}