WikiIslam:Templates: Difference between revisions

Jump to navigation Jump to search
m
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
In a wiki website, templates are an effective way to save time by reusing content. They are like regular pages except that their page name begins with the keyword "Template:" (e.g. [[Template:Stub]])
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


==Reference==
==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:Plainlink]] - this makes a plain link to a site without having an arrow graphic ([http://en.wikipedia.org &nbsp;])&nbsp; in the way.
* [[Template:Plainlink]] - this makes a plain link to a site without having an arrow graphic ([http://example.com/ &nbsp;])&nbsp; in the way.
* [[Template:Wikipedia]] - links to a named Wikipedia article
* [[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
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:
:<nowiki>{{</nowiki>subst:New Member}}
This will place (substitute) a welcome template on their talk page with your username. The template used here is [[Template:New Member]].


; Users with IP addresses
* [[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 IP address users who did not sign their comment on a talk page.
* [[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:Qif|Qif]]: A template which allows you to make IF statements, similar to how they're used in programming languages.
* [[Template:Qif]] - allows IF statements, similar to how they are 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."
* [[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]
48,466

edits

Navigation menu