48,466
edits
m (→Reference) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Templates are an effective way of [[WikiIslam:Standardization|standardizing content]]. They are like regular wiki pages except that their page name begins with the keyword "Template:" (e.g. [[Template:Stub]]) | |||
A Stub template can be included on a stub page (a page that needs more content) by simply inserting <nowiki>{{</nowiki>stub}} on the page. Notice that the keyword (Template:) has been left out and the name of the template page has been surrounded with double curly brackets. Mediawiki calls this a transclusion ([http://www.mediawiki.org/wiki/Transclusion more info]). | A Stub template can be included on a stub page (a page that needs more content) by simply inserting <nowiki>{{</nowiki>stub}} on the page. Notice that the keyword (Template:) has been left out and the name of the template page has been surrounded with double curly brackets. Mediawiki calls this a transclusion ([http://www.mediawiki.org/wiki/Transclusion more info]). | ||
Line 38: | Line 38: | ||
* [[WikiIslam:Standardization]] - for templates related to Islamic texts | * [[WikiIslam:Standardization]] - for templates related to Islamic texts | ||
== | ==References== | ||
* [[Template:Reflist]] - produces a reference list at the bottom of an article when references (<nowiki><</nowiki>ref> tags) are used | * [[Template:Reflist]] - produces a reference list at the bottom of an article when references (<nowiki><</nowiki>ref> tags) are used | ||
* [[Template:Reference archive]] - used for links to WebCitation.org, which is used for preserving links in the long term | * [[Template:Reference archive]] - used for links to WebCitation.org, which is used for preserving links in the long term | ||
Line 47: | Line 47: | ||
==Links and Navigation== | ==Links and Navigation== | ||
* [[Template: | * [[Template:Plainlink]] - this makes a plain link to a site without having an arrow graphic ([http://example.com/ ]) in the way. | ||
* [[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== | ||
* [[Template:New Member]] - this will place (substitute) a welcome template on talk pages with the username of the editor who placed it there | |||
* [[Template:Unsigned]] - for | * [[Template:Unsigned]] - for users who did not sign their comment on a talk page | ||
==Writing Templates== | ==Writing Templates== | ||
Line 66: | Line 61: | ||
===Programming in Templates=== | ===Programming in Templates=== | ||
* [[Template: | * [[Template:Qif]] - allows IF statements, similar to how they are used in programming languages | ||
* [[Template:Loop]] - | * [[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:Pipe]] - used inside a template to produce a pipe: | | * [[Template:Pipe]] - used inside a template to produce a pipe: | | ||
* [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] |
edits