Difference between revisions of "Tutorial:AdvancedTutorialPage1e"

From WikiChem
Jump to: navigation, search
(c)
 
m (minor)
Line 1: Line 1:
 
I want you to make a '''template'''.  This is a page that is automatically pasted into the page, by a process called ''transclusion''.  This can be useful, because now if you need to change something in the template, you just need make one edit (to the template itself), and all the pages containing that template are immediately updated!
 
I want you to make a '''template'''.  This is a page that is automatically pasted into the page, by a process called ''transclusion''.  This can be useful, because now if you need to change something in the template, you just need make one edit (to the template itself), and all the pages containing that template are immediately updated!
  
I put together a lot of this tutorial using templates, and the "coffee break" posting was an example.  Why don't you award yourself 100 coffee break points!  
+
I put together a lot of this tutorial using templates, and the "coffee break" posting was an example.  Why don't you award yourself 100 coffee break points?  
 
*In your other window, go to your talk page , click edit and type <nowiki>{{coffee break}}</nowiki> (double curly brackets, above the square brackets). Save, and you should see the coffee break image  come up in your talk page.
 
*In your other window, go to your talk page , click edit and type <nowiki>{{coffee break}}</nowiki> (double curly brackets, above the square brackets). Save, and you should see the coffee break image  come up in your talk page.
 
*What if you want to freeze the template with the current version? Go in and edit the last template entry to read <nowiki>{{subst:coffee break}}</nowiki>.
 
*What if you want to freeze the template with the current version? Go in and edit the last template entry to read <nowiki>{{subst:coffee break}}</nowiki>.

Revision as of 17:00, 29 May 2007

I want you to make a template. This is a page that is automatically pasted into the page, by a process called transclusion. This can be useful, because now if you need to change something in the template, you just need make one edit (to the template itself), and all the pages containing that template are immediately updated!

I put together a lot of this tutorial using templates, and the "coffee break" posting was an example. Why don't you award yourself 100 coffee break points?

  • In your other window, go to your talk page , click edit and type {{coffee break}} (double curly brackets, above the square brackets). Save, and you should see the coffee break image come up in your talk page.
  • What if you want to freeze the template with the current version? Go in and edit the last template entry to read {{subst:coffee break}}.

Then I'm going to start editing the template - see what changes come up! You can refresh the window to see the changes!

Next page