WikiIslam:Templates: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 8: Line 8:
Just like a regular page, links to a template page (like we have made on this page) can be made using square brackets, for example <nowiki>[[</nowiki>Template:Stub]] produces: [[Template:Stub]]
Just like a regular page, links to a template page (like we have made on this page) can be made using square brackets, for example <nowiki>[[</nowiki>Template:Stub]] produces: [[Template:Stub]]


==Templates with variables==
==Templates with Variables==
Templates that accept variables are a great way to let the software take care of formatting issues. For example if you're putting in a reference to a website, you can use the [[Template:Cite web|Cite web]] template. Just enter the URL, URL Title, author, publisher and archive URL and it will know how to format the output. So for example you wont have to worry about whether the author is mentioned first in that reference.
Templates that accept variables are a great way to let the software take care of formatting issues. For example if you're putting in a reference to a website, you can use the [[Template:Cite web|Cite web]] template. Just enter the URL, URL Title, author, publisher and archive URL and it will know how to format the output. So for example you wont have to worry about whether the author is mentioned first in that reference.


Line 22: Line 22:
Here are some templates that can be used on the website.
Here are some templates that can be used on the website.


==Articles that need attention==
==Articles that Need Attention==
* [[Template:Stub]] - for short articles that need expansion
* [[Template:Stub]] - for short articles that need expansion
* [[Template:Underconstruction]] - page under construction
* [[Template:Underconstruction]] - page under construction
Line 52: Line 52:
* [[Template:Pagetop]] - makes a link to the top of a page
* [[Template:Pagetop]] - makes a link to the top of a page


==Communicating with users==
==Communicating with Users==
;Welcoming new members
;Welcoming new members
Click on a new member's talk page and it will prompt you for creating a new page. Place this in the edit box and save the page:
Click on a new member's talk page and it will prompt you for creating a new page. Place this in the edit box and save the page:
Line 66: Line 66:
'''Documentation''': As on Wikipedia, documentation for templates can be written on the page: ''Template:My template/doc'', if the code ''<nowiki>{{</nowiki>Documentation}}'' has been included in the template.
'''Documentation''': As on Wikipedia, documentation for templates can be written on the page: ''Template:My template/doc'', if the code ''<nowiki>{{</nowiki>Documentation}}'' has been included in the template.


===Programming in templates===
===Programming in Templates===
* [[Template:Qif|Qif]]: A template which allows you to make IF statements, similar to how they're used in programming languages.
* [[Template:Qif|Qif]]: A template which allows you to make IF statements, similar to how they're used in programming languages.
* [[Template:Loop]] - From [http://en.wikipedia.org/wiki/Template:Loop Wikipedia], "This template is used to produce a simple loop that can repeat up to 150 times. It is not a real loop; it works by conditionally repeating the string."
* [[Template:Loop]] - From [http://en.wikipedia.org/wiki/Template:Loop Wikipedia], "This template is used to produce a simple loop that can repeat up to 150 times. It is not a real loop; it works by conditionally repeating the string."
Line 72: Line 72:
* [http://en.wikipedia.org/wiki/Wikipedia:Anatomy_of_a_template Wikipedia:Anatomy of a template]
* [http://en.wikipedia.org/wiki/Wikipedia:Anatomy_of_a_template Wikipedia:Anatomy of a template]


==See also==
==See Also==
* {{plainlink|url={{SERVER}}/w/index.php?title=Special%3AAllPages&from=&to=&namespace=10 Full list of all templates}} (system generated; Note that many templates are used for very specific group of articles and some templates have more complex uses)
* {{plainlink|url={{SERVER}}/w/index.php?title=Special%3AAllPages&from=&to=&namespace=10 Full list of all templates}} (system generated; Note that many templates are used for very specific group of articles and some templates have more complex uses)


[[Category:Help Pages]]
[[Category:Help Pages]]
48,466

edits

Navigation menu