Help:Templates: Difference between revisions
From Destinypedia, the Destiny wiki
(Adapted from halopedia:Help:Templates) |
|||
Line 19: | Line 19: | ||
===Make your own=== | ===Make your own=== | ||
You can get your template to ask for information simply by adding this code <nowiki>{{{1}}}</nowiki> in your template. By adding the <nowiki>{{{1}}}</nowiki> the template knows to put whatever is passed first in place of the <nowiki>{{{1}}}</nowiki>. To add other values/variables/parameters just increase the number, i.e. <nowiki>{{{2}}}</nowiki> <nowiki>{{{3}}</nowiki> | You can get your template to ask for information simply by adding this code <nowiki>{{{1}}}</nowiki> in your template. By adding the <nowiki>{{{1}}}</nowiki> the template knows to put whatever is passed first in place of the <nowiki>{{{1}}}</nowiki>. To add other values/variables/parameters just increase the number, i.e. <nowiki>{{{2}}}</nowiki> <nowiki>{{{3}}</nowiki>. | ||
Here is some of the code from an outdated template. See how the <nowiki>{{{#}}}</nowiki>'s are placed where the parameters are supposed to go: | Here is some of the code from an outdated template. See how the <nowiki>{{{#}}}</nowiki>'s are placed where the parameters are supposed to go: |