How to Wiki: Difference between revisions
Malcolmmcc (talk | contribs) |
Malcolmmcc (talk | contribs) |
||
Line 156: | Line 156: | ||
</div> | </div> | ||
The code is need on many pages. It is | The code is need on many pages. It is therefore added to a new page on the wiki named <code>Template:Stub</code>. Then, once saved, the template can be called upon using double curly brackets around the name of the template, i.e. <strong><nowiki>{{Stub}}</nowiki></strong> . As long as the code is created in a document labeled 'Template:XXXXX', it can then be called upon again by '''<nowiki>{{XXXXX}}</nowiki>'''. <br> | ||
For more information on importing templates used on Wikipedia for example, navigate to [[Infoboxes#Export/Import]] | For more information on importing templates used on Wikipedia for example, navigate to [[Infoboxes#Export/Import]] | ||
===Good templates=== | ===Good templates=== | ||
Below is a table of templates used throughout the wiki for consistency, such as TopBars, buttons, and labels. This introduces a good function of templates, variables. When creating a template, if you insert {{{1}}}, that '''''1''''' can be filled when the template is called, separated by vertical lines <code>|</code>. | Below is a table of templates used throughout the wiki for consistency, such as TopBars, buttons, and labels. This introduces a good function of templates, variables. When creating a template, if you insert {{{1}}}, that '''''1''''' can be filled when the template is called, separated by vertical lines <code>|</code>. By adding templates, you can use the "what links here" tool on the left hand side, showing all articles that use that template. We can therefore see all pages that use [[Template:Empty]], for example. | ||
{| class="wikitable collapsible alternating" | {| class="wikitable collapsible alternating" | ||
|- | |- |