diff options
-rw-r--r-- | .exrc | 8 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | src/templates/-navbar.html.tmpl | 2 | ||||
-rw-r--r-- | src/templates/collecting-vending.html.tmpl | 163 | ||||
-rw-r--r-- | src/templates/collecting.html.tmpl | 76 |
5 files changed, 242 insertions, 10 deletions
@@ -1,9 +1,5 @@ set runtimepath+=contrib/vim -" We make use of this feature, so set this in the environment so that all -" Ex-calls to templ are aware of this -call setenv('TEMPL_EXPERIMENT', 'rawgo') - function s:SaveExcursion(cmd) let l:win = winsaveview() silent execute 'keepjumps %!' .. a:cmd @@ -22,11 +18,9 @@ autocmd FileType go autocmd BufWritePre <buffer> \ call s:SaveExcursion('gofmt -s') autocmd FileType mintage autocmd BufWritePre <buffer> \ call s:SaveExcursion('./mfmt') -autocmd FileType templ autocmd BufWritePre <buffer> - \ call s:SaveExcursion('templ fmt') nnoremap <silent> gM :wall \| make all-i18n<CR> nnoremap <silent> <LocalLeader>t :vimgrep /\CTODO/ **/*<CR> let &wildignore = netrw_gitignore#Hide() . ',.git/*,vendor/*' -let g:netrw_list_hide .= ',.*\\.gen\\..*,.*_templ\\.go$' +let g:netrw_list_hide .= ',.*\\.gen\\..*'
\ No newline at end of file @@ -8,8 +8,7 @@ mfmt # Autogenerated files out.gotext.json *.gen.* -*_templ.go # Build artifacts *.min.css -*.tar.gz +*.tar.gz
\ No newline at end of file diff --git a/src/templates/-navbar.html.tmpl b/src/templates/-navbar.html.tmpl index c0122bc..b0b1130 100644 --- a/src/templates/-navbar.html.tmpl +++ b/src/templates/-navbar.html.tmpl @@ -3,7 +3,7 @@ <menu> <li><a href="/">{{ .T "Home" }}</a></li> <li><a href="#TODO">{{ .T "News" }}</a></li> - <li><a href="#TODO">{{ .T "Coin Collecting" }}</a></li> + <li><a href="/collecting">{{ .T "Coin Collecting" }}</a></li> <li><a href="/coins">{{ .T "Coins" }}</a></li> <li><a href="#TODO">{{ .T "Banknotes" }}</a></li> <li><a href="/jargon">{{ .T "Jargon" }}</a></li> diff --git a/src/templates/collecting-vending.html.tmpl b/src/templates/collecting-vending.html.tmpl new file mode 100644 index 0000000..5fcfd0c --- /dev/null +++ b/src/templates/collecting-vending.html.tmpl @@ -0,0 +1,163 @@ +{{ define "content" }} +<header> + {{ template "navbar" . }} + <h1>{{ .T "Euro Coin Collecting" }}</h1> +</header> +<main> + <h2>{{ .T "What is Vending Machine Hunting?" }}</h2> + <p> + {{ .T ` + ‘Vending machine hunting’ is a strategy of collecting coins + whereby you continuously insert coins into a vending machine + and cancel the transaction by pressing the return button. + When the vending machine returns your coins to you, you will + often get different coins from the ones you put in, and you + can repeat this process until you’ve searched through every + coin in the machine. + ` }} + </p> + + <h2>{{ .T "The Test Coins" }}</h2> + <p> + {{ .T ` + First, you want to make sure the vending machine you come + across actually gives back change — sometimes they don’t! + Throw in a 10 cent coin and press the return button. If it + doesn’t give the coin back, you can move on to the next + machine; there’s a high chance it won’t return higher + denominations either. Next throw in a random 2 euro coin and + press the return button. You should do this because vending + machines may not return 2 euro coins, but rather 1 euro- or + 50 cent coins instead. It’s better to find out immediately + as opposed to later once you’ve already put in all of your 2 + euro coins. + ` }} + </p> + + <h2>{{ .T "The Stopper" }}</h2> + <p> + {{ .T ` + We want to be able to know when we’ve gone through all the + coins in the vending machine. To do this, take out a coin + and mark it with something (drawing on it with a Sharpie + works well), then put it into the machine. Next time you get + the same coin back, you know you’ve gone through everything. + ` }} + </p> + + <h2>{{ .T "Rejected Stoppers and Coins" }}</h2> + <p> + {{ .T ` + Sometimes you may throw a stopper in, but you hear a ‘clunk’ + sound, as if the coin was dropped into a box (normally adding + a coin should be silent after you throw it in). This means + the coin was not added to the stack properly, and so it will + not be returned. Pay attention to this noise, because you + won’t be getting the stopper back! Throw in another marked + coin instead until the machine accepts the coin. + ` }} + </p> + + <h2>{{ .T "(Non-)Merging Machines" }}</h2> + <p> + {{ .T ` + We generally identify between two main types of vending + machines. + ` }} + </p> + <dl> + <dt>{{ .T "Merging" }}</dt> + <dd> + {{ .T ` + The vending machine merges change together. For example + if you throw in five 50 cent coins, the machine returns + either two 1 euro coins and one 50 cent coin or one 2 + euro and one 50 cent coin. This usually means you can + hunt 2 euro coins very quickly but other denominations + only once at a time. A good tip is to throw in an odd + number of euros and 80 cents if you want to search + through all denominations. + ` }} + </dd> + <dt>{{ .T "Non-Merging" }}</dt> + <dd> + {{ .T ` + The vending machine does not merge change together. This + means if you throw in five 50 cent coins it will return + five 50 cent coins. This makes it very easy to hunt a + large amount of a specific denomination. + ` }} + </dd> + </dl> + + <h2>{{ .T "Limits" }}</h2> + <p> + {{ .T ` + There are some limits to vending machine hunts which you need + to be aware of. + ` }} + </p> + <dl> + <dt>{{ .T "Maximum Input Limit" }}</dt> + <dd> + {{ .T ` + Some machines have a maximum amount you can throw in, and + will reject anything higher. For example machines with a + max limit of five euros will reject any additional coins + if you throw in five euros. You can try to go above the + limit if you throw in, say, %s and then another one- or + two euro coin; the machine will probably accept it. + ` (.Printer.M 4.80 false) }} + </dd> + <dt>{{ .T "Maximum Change Limit" }}</dt> + <dd> + <p> + {{ .T ` + Some machines will either give back large amounts of + change in bills or will not give back large amounts + of change at all (usually cigarette machines). Read + the labels on all machines carefully since these + limits are usually written there. + ` }} + </p> + <p> + {{ .T ` + Even if no limits are listed, it’s still advised that + you exercise caution: it is not uncommon for a + vending machine to steal your money. In the case + that a vending machine does steal your money, look + for a label on the machine that contains a support + number. + ` }} + </p> + <p> + {{ .T ` + For information on Austrian cigarette machines, see + the ‘%sCigarette Machines%s’ section. + ` `<a href="#ciggy">` `</a>` | safe }} + </p> + </dd> + </dl> + + <h2 id="ciggy">{{ .T "Cigarette Machines" }}</h2> + <p> + {{ .T ` + In some countries where cigarette machines are legal, you can + hunt through them as well. Unless you’re in Malta, you must + verify your age on them by either sliding an ID card through + a sensor or holding a debit card on an RFID scanner; you must + do this for every cycle. Sometimes you must also select + something to purchase, throw in less money than the cost, and + then cancel the purchase. Note that most cigarette machines + in Austria have a %s max change limit. + ` (.Printer.M 4.90 false) }} + </p> + <p> + {{ .T ` + For RFID scanner machines it helps to wear a glove and slide + a debit card into the back of it so you can easily use both + hands and don’t have to fumble with a card and coins. + ` }} + </p> +</main> +{{ end }}
\ No newline at end of file diff --git a/src/templates/collecting.html.tmpl b/src/templates/collecting.html.tmpl new file mode 100644 index 0000000..aacb442 --- /dev/null +++ b/src/templates/collecting.html.tmpl @@ -0,0 +1,76 @@ +{{ define "content" }} +<header> + {{ template "navbar" . }} + <h1>{{ .T "Euro Coin Collecting" }}</h1> +</header> +<main> + <p> + {{ .T ` + On this section of the site you can find everything there is + to know about collecting Euro coins. If this is a hobby that + interests you, join the Discord server linked at the top of + the page! + ` }} + </p> + <hr> + <section> + <div class="grid"> + <a class="no-deco" href="/collecting/crh"> + <article> + <header> + <h3>{{ .T "Coin Roll Hunting" }}</h3> + </header> + <main> + {{ .T ` + Learn about collecting coins from coin rolls! + ` }} + </main> + </article> + </a> + <a class="no-deco" href="/collecting/storage"> + <article> + <header> + <h3>{{ .T "Coin Storage" }}</h3> + </header> + <main> + {{ .T ` + Learn about the different methods to storing + your collection! + `}} + </main> + </article> + </a> + <!-- TODO: Implement the shop hunting page --> + <a class="no-deco" href="#"> + <article> + <header> + <h3>{{ .T "Shop Hunting" }}</h3> + </header> + <main> + {{ .T ` + Learn about how to collect coins from + shop-keepers and other people who deal in + cash! + ` }} + </main> + </article> + </a> + </div> + <div class="grid"> + <a class="no-deco" href="/collecting/vending"> + <article> + <header> + <h3>{{ .T "Vending Machine Hunting" }}</h3> + </header> + <main> + {{ .T ` + Learn about collecting coins from vending + machines! + ` }} + </main> + </article> + </a> + </div> + </section> +</main> +{{ end }}
\ No newline at end of file |