Permanently protected template

Difference between revisions of "Template:OCG-TCG card image"

From Yugipedia
Jump to: navigation, search
(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))
(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 />According to 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.
+
       | 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 />According to 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.
+
       | 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

  1. Cite error: Invalid <ref> tag; no text was provided for refs named {{{rarity}}}
  2. [[#cite_ref-'"`UNIQ--ref-00000001-QINU`"'_2-0|↑]] Cite error: Invalid <ref> tag; no text was provided for refs named [1]