User:Kallnohae/Templates
This is a Wikipedia user page. This is not an encyclopedia article or the talk page for an encyclopedia article. If you find this page on any site other than Wikipedia, you are viewing a mirror site. Be aware that the page may be outdated and that the user in whose space this page is located may have no personal affiliation with any site other than Wikipedia. The original page is located at https://en.wikipedia.org/wiki/User:Kallnohae/Templates. |
This page contains notes about my effort to learn template editing.
Help desk question
[edit]- WP:HD#Using Expressions With Variables In Templates (permanent link) (archive link: Wikipedia:Help_desk/Archives/2008 October 20#Using Expressions With Variables In Templates)
Useful links
[edit]- WP:EIW#Template - Editor's index entry about templates
- Help:Magic words - tricky things we use in templates
- m:Help:Parserfunctions - more trickly template things
Objective
[edit]The template I intend to perfect will be used across multiple pages on Guild Wars Wiki [1], which is the official Wiki site for the MMORPG titled Guild Wars. The template will be used to display data on the rates of item drops which will be collected by players. Upon entering the data into the template parameters, I hope for the template to be able to add all of the findings into a summed total, and from there be able to populate a second row which will calculate the percentage thereon based upon the findings of the players.
While I understand that this is not related to Wikipedia, and I do apologize for that, it is mostly because I am thus far intimidated by the grandioseness that is Wikipedia and am attempting to get a firm understanding of the uses / do's and don't's of wiki content.
Approach
[edit]Search for existing templates that are similar to what I want
[edit]The following search uses the {{Google custom}} template to search the Template: namespace for the keywords: expr sum. Maybe this will find some templates that use the expr
- Search Wikipedia's Template: namespace for: expr sum
- That finds a {{Sum}} template, but someone already declared that template obsolete.
- Search Wikipedia's Template: namespace for: sum parameters
- That finds more templates that do arithmetic, such as {{Counter}}.
Initial test template
[edit]Make a test template in User:Kallnohae/Sandbox2 that sums two named input parameters. Transclude it into User:Kallnohae/Sandbox.
Follow-up test #1
[edit]Insert a test of the template which will not include the percentage calculations into Sandbox. Transclude it into Sandbox2, using parameters.