Template talk:Charity: Difference between revisions
From Bulbanews, your community Pokémon newspaper.
Jump to navigationJump to search
m (moved User talk:Werdnae/Charity to Template talk:Charity) |
No edit summary |
||
Line 1: | Line 1: | ||
==Tests= | {| width="100%" class="expandable" | ||
{{ | |- | ||
| | |||
==Development== | |||
|- | |||
| | |||
<span style="font-size: 13.9pt;">Tests</span> | |||
<hr style="margin-top: 0;" /> | |||
{{Charity|Pokemon Caught||649|428}} | |||
{{-}} | {{-}} | ||
{{ | {{Charity|Money raised|$|250|300}} | ||
= | <span style="font-size: 13.9pt;">Comments</span> | ||
= | <hr style="margin-top: 0;" /> | ||
* Are the bars supposed to be kind of like that around the ends? --[[Special:Contributions/CoolPikachu!|<span style="color:#00AF33;">'''☆'''</span>]][[User:CoolPikachu!|<span style="color:#F8D030;">'''Cool'''</span>]][[User talk:CoolPikachu!|<span style="color:#0098d8;">'''ピカチュウ!'''</span>]] 00:06, 4 August 2011 (UTC) | * Are the bars supposed to be kind of like that around the ends? --[[Special:Contributions/CoolPikachu!|<span style="color:#00AF33;">'''☆'''</span>]][[User:CoolPikachu!|<span style="color:#F8D030;">'''Cool'''</span>]][[User talk:CoolPikachu!|<span style="color:#0098d8;">'''ピカチュウ!'''</span>]] 00:06, 4 August 2011 (UTC) | ||
**I've set it up to go right to the edges to make judging the amount easier. I can set it back to a complete border if people want. Also, added a Number in the bar as a possibility. If people like that, I'll make sure it gets added to the bar when the current exceeds the target too. [[User:Werdnae|Werdnae]] 00:41, 4 August 2011 (UTC) | **I've set it up to go right to the edges to make judging the amount easier. I can set it back to a complete border if people want. Also, added a Number in the bar as a possibility. If people like that, I'll make sure it gets added to the bar when the current exceeds the target too. [[User:Werdnae|Werdnae]] 00:41, 4 August 2011 (UTC) | ||
***Yeah, I'd actually make a complete border, and have the exact number inside, as you've done there. The bar itself is more of a visual thing than an exact guide. [[User:George Hutcheon|George Hutcheon]] 13:16, 4 August 2011 (UTC) | ***Yeah, I'd actually make a complete border, and have the exact number inside, as you've done there. The bar itself is more of a visual thing than an exact guide. [[User:George Hutcheon|George Hutcheon]] 13:16, 4 August 2011 (UTC) | ||
****Both done. Thanks for the feedback. [[User:Werdnae|Werdnae]] 20:07, 4 August 2011 (UTC) | ****Both done. Thanks for the feedback. [[User:Werdnae|Werdnae]] 20:07, 4 August 2011 (UTC) | ||
|} | |||
=== | ==Usage== | ||
This template uses numbered parameters. | |||
# Title | |||
# Currency symbol, where applicable. Leave blank if not. | |||
# Target (Raw numbers only) | |||
# Current (Raw numbers only) | |||
# Time of most recent update. (Replace this with five tildes every time the template is updated.) | |||
For example, <code><nowiki>{{Charity|Pokemon Caught||649|428|</nowiki>22:49, 31 May 2012 (UTC)<nowiki>}}</nowiki></code> gives: | |||
{{Charity|Pokemon Caught||649|428|22:49, 31 May 2012 (UTC)}} | |||
{{-}} | |||
and <code><nowiki>{{Charity|Money raised|$|250|300|</nowiki>22:49, 31 May 2012 (UTC)<nowiki>}}</nowiki></code> gives: | |||
{{Charity|Money raised|$|250|300|22:49, 31 May 2012 (UTC)}} | |||
{{-}} | |||
To allow easier updating, the template should be placed at Template:Charity/GroupName. This allows updates by people who are not able to edit live articles. <span class="sc">[[User:Werdnae|<span style="color:#2D4B98;">Werdnae</span>]]</span> <small>[[User talk:Werdnae|<span style="color:#009000;">(talk)</span>]]</small> 22:49, 31 May 2012 (UTC) |
Revision as of 22:49, 31 May 2012
Development | ||||||||||||||||||||||||||||||||||||||
Tests
Comments
|
Usage
This template uses numbered parameters.
- Title
- Currency symbol, where applicable. Leave blank if not.
- Target (Raw numbers only)
- Current (Raw numbers only)
- Time of most recent update. (Replace this with five tildes every time the template is updated.)
For example, {{Charity|Pokemon Caught||649|428|22:49, 31 May 2012 (UTC)}}
gives:
Pokemon Caught (as of 22:49, 31 May 2012 (UTC)) | ||||||||
Current: 428 | Target: 649 | Progress: 65% | ||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
and {{Charity|Money raised|$|250|300|22:49, 31 May 2012 (UTC)}}
gives:
Money raised (as of 22:49, 31 May 2012 (UTC)) | ||||||||
Current: $300 | Target: $250 | Progress: Target Achieved | ||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
To allow easier updating, the template should be placed at Template:Charity/GroupName. This allows updates by people who are not able to edit live articles. Werdnae (talk) 22:49, 31 May 2012 (UTC)