Difference between revisions of "Template:BeerLabel"

From Pumping Station One
Jump to navigation Jump to search
(Created page with '<noinclude> ==Fields== ==={{{brewmaster}}}=== The person in charge of the brew. There can be only one brewmaster. * <div style="font-family:monospace;">brewmaster</div> ==={…')
 
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 +
 +
This is totally a ripoff of [[Template:EquipmentLabel]].
 +
 +
==Problems==
 +
 +
* Need to make QR code work with a cylinder, or do barcode: http://stackoverflow.com/questions/11591850/qr-code-on-non-flat-surface-projection-software - not sure.
 +
* Need to make the blurb wrap.
 +
* Need to handle non-existence of team.
  
 
==Fields==
 
==Fields==
Line 36: Line 44:
  
 
<html>
 
<html>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="550px" height="250px" viewBox="0 0 550 175" enable-background="new 0 0 550 175" xml:space="preserve" style="border:2px solid #000000;">
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="550px" height="250px" viewBox="0 0 550 175" enable-background="new 0 0 530 175" xml:space="preserve" style="border:2px solid #000000;">
  
<g id="qr">
+
<g id="qr" transform="translate(0, -25)">
 
<image width="150" height="150" xlink:href="http://chart.apis.google.com/chart?chs=150x150&cht=qr&chld=H%7C0&chl=http://wiki.pumpingstationone.org/</html>{{FULLPAGENAMEE}}<html>&.png" />
 
<image width="150" height="150" xlink:href="http://chart.apis.google.com/chart?chs=150x150&cht=qr&chld=H%7C0&chl=http://wiki.pumpingstationone.org/</html>{{FULLPAGENAMEE}}<html>&.png" />
 
</g>
 
</g>
  
<g id="psonelogo" transform="translate(380,30)">
+
<g id="psonelogo" transform="scale(1.29) translate(310,-15)">
 
<path d="M91.96,69.331c-1.228-0.708-2.618-0.859-3.892-0.546l0.005-0.009c0,0-1.667,0.637-1.943-2.097
 
<path d="M91.96,69.331c-1.228-0.708-2.618-0.859-3.892-0.546l0.005-0.009c0,0-1.667,0.637-1.943-2.097
 
c0.086-3.432-1.662-6.814-4.851-8.652c-2.436-1.407-5.226-1.637-7.719-0.872c0,0-0.008,0.005-0.022,0.01
 
c0.086-3.432-1.662-6.814-4.851-8.652c-2.436-1.407-5.226-1.637-7.719-0.872c0,0-0.008,0.005-0.022,0.01
Line 90: Line 98:
 
</g>
 
</g>
  
<g id="title" transform="translate(165,20)">
+
<g id="beer_name" transform="translate(150,0)">
<text font-family="Arial,Helvetica,sans-serif" font-size="18" font-weight="bold"></html>{{FULLPAGENAME}}<html></text>
+
<text font-family="Arial,Helvetica,sans-serif" font-size="20" font-weight="bold"></html>{{{name}}}<html></text>
 +
</g>
 +
 
 +
<g id="beer_abv" transform="translate(150,43)">
 +
<text font-family="Arial,Helvetica,sans-serif" font-size="12" font-weight="bold"></html>ABV: {{{abv_percentage}}}%<html></text>
 
</g>
 
</g>
  
</html>
+
<g id="beer_brewmaster" transform="translate(150,63)">
<html>
+
<text font-family="Arial,Helvetica,sans-serif" font-size="12" font-weight="bold"></html>Brewmaster: {{{brewmaster}}}<html></text>
 +
</g>
 +
 
 +
<g id="beer_team" transform="translate(150,83)">
 +
<text font-family="Arial,Helvetica,sans-serif" font-size="10" font-weight="bold"></html>Team: {{{team}}}<html></text>
 +
</g>
 +
 
 +
<g id="beer_blurb" transform="translate(17,133)">
 +
<text font-family="Arial,Helvetica,sans-serif" font-size="8" font-weight="bold"></html>{{{blurb}}}<html></text>
 +
</g>
  
<g id="url" transform="translate(6,167)">
+
<g id="beer_url" transform="translate(6,200)">
 
<text font-family="Arial,Helvetica,sans-serif" font-size="12"></html>{{fullurl:{{FULLPAGENAMEE}}}}<html></text>
 
<text font-family="Arial,Helvetica,sans-serif" font-size="12"></html>{{fullurl:{{FULLPAGENAMEE}}}}<html></text>
 
</g>
 
</g>

Latest revision as of 23:05, 3 March 2013


This is totally a ripoff of Template:EquipmentLabel.

Problems

Fields

{{{brewmaster}}}

The person in charge of the brew. There can be only one brewmaster.

  • brewmaster

{{{abv_percentage}}}

The percentage alcohol. Doesn't need a percent sign. A hyphenated range is fine. Only provide as many significant digits as you have.

  • abv_percentage

{{{team}}}

Those who really helped out during the brew. Up to the brewmaster to decide who to put here; but don't be a dick about it and skip people who mopped up after you and fetched things for 5 hours. They helped too. Comma separated, spaces. If not provided, you're saying you went it alone.

  • team

{{{name}}}

The name of the beer.

  • brewmaster

{{{blurb}}}

A short paragraph describing the beer; or just a little story. Suggestions: what's this guy taste like, what were the challenges and inspirations, etc.

  • brewmaster

Label

{{{name}}} ABV: {{{abv_percentage}}}% Brewmaster: {{{brewmaster}}} Team: {{{team}}} {{{blurb}}} https://wiki.pumpingstationone.org/wiki/Template:BeerLabel