Difference between revisions of "User:Deborah/coding"

From Conservapedia
Jump to navigation Jump to search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
How to code for beginners  
 
How to code for beginners  
 +
 +
<nowiki>''Car''</nowiki> italicizes the word Car
  
 
<nowiki>'''Car'''</nowiki> Bolds the word Car
 
<nowiki>'''Car'''</nowiki> Bolds the word Car
 +
 +
<nowiki>'''''Car'''''</nowiki> Bolds and Italicizes the word Car
  
 
<nowiki>[www.nick.com]</nowiki> links to an external site, nick.com
 
<nowiki>[www.nick.com]</nowiki> links to an external site, nick.com
Line 7: Line 11:
 
<nowiki>[[Category:A]]</nowiki>  adds  an article to Category, A
 
<nowiki>[[Category:A]]</nowiki>  adds  an article to Category, A
  
−
<nowiki>[[:Category:A]]</nowiki> links to the category on A
+
<nowiki>[[:Category:A]]</nowiki> links to the Category, A
 +
 
 +
<nowiki>[[:Category:Conservapedians|WXYZ]]</nowiki> links to the category, Conservapedians, using the word WXYZ
  
 
<nowiki>[[:Image:A.GIF]]</nowiki> links to the picture A.GIF
 
<nowiki>[[:Image:A.GIF]]</nowiki> links to the picture A.GIF
Line 18: Line 24:
  
 
<nowiki>{{Car}}</nowiki> adds the template Car to an article
 
<nowiki>{{Car}}</nowiki> adds the template Car to an article
 +
 +
<nowiki>#Redirect[[A]]</nowiki> redirects an article to the article, A
 +
 +
<nowiki><big>abc</big></nowiki> makes the text abc bigger
 +
 +
<nowiki><big><big>abc</big></big></nowiki> makes the text abc even bigger
 +
 +
<nowiki><ref>[nick.com]</ref></nowiki> cites nick.com as a reference for an article's claim
 +
 +
<nowiki>{{Reflist}}</nowiki> makes a list of all the references used in an article
 +
 +
<nowiki>{{SUBST:ABC}}</nowiki> substitutes all the information from Template:ABC into the article, note all future changes to the template:ABC will not be shown on the article
 +
 +
<nowiki>--~~~~</nowiki> puts your signature on a page
 +
 +
<nowiki>{{welcome}} --~~~~</nowiki> welcomes a user to Conservapedia, note this should only be put on a user's talk page
 +
 +
==Use a reference more than once in an article==
 +
<nowiki><ref name="a">[nick.com]</ref></nowiki> is used for the first time
 +
 +
after that simply use <nowiki><ref name="a"/></nowiki>
 +
 +
==Creating a list of internal links==
 +
<nowiki>*[[A]]</nowiki>
 +
 +
<nowiki>*[[B]]</nowiki>
 +
 +
<nowiki>*[[C]]</nowiki>
 +
 +
<nowiki>*[[D]]</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
 +
 +
<nowiki>{{{myage}}}</nowiki> creates a parameter named myage for a template
 +
 +
<nowiki>{{{myage|car}}}</nowiki> creates a parameter named myage for a template whose default is car
 +
 +
 +
named parameters for example <nowiki>{{myage}}</nowiki> versus <nowiki> {{{1}}} or {{{2}}} or {{{3}}}</nowiki> do not have to be put in any particular  order
 +
 +
 +
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
 +
 +
 +
another example let us say there is a template called Template:User age, that looks like this, <nowiki>{{{1}}} is my age, I was born in the month, {{{2}}}</nowiki>
 +
 +
you would put <nowiki>{{User age|12|December}}</nowiki> for the template to display, 12 is my age I was born in the month December
 +
 +
 +
another example let us say there is a template called Template:User age, that looks like this, <nowiki>{{{myage}}} is my age</nowiki>
 +
 +
you would put <nowiki>{{User age|myage=19}}</nowiki> for the template to display, 19 is my age
 +
 +
 +
another example let us say there is a template called Template:User age, that looks like this, <nowiki>{{{myage}}} is my age, I was born in the month, {{{mymonth}}}</nowiki>
 +
 +
you would put <nowiki>{{User age|myage=19|my month=January}}</nowiki> for the template to display, 19 is my age, I was born in the month, January    you also could put <nowiki>{{User age|my month=January|myage=19}}</nowiki> for the same result
 +
 +
==How do you make a custom signature==
 +
first make a subpage of user page which has your custom signature for example, User:Deborah/sig
 +
go to, my preferences click on raw signatures and put <nowiki>{{SUBST:User:Deborah/sig}}</nowiki>

Latest revision as of 19:03, 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

{{SUBST:ABC}} substitutes all the information from Template:ABC into the article, note all future changes to the template:ABC will not be shown on the article

--~~~~ puts your signature on a page

{{welcome}} --~~~~ welcomes a user to Conservapedia, note this should only be put on a user's talk page

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"/>

Creating a list of internal links

*[[A]]

*[[B]]

*[[C]]

*[[D]]


Making templates

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

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

{{{myage}}} creates a parameter named myage for a template

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


named parameters for example {{myage}} versus {{{1}}} or {{{2}}} or {{{3}}} do not have to be put in any particular order


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


another example let us say there is a template called Template:User age, that looks like this, {{{1}}} is my age, I was born in the month, {{{2}}}

you would put {{User age|12|December}} for the template to display, 12 is my age I was born in the month December


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

you would put {{User age|myage=19}} for the template to display, 19 is my age


another example let us say there is a template called Template:User age, that looks like this, {{{myage}}} is my age, I was born in the month, {{{mymonth}}}

you would put {{User age|myage=19|my month=January}} for the template to display, 19 is my age, I was born in the month, January you also could put {{User age|my month=January|myage=19}} for the same result

How do you make a custom signature

first make a subpage of user page which has your custom signature for example, User:Deborah/sig go to, my preferences click on raw signatures and put {{SUBST:User:Deborah/sig}}