Difference between revisions of "Template:Country Badge image"

From Project-GC
Jump to: navigation, search
(Creating template for country badges)
 
(Use country for parameter, not 1)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
https://project-gc.com/dimages/badgegen-v4-countrybadge.php?country={{{1|}}}&quality={{{q|D}}}&addons={{{addons|}}}&loop={{{loop|}}}&.png<noinclude>
+
https://project-gc.com/dimages/badgegen-v4-countrybadge.php?country={{{country|}}}&quality={{{q|D}}}&addons={{{addons|}}}&loop={{{loop|}}}&.png<noinclude>
  
Usage:<code><nowiki>{{Badge image|country=country code|q=quality|addons=list|loop=number}}</nowiki></code>
+
Usage:<code><nowiki>{{Country Badge image|country=country code|q=quality|addons=list|loop=number}}</nowiki></code>
  
 
This template creates an image of a given badge. Parameters are as follows:
 
This template creates an image of a given badge. Parameters are as follows:

Latest revision as of 07:52, 28 June 2024

badgegen-v4-countrybadge.php?country=&quality=D&addons=&loop=&.png

Usage:{{Country Badge image|country=country code|q=quality|addons=list|loop=number}}

This template creates an image of a given badge. Parameters are as follows:

  • country - the two letter code of the badge as defined in the image url - e.g. GB. Default is blank.
  • q - the quality, i.e. level, of the badge. Can be B, S, G, P, R, Sa, E or D for Bronze, Silver, etc. Default is D for Diamond.
  • addons - any addons required, separated by commas (no spaces). Default is blank.
  • loop - loop number. Default is blank. Included for completeness as Badgegen does not support looping for country badges.