Help:Templates
From CanonBase
Templates
A template is a page that can be inserted in another page. This avoids copying of information and ensures the information is identical in each page it is used. (In wiki terminology this is called Transclusion.
This can be at the same time a disadvantage, because the information cannot be adapted to a specific page.
Create a template
To create a template for a property description:
- Go to https://canonbase.eu/wiki/Template:Properties
- Add the property between double square brackets with a prefix “template:” and add the name the Pnr included after a bar.
Example [[template:Name of the property|Name of the property (P999)]]
- Safe the page, you should see now the link you created in grey (because the page does not exist yet).
- Click the link and add the information in the standardised format and save.
- Copy the page name from the URL add it to the main template page behind the link (this is useful to create insert references later)
Example [[template:Name of the property|Name of the property (P999)]] Name_of_the_property
Inserting a template
- Go to the page https://canonbase.eu/wiki/Template:Properties
- Copy the name behind the link
- Add the name between double accolades in the help page where you want it to be visible
Example: {{Name_of_the_property}}
- Add specific information below the reference.