User:Samcdkey/Sandbox

From sciforums_encyclopedia
< User:Samcdkey
Revision as of 17:50, 14 April 2008 by Samcdkey (Talk | contribs)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search


http://upload.wikimedia.org/wikipedia/commons/thumb/5/52/Merge-arrows.svg/50px-Merge-arrows.svg.png It has been suggested that this page or title be merged with User:samcdkey



http://img225.imageshack.us/img225/7951/kazswallows1nebt9.gif WARNING: THIS ARTICLE CONTAINS BOOBS.
Anyone wishing to avoid an attack of prudeness should view with caution.
<noinclude>[[Category:template messages]]</noinclude>




http://img81.imageshack.us/img81/9093/madscinetisttransparentxc8.jpg WARNING: THIS ARTICLE CONTAINS SMALL TRACES OF MAD SCIENTIST
WMDs in progress, proceed with caution.
<noinclude>[[Category:template messages]]</noinclude>








TUTORIAL BY domesticated om

OK -- here you go:


Here is a normal article being "transcluded" (just to give you the basic idea.....if you click the edit button, you'll also see what I mean).
{{:sine}}
Will output this:
Sine



{{:mcmuffin}}
Will output this:
Mcmuffin



{{:S.A.M.}} will paste the entire "S.A.M." article into this page

create a new template

To create a new template, write "template:make_up_a_name" in the search box. (without the quotation marks)
You can ALSO make a new template using the preview button by writing {{whatever_you_want_to_name_it}} in the article itself......it will output this:
Template:Articles about boobs
......then if you click on the link, it will take you to the page that lets you save your new template

create a table

Here is what the wiki's syntax looks like for tables:


{| class="wikitable" border="1"
|-
! header 1
! header 2
! header 3
|-
| row 1, cell 1
| row 1, cell 2
| row 1, cell 3
|-
| row 2, cell 1
| row 2, cell 2
| row 2, cell 3
|}



It will output this:

header 1 header 2 header 3
row 1, cell 1 row 1, cell 2 row 1, cell 3
row 2, cell 1 row 2, cell 2 row 2, cell 3


To control other properties of the table (like the background colors and padding and so on), you can use CSS.

Put the two together

Here is an example template:
template:majorgeneralsong

{{majorgeneralsong}} will output this:
{{majorgeneralsong}}


Make the "Suggested move" template

So it's basically going to be a wiki-table with text in it. The only thing you'd have to look up is how to define the variable. The name of the article where it's suggested to be moved will be the variable.
If you wanted to get fancy with it, I guess a "date" variable could also be included.....but that seems kinda complicated (i think wikipedia uses a template inside of another template to output the date on theirs).
The simplest way to make this template would probably be something similar to what Exeter did for the "wrongtitle" template----- it's basically going to be a line of text that doesn't change next to a user defined parameter (like a link leading to the new page).

Maybe you could make something called

http://upload.wikimedia.org/wikipedia/commons/thumb/5/52/Merge-arrows.svg/50px-Merge-arrows.svg.png It has been suggested that this page or title be merged with {{{1}}}

, and define the parameters so the user enters {{suggestmove|[[name of article]]}} so it outputs "It has been suggested that this page or section be merged into <this other article>"

The template itself will probably look a little something like this:

http://upload.wikimedia.org/wikipedia/commons/thumb/5/52/Merge-arrows.svg/50px-Merge-arrows.svg.png It has been suggested that this page or title be merged with {{{1}}}