48,466
edits
mNo edit summary |
|||
Line 10: | Line 10: | ||
==Templates with Variables== | ==Templates with Variables== | ||
Templates that accept variables are a | Templates that accept variables are a way to let the software take care of formatting issues. For example when putting in a reference to a website, the [[Template:Cite web|Cite web]] template can be used. All that is needed is the URL, URL Title, author, publisher and archive URL and it will automatically format the output. So, for example, editors would not have to worry about whether the author is mentioned first in that reference. | ||
Using variables also makes sure that formatting remains consistent in all those occurrences of cite web. | Using variables also makes sure that formatting remains consistent in all those occurrences of cite web. If the formatting was inputted manually, editors may place the author at the end of the reference and at other times place them at the beginning. Templates will make sure the output is consistent. | ||
They also enable | They also enable easy system-wide changes. The [[Template:Quran|Qur'an]] template also uses variables and has been updated multiple times when source websites had to be updated. System wide changes were made instantly which would be almost impossible to make if a template had not been used. | ||
Any time | Any time an editor is formatting text in a certain way (for example: "''date, author - URL (website title)''"), that means it can usually be done through templates. | ||
[[Template:Tabari]] is an example of a template that uses a simple type of input and produces a different output. | |||
Here are some templates that can be used on the website. | Here are some templates that can be used on the website. |
edits