Difference between revisions of "User:Deborah/coding"

From Conservapedia
Jump to navigation Jump to search
Line 39: Line 39:
  
 
after that simply use <nowiki><ref name="a"/></nowiki>
 
after that simply use <nowiki><ref name="a"/></nowiki>
 +
 +
 +
==Making templates==
 +
<nowiki>{{{1}}}</nowiki> creates a parameter for a template
 +
 +
<nowiki>{{{1|car}}}</nowiki> creates a parameter for a template whose default is car
 +
 +
 +
for example let us say there is a template called Template:User age, that looks like this <nowiki>{{{1}}} is my age</nowiki>
 +
 +
you would put <nowiki>{{User age|12}}</nowiki> for the template to display "12 is my age"

Revision as of 18:40, May 2, 2008

How to code for beginners

''Car'' italicizes the word Car

'''Car''' Bolds the word Car

'''''Car''''' Bolds and Italicizes the word Car

[www.nick.com] links to an external site, nick.com

[[Category:A]] adds an article to Category, A

[[:Category:A]] links to the Category, A

[[:Category:Conservapedians|WXYZ]] links to the category, Conservapedians, using the word WXYZ

[[:Image:A.GIF]] links to the picture A.GIF

[[Image:A.GIF]] loads the picture A.GIF on an article

[[Car|Hello]] links to the article Car with the word Hello

[[Car]] links to the article Car using the word Car

{{Car}} adds the template Car to an article

#Redirect[[A]] redirects an article to the article, A

<big>abc</big> makes the text abc bigger

<big><big>abc</big></big> makes the text abc even bigger

<ref>[nick.com]</ref> cites nick.com as a reference for an article's claim

{{Reflist}} makes a list of all the references used in an article

Use a reference more than once in an article

<ref name="a">[nick.com]</ref> is used for the first time

after that simply use <ref name="a"/>


Making templates

{{{1}}} creates a parameter for a template

{{{1|car}}} creates a parameter for a template whose default is car


for example let us say there is a template called Template:User age, that looks like this {{{1}}} is my age

you would put {{User age|12}} for the template to display "12 is my age"