User:Ryan Vesey/Adopt/Red Hat On Head
Red Hat On Head (talk · contribs)
[edit]Hi Red Hat On Head, and welcome to your adoption center. I have substituted the first lesson across for you and I thought you'd like to know that you do now have your own official page. As you can see from User:Ryan Vesey/Adopt, I've created an adoption HQ, where you can read ahead in the lessons. Feel free to read ahead - it might help. I also might create a few more "advanced optional lessons" for you. The tests might include a couple of extra unique questions if I see an area that you might need a little extra development - don't take it as a negative, it should help. Also we now have a talk area for us to use, away from the more public areas it's at User Talk:Ryan Vesey/Adopt/Red Hat On Head. I will post some questions for you there later. Let me know if there's anything else you'd like to see. Ryan Vesey 18:34, 1 August 2012 (UTC)
Imagine a world in which every single person on the planet is given free access to the sum of all human knowledge. That's what we're doing.
|
The Ryan Vesey Adoption Course Barnstar | ||||||||||
This will be a growing barnstar that will get larger as you complete lessons. I hope you enjoy the program! |
Lesson 1 - Five Pillars - Complete
|
---|
The Five Pillars[edit]One of the most important essays in Wikipedia is WP:FIVEPILLARS which is designed to eloquently sum up what we're here for.
Once you get your head around these five pillars, you will be a Wikipedian and a good one at that. All 5 are covered in my adoption school, though at different lengths. Be aware that I don't know everything and I would doubt anyone who said they did. Prior to the five pillars, the groundwork was set by the trifecta. How articles should be written[edit]The articles in Wikipedia are designed to represent the sum of human knowledge. Each article should be written from a neutral point of view - personal opinions such as right and wrong should never appear, nor should an editors experience. Neutrality also means giving due weight to the different points of view. If the broad scientific community has one set of opinions - then the minority opinion should not be shown. An example is in medicine - if there was an article on say treatment of a broken leg, a neutral article would not include anything on Homeopathy. To ensure that the information in an article is correct, Wikipedia has adopted a policy of verifiability. Anything written in Wikipedia should be available to confirm by looking at the associated reliable source. Wikipedia should not include anything not verifiable by seeing it is published elsewhere, in other words it should not contain anything original. Reliable sources[edit]So what is a source? Wikipedia uses the word source for three interchangeable ideas - a piece of work, the work's creator or the work's publisher. In general, you would expect a reliable source to be published materials with a reliable publication process, authors who are regarded as authoritative in relation to the subject, or both. This doesn't mean that a source that is reliable on one topic is reliable on every topic, it must be regarded as authoritative in that topic - so whilst "Airfix monthly" may be a good source on the first model aeroplane, I would not expect it to be authoritative on their full size equivalent. A source that is self-published is in general considered unreliable, unless it is published by a recognized expert in the field. This is a very rare exception - so self publishing is generally considered a no-no. This means that anything in a forum or a blog and even most websites are considered unreliable by default. One interesting sidepoint is on self-published sources talking about themselves. Obviously, a source talking about itself is going to be authoritative, but be careful that the source is not too self-serving - the article really should not be totally based on a direct source like that. Mainstream news sources are generally considered notable... but any single article should be assessed on a case by case basis. Some news organizations have been known to check their information on Wikipedia - so be careful not to get into a cyclic sourcing issue! There's a lot more about what makes a source reliable here Questions?[edit]Any questions or would you like to try the test?
Five Pillars[edit]This test is going to be based on questions. Some questions will have right or wrong answers, whereas others are just designed to see if you are thinking in the right way. This is an "open book" test and you are able (and encouraged) to search Wikipedia for relevant policies. I also want to see your thought process, so please give reasons with all of your answers. There is no time limit - answer in your own words and we'll talk about your answers. 1) Q - You have just discovered from a friend that the new Ford Escort is only going to be available in blue. Can you add this to the Ford Escort article and why?
2) Q - A mainstream newspaper has published a cartoon which you see is clearly racist as part of an article. Can you include this as an example of racism on the newspaper's article? What about on the racism article?
3) Q - You find an article that shows that people in the state of Ohio eat more butternut squashes than anywhere in the world and ranks each of the United States by squashes per head. Interestingly you find another article that ranks baldness in the United States and they are almost identical! Can you include this information anywhere on Wikipedia? Perhaps the baldness article or the butternut squash article?
4) Q - Would you consider BBC news a reliable source on The Troubles? What about on ITV?
5) Q - Would you consider Ben and Jerry's official Facebook page a reliable source?
6) Q - A "forum official" from the Daily Telegraph community forums comments on Daily Telegraph's stance on world hunger. Would this be a reliable source?
7) Q - Would you have any problem with http://www.amazon.co.uk/ or an "iTunes" link being used in a music related article?
8) Q - Would you have any issue with using the About Us page on Xerox as a source for the history section of the Xerox article.
9) Q - Everybody knows that the sky is blue right? An editor doesn't agree - he says it is bronze, do you need a source?
You did very well on this overall. I'd just like to see a response to my clarification of question 3 and then we can move on to the next lesson. Good job! Ryan Vesey 14:12, 2 August 2012 (UTC)
|
Lesson 2 - Wikiquette - Complete
| |||
---|---|---|---|
Wikiquette[edit]WP:Wikiquette - or the etiquette of Wikipedia is something that you may already be familiar with, depending how much reading around the different wikipedia pages you've made. I'm just going to highlight some of the important Wikiquette items that you should try and remember. It may help you out.
Questions[edit]Any questions?
Test[edit]Have a look at the conversation below:
Well, the Passat lover clearly loves his Passat, but who is he replying to? In 1) Position A?
2) Position B?
3) An editor who has a low edit count seems awfully competent with templates. Should he be reported as a possible WP:SOCK?
Also: http://en.wikipedia.org/wiki/Wikipedia:Don%27t_be_quick_to_assume_that_someone_is_a_sockpuppet http://en.wikipedia.org/wiki/Wikipedia:Newbies_aren%27t_always_clueless Your 2nd and 3rd answers are correct; however, in position A he is one indent in from Rod's Mate and on the same indent level as Freddie, so he's responding to Rod's mate. In addition, you can link to Wikipedia pages just like a normal page by typing [[Wikipedia:Don't be quick to assume that someone is a sockpuppet]] Do you understand everything on talk page discussions or do you have some more questions before we move one? Ryan Vesey 19:39, 2 August 2012 (UTC)
|
Lesson 3 - Copyright - 1 question left
| |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Copyright[edit]Welcome to the lesson discussing Copyright. It's one of the most important lessons I teach, because not adhering to it can lead to a ban from Wikipedia. I'm hoping to take you back to basics and will be focusing on images. However, a lot of the same concepts apply to other media files and even text too! I'll mention a bit more about that at the end of the lesson. Glossary[edit]There are a lot of terms associated with copyright. If you are having trouble with any, here's a quick reference.
Image Copyright on Wikipedia[edit]![]() Ok, now if I use a term that's not in the glossary and I don't explain, feel free to slap me. Are you ready for this? Ok. Take a deep breath. You can do it. Copyright is a serious problem on a free encyclopedia. To remain free, any work that is submitted must be released under the WP:CC-BY-SA License and the WP:GFDL. You can read the actual text under those links, but the gist is that you agree that everything you write on the encyclopedia can be shared, adapted or even sold and all you get in return is attribution. So, there are basically two types of images on wikipedia. Free images are those which can be freely used anywhere on Wikipedia. A free image may be either public domain, or released under a free license, such as CC-BY-SA. Free images can be used in any article where their presence would add value. As long as there is a consensus among the editors working on an article that the image is appropriate for the article, it's safe to say that it can remain in an article. Free images can even be modified and used elsewhere. Non-free images, however, are subject to restrictions. Album covers and TV screenshots are two types of images that are typically non-free. They may belong to a person or organization who has not agreed to release them freely to the public, and there may be restrictions on how they are used. You have to meet ALL of Wikipedia's strict conditions in order to use them. (Non free content criteria) In practise, if it comes out of your head - is entirely your own work, you have the right to make that release. If you got it from somewhere else, you don't. That doesn't mean it can't be used though. You can in these situations
It's a lot, isn't it! Well, let's have a look at the non free stuff. I'm going to suggest two different images. One, a tabloid picture of celebrity actress Nicole Kidman, and the other, the cover of the album Jollification by the Lightning Seeds. The tabloid picture of Nicole Kidman will instantly fail #1, because there can be a free equivalent - anyone can take a picture of Nicole. The album cover on the other hand is unique - there's no free equivalent. It's discussed in the article too, so showing it will be useful in context (#8). The copy we show should be shrunk, so that it can't be used to create pirate copies (#2). I couldn't put it on my userpage though (or even here) (#9) Get it? Well here are a few more examples.
Commons[edit]When people refer to Commons on wikipedia, they're generally referring to Wikimedia Commons, a repository of free material. Images on Commons can be linked directly to wikipedia, like that picture just to the right and above. Now, since commons is a free repository, fair use is not permitted. It makes sense to upload free images to commons, so that they can be used by all language encyclopedias. Copyright and text[edit]So you think you've got your head around copyright and how it applies to images? Well done. Let's see how it applies to text. All the principles are the same - you can only include text which has been released under CC-BY-SA. In fact, if you notice, every time you click edit, it says right there
So you are in effect contributing every time you edit. Now, let's think about that non-free content criteria - "No free equivalent" means that you will never be able to license text under it (except for quoting) - as you can re-write it in your own words to create an equivalent. You always, always, always have to write things in your own words or make it VERY clear that you are not. Got it? Good. Questions[edit]This is a very complex topic, is there anything you don't understand? Now's a great time to ask about those weird situations.
-bangs head on wall- -bangs head on wall- -bangs head on wall- If I had kept my big mouth shut, then the poster still would be up on Commons! Arghhh! Then whoever uploaded it will get angry with me and it wasn't just being used for the articles for Dev Anand and Nargis, but also the Urdu article for Dev! What am I going to do about that? And what license am I going to upload it under? Arghhhhhhhhhh! Red Hat On Head (talk) 18:28, 3 August 2012 (UTC)
-cries- Red Hat On Head (talk) 19:30, 3 August 2012 (UTC)
Test[edit]Q1) Do you think Wikipedia *is* free?
Q2) When can you upload a picture to Commons?
Q3) You find music displaying this licence [1] (non-commercial). Wikimedia is non-commerical, can we upload it to Commons?
Q4) A user uploads a poster which is a composite of all the Beatles album covers. Can he do this? It is his own unique composition.
Q5) Can you upload a press image of the Pope?
Q6) Can you upload a press image of a prisoner on death row?
Q7) You find an article that matches a company website About Us page exactly. What do you do? You check the talk page, and there's no evidence that the text has been released under WP:CC-BY-SA
Q8) Can you see any issues with doing a cut-and-paste move?
Q9) A final practical test... Go. Have a snoop around some wikipedia articles, see if you can find an image which is currently being used under "fair use". Come back and link to it (using [[:File:IMAGENAME]]. You must get the : before the File name, as we cannot display the image here!)
I'm really sorry for taking so long to correct this. Do you have any remaining questions or should we move on? Ryan Vesey 21:12, 18 August 2012 (UTC)
|
Lesson 4 - Dispute Resolution - Complete
|
---|
Dispute resolution[edit]No matter how well you edit Wikipedia, no matter how simple and obvious your changes may seem, you are very like to end up in a dispute. This becomes more and more likely as you get into more contentious areas of Wikipedia. The higher the number of page views and the more evocative the subject - the more likely the area is going to be considered contentious. ![]() I'm going to go through the different methods of dispute resolution there are on Wikipedia. They are all covered at the dispute resolution page and the tips there are really worth taking. Simple Resolution[edit]No. I'm not expecting you to back down. You obviously believe what you are saying, and there is nothing wrong with that. What you can do though is attempt to resolve the dispute. How??? I hear you ask. Firstly assume good faith, remember the person you are in a dispute with is also trying to improve the encyclopedia. They are not trying to deliberately damage the encyclopedia. Try to see things from their point of view and see if you can both come to a compromise. Keep calm. There's no urgency to the change you are trying to put in or take out, it will wait until the discussion is complete. If you try to fight by editwarring to keep your preferred version there is a large chance that you will get nowhere and face a block. So, instead follow Bold, Revert, Discuss - one editor makes a Bold edit, which they feel improves the encyclopedia. A second editor Rerverts the edit as they disagree. The two (or more) editors discuss the matter on the talk page until they come to an agreement or proceed along Wikipedia's dispute resolution process. When it comes to the discussion, I want you to try and stay in the top 3 sections of the pyramid to the right. You've heard the phrase "Sarcasm is the lowest form of wit" right? Well, this pyramid explains the different forms of disagreement. Attacks on the character of an editor is never going to help anything. If an editor is "attacking" you, don't respond in kind - stay focused on the editors argument and respond to that. If you think about what you are saying and how the editor is likely to respond you realise that you have a choice. Your comment will generally go one of two ways 1) it will address the editors argument and put forward a counterargument which the opposing editor will be able to understand 2) It will not address the situation, thereby infuriating the other editor and escalating the drama. Accusations of attacks, bad faith, WP:OWNership, WP:VANDALISM or any number of negative suggestions are going to fall into (2). If there are issues with one of these problems, follow Wikipedia's dispute resolution process and try to keep a cool head. If needs be, walk away and have a cup of tea. Play a game of "racketball". Whatever you do to calm down and just not be on Wikipedia. Wikipedia dispute resolution process[edit]If the simple techniques don't work (and you'd be amazed how often they do, if you try them), Wikipedia does have some methods of dispute resolution Assistance[edit]If you want someone to talk to but not necessarily step in, there is an WP:Editor Assistance notice board. The editors there are experienced and can offer suggestions about how to resolve the situation. Third opinion[edit]You can get someone uninvolved to step in and give an opinion on a content dispute. WP:3O has instructions on how to request a third editor to come in and discuss the situation. Another option to get a third opinion is to go to the project noticeboard associated with the article to ask for an opinion (the talk page lists which projects are associated with the article). Finally, you could leave a message at a relevant noticeboard - WP:SEEKHELP Mediation[edit]If the issue won't go away, even after a couple of people have weighed in, you can try Mediation. There are two processes here. Informal (WP:MEDCAB) and formal (WP:RfM). The editors at each specialise in sorting debates. Request for Comment[edit]You can use WP:RfC to draw community discussion to the page. You are likely to get a larger section of the community here than a 3O request. There is also an option to Request comment on a user. This is rarely necessary and should not be taken lightly. Only after almost every other route of dispute resolution has been taken should this happen - and it requires at least two editors having the same problem with one editor to be certified. Arbitration[edit]I really hope you'll never see this place in a case. It's the last resort, the community has elected it's most trusted willing volunteers to preside over the most complicated cases. Have a read of WP:ARBCOM if you like, but try not to end up there. Reports[edit]If an editor is acting badly, there are a few boards where you can get some help. Remember: you could be wrong![edit]You could be acting against consensus! But as long as you are open to the possibility and have been sticking the top 3 sections of the pyramid, there's nothing wrong with disagreeing. Just make sure you are aware that at some point you might have to realise you are flogging a dead horse. Any questions?[edit]Nope, no questions. :) Red Hat On Head (talk) 14:26, 22 August 2012 (UTC) Dispute resolution[edit]1) What do you understand by bold, revert, discuss?
2) Assuming that person A puts in an edit, person B reverts, person A reverts... and so on, but both stop short of WP:3RR (the bright line)... who wins the edit war? Trick question alert!
3) What is vandalism?
4) What is the difference between editor assistance, third opinion and request for comment?
|
Lesson 5 - Deletion Policies - Complete
| ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Deletion Policies[edit]While Wikipedia does strive to include as much information as possible, there is a practical limit as to what we're going to include as an article. Just because you think your pet cat is the cutest thing on the planet, that does not mean you should create an article about it. There's a whole list of things that Wikipedia is not. Some relate simply to style or formatting, such as Wikipedia is not a paper encyclopedia or Wikipedia is not censored. Most, however, relate to the content of the encyclopedia, and what is considered encyclopedic and what isn't. WP:NOT is an official policy, which means that all articles must adhere to it. If they don't, they're at risk of deletion. Wikipedia has three methods to delete pages. The first, and by far fastest, is the Criteria for Speedy Deletion. These criteria depict what content absolutely cannot be kept on Wikipedia for whatever reason and must be removed immediately. The most commonly used ones are as follows:
Whenever you mark a page for speedy deletion, it's usually nice to notify the author. Each of the speedy deletion tags shows the proper warning to use - just copy that code and paste it on their user talk page. You are not required to do this, but it usually helps alleviate some confusion on the part of the author.
Finally, the XfD processes (XfD stands for Anything for Deletion) allow users to debate on the merits (or lack thereof) a particular article and decide by consensus what is to become of it. These are not votes - sheer numbers have no effect on the outcome of these debates. Only reasoned comments are considered towards the result of the debate. The template at right shows all the different types of deletion debates. The most frequently used is AfD, Articles for Deletion. Your nomination earlier today should have gone there. Each XfD page outlines the process for each, which often is somewhat complicated. Deletion review is where users can appeal a deletion debate, and follows similar procedures. Before anything is deleted, though, one should always check to see if there is any alternative. There are a wide range of cleanup templates that can be used to indicate an article needs attention (templates which we'll cover in more detail later, I'll just give you the link for now). One could always take care of the cleanup themselves. It's also possible there is usable content in the article that can be merged elsewhere, or it's just under the wrong title and needs to be moved. Wikipedia's purpose is to include as much information as possible, so deletion should always be a last resort. Questions[edit]Any questions or would you like to try the "Test"
Deletion[edit]1) Describe a situation you would use a WP:PROD and one where you'd use WP:AfD?
2) Most WP:CSD categories are fairly clear, but one of the more difficult is A7. Describe a situation where A7 would be appropriate :)
I've created 5 pages, which could be deletable. What would you do if you stumbled upon them? 3)First
4)Second
5)Third
6)Fourth
7)Fifth
You're answers to these are very good, you are far beyond where I was in CSD knowledge when I had been editing as long as you. Good work! Ryan Vesey 05:06, 20 October 2012 (UTC)
|
Lesson 6 - Policies and Consensus - Complete
|
---|
Consensus[edit]Consensus is the way that decisions are made in Wikipedia. You may see the odd !vote (a coding joke, ! means not - confirming that this is WP:NOTAVOTE and then promptly voting), but these should generally be non-binding based upon weight of numbers, but rather through the weight of their arguments. Consensus should be created through discussion and any member of the community is welcome to enter in discussions. Yes, that means you. You have every right to put forward an opinion, but if your opinion can be based in policy it will hold a lot more weight. Consensus applies to everything on Wikipedia, from simple article edits (see WP:BRD and the dispute resolution lesson) to large policy decisions. Consensus can also change, it does not necessarily remain the same so if you see something wrong, don't be afraid to raise it. When involved in a consensus discussion, be careful not to fall foul of canvassing, something that is frowned upon. In other words, don't bring in more people to back you up. There are a couple of exceptions to consensus. Anything decree from Wikimedia foundation or WP:Office actions must be adhered too. Although these are rare, it's worth keeping in mind. Some of the things passed down in the past is that care must be taken over biographies of living people and copyright violations. Community[edit]The community is anyone who writes and edits Wikipedia. This includes you, me and any user who clicks that little edit button. They need not be registered, which is why you see IP editors. Although some registered editors treat IPs like second-class citizens, there is no reason they should be. I've seen a few reports that show that the vast majority of Wikipedia was written by IP editors. It does mean that the vast majority of vandalism is also caused by IP editors, hence the disillusionment. I'll get onto vandalism in a separate lesson, so don't worry too much about that now. Policy and guidelines[edit]Everything we do in wikipedia is governed by policy and guidelines, but policies and guidelines were written down once and discussed at length. Oh yes, almost every policy and guideline is based on consensus, leading us right back to the start of this lesson. Policies don't change much, the describe how the community works and in generally that remains relatively constant at the policy level. Ignore all rules[edit]What? Is this really right? Well, what the ignore all rules policy says is "If a rule prevents you from improving the encyclopedia, ignore it." My personal interpretation is that this a catchall to remind us that we're not in a bureaucracy, that the important thing is the encyclopedia. I've never had to implement it personally, but I do keep it in mind. Questions[edit]Well, that's that. Do you have any questions on Consensus or policy?
Policy[edit]1) What is the difference between a policy, a guideline and an essay?
2) Can Policy change?
3) In your opinion. Is Wikipedia a bureaucracy?
|
Templates
[edit]Templates allow you to post large sections of text or complicated sections of code while only typing a few characters. Templates work similar to regular links, but instead of [[double square brackets]], you use {{curly braces}}. To call a template, just type the title of the template between the double braces. You don't need to include the "Template:" prefix; the MediaWiki software automatically searches within the Template namespace for what you're looking for. Only if the page you're looking for is in a different namespace do you need to specify it. See below:
What I type | What appears | Comments | ||
---|---|---|---|---|
{{user en}} |
|
This calls Template:User en. All content there (that is marked to be included, see below) appears where I type the template code. | ||
{{Ryan DYK}} | {{Ryan DYK}} | I get a red link because no page exists at Template:Ryan DYK. | ||
{{User:Saoshyant/Userboxes/User oops}} |
|
When I specify the User: namespace, the userbox I have at that location appears. Thus, a template does not have to be in the Template: namespace to work. | ||
{{User DYK}} |
|
I get a {{{1}}} where a number should appear. This is due to the fact that I did not specify a parameter in that template. |
One template you can use to welcome new users, Template:W-basic, has several parameters which can customize its appearance. Most of those parameters are named, in that you have to specify to the template what the name of the parameter is when you use it. {{w-basic|anon=true}} sets the parameter "anon" to "true", which generates a message directed towards anonymous users. The advantage to named parameters is that they can be placed in any order, but they must be spelled exactly right or they will not work. The template also uses an unnamed parameter, one which does not have to be specified when it is put into use. Templates automatically assign a numerical name to unnamed parameters when they are used, starting with "1". {{w-basic|message}} sets the unnamed parameter "1" to "message", which is what that parameter is used for in that template. The userbox above can specify the number of states visited with that same unnamed parameter. Unnamed parameters must be in sequential order to work properly, unless you force them to be out of order by using syntax such as {{template|2=foo|1=bar}}. Using "1=, 2=" is also required if the parameter has a = anywhere within (occasionally the case with some external links).
When writing templates, there are some extra tags and codes that have special effects when a template is called.
Code | What it does |
---|---|
{{{1}}} | Causes a parameter "1" to display at that location. |
{{{name}}} | Causes a parameter "name" to display at that location. (Calling the template {{Template|name=Ryan}} will cause "Ryan" to display at that location) |
{{{1|foo}}} | Sets a default value "foo" for parameter "1", which prevents the parameter from displaying as it does in the userbox above. This can be blank: {{{1|}}} |
<includeonly>foo</includeonly> | Causes the text "foo" to only appear when the template is called. It will not appear on the template page, or in previews when editing the template. As a result, any code included in these tags will not be executed until the template is called. |
<noinclude>foo</noinclude> | Removes the text "foo" from the template. Documentation (notes on how to use a template) is always included with these tags so that it is not called along with the template. |
{{{1|lorem ipsum}}} <noinclude>dolor sit amet</noinclude> <includeonly>etc...</includeonly> | When this template is called, it will display parameter 1 first, followed by "etc...". If parameter 1 is not defined, the template will display "lorem ipsum etc..." |
Conditional templates allow for use of more intricate templates, with optional parameters or different effects depending on what a certain parameter is set to. They use parser functions such as #if: to apply certain conditions to the code. Use of these functions can allow you to create some rather advanced templates, but often get exceedingly complicated and should only be edited by those users who fully understand how they work. Since these are rather complex, they will not be covered in your exam, but if you'd like we can cover them after we've completed the other topics.
I forgot to mention - there are two ways to call a template. Transclusion is simply calling the template as I showed you above: {{template}}. This displays the template where you put the call for it, but leaves the curly braced call in place so that it's easy to remove. This also causes the template to update every time the page is loaded, if it has been edited or has a time-sensitive variable. Substitution, or "subst'ing" a template, causes the opposite effect. To substitute a template, add the code "subst:" at the beginning of the call: {{subst:template}}. When this is done, you are seeing the curly-braced call for the last time, because when you save the page, the MediaWiki software will replace that call with the template's code. This causes the template to lock in place - however it was when you called it, is how it's going to be from then on. This makes things a little difficult to remove, though, as instead of the simple template call, you've probably got lines of code that are now clogging up your article. Depending on how the template it written, it may require subst'ing to work properly, or it may require that it is not subst'ed. The page at WP:SUBST gives details on what templates should, must, or must not be substituted. When writing templates, it can also be useful to enclose the subst: code within <includeonly> tags. See below.
Code | Displays | Comments |
---|---|---|
{{CURRENTTIME}} | 11:12 | Template is transcluded, so updates every time you load the page. |
{{subst:CURRENTTIME}} | 22:56 | Template is substituted, so is stuck on the time I saved this page. |
{{<includeonly>subst:</includeonly>CURRENTTIME}} | 04:12 | Here, the template acts as though it were transcluded on the source page of this lesson, User:Ryan Vesey/Adopt/Templates. However, it was substituted when I placed this lesson on the main adoption page, and so is stuck at the time shown. |
This lesson should show you how templates can be really useful for a lot of things. However, we can make templates even more functional and more powerful by having them do different things depending on what the parameters we set are. For more information on that, see the optional lesson on Advanced Templates.
- Cool! Yeah, I have some experience with templates, but I have a question. You know those userboxes on my userpage at the bottom? Can I put the table to the right of the barnstars so that they're level? Red Hat On Head (talk) 17:17, 11 November 2012 (UTC)
- Is it all right if I mess with your userpage a bit to find something that works? Ryan Vesey 21:57, 11 November 2012 (UTC)
- Yeah, sure, that'll be awesome! Red Hat On Head (talk) 23:01, 12 November 2012 (UTC)
- Is it all right if I mess with your userpage a bit to find something that works? Ryan Vesey 21:57, 11 November 2012 (UTC)
Templates Test
[edit]Well, this is a bit of fun, isn't it? One of the more difficult things to test.
Well, for this test, I've created you a nice new page at User:Ryan Vesey/Adopt/Red Hat On Head/Template. It's a template! Have a look at it now. Depending on how you call it, different things will happen. So I'd like you to call the template so that you get the correct result. No using subst, just use the parameters of your nice new template.
1) I intend to pass this module! (Template module)
- A: I intend to pass this module!
2) My name is Red Hat On Head and I intend to pass this module! (Template module)
- A: I intend to pass this module!
3) My name is Red Hat On Head and I intend to eat a butterfly. (Template module)
- A: My name is Red Hat On Head and I intend to eat a butterfly!
4) My name is Red Hat On Head and I intend to pass this module! I am really good with templates. (Template module)
- A: My name is Red Hat On Head and I intend to pass this module! I am really good with templates.
NB, to get (4) to work properly... you will have to edit the template. Bwhahahah :D
You can use User:Worm That Turned/Adopt/Template beginner to help you out as well. This is a difficult subject for many people, and it's fine if you have difficulty understanding it. Ryan Vesey 20:05, 29 March 2013 (UTC)
- Whew, finally! :D I hope it's all right! Red Hat On Head (talk) 23:36, 29 March 2013 (UTC)