Help:Contents: Difference between revisions
Amwelladmin (talk | contribs) |
Amwelladmin (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
MediaWiki has a form of markup text behind it that does <nowiki>'''bold'''</nowiki> and <nowiki>[[hyperlinks]]</nowiki> and so on). It also allows you to call [ | MediaWiki has a form of markup text behind it that does <nowiki>'''bold'''</nowiki> and <nowiki>[[hyperlinks]]</nowiki> and so on). It also allows you to call [http://amwellclear.co.uk/w/index.php?title=Special%3AAllPages&from=&to=&namespace=10 Templates]– which are a special type of page – by using <nowiki>{{double}}</nowiki> curly brackets for notation. | ||
====Example==== | ====Example==== | ||
Let's say [[Template:Example1]] contains the text: | Let's say [[Template:Example1]] contains the text: | ||
Line 21: | Line 21: | ||
{{Example3|dog|cigarette}} | {{Example3|dog|cigarette}} | ||
Latest revision as of 19:52, 3 February 2016
MediaWiki has a form of markup text behind it that does '''bold''' and [[hyperlinks]] and so on). It also allows you to call Templates– which are a special type of page – by using {{double}} curly brackets for notation.
Example
Let's say Template:Example1 contains the text:
The cat sat on the mat.
To call the content of Template:Example1 on another page you insert {{Example1}}. This renders on the main page as:
The cat sat on the mat.
Enhanced things you can do with Templates
Embedding named or numbered variables in templates
You can do this by enclosing them in {{{triple}}} curly brackets. So, if Template:Example2 reads:
The {{{1}}} {{{2}}} on the {{{3}}}.
Inserting {{Example2|Frog|stood|Hippopotamus}}, will render as:
The Frog stood on the Hippopotamus.
Embedding templates in templates
You can do this by using curly quotes on a template page to call another template. So, if Template:Example3 reads
The {{{1}}} rolled over and lit a {{{2}}}. {{Example2|{{{1}}}|sat|sofa}}
Inserting {{Example3|dog|cigarette}} will render as:
The dog rolled over and lit a cigarette. The dog sat on the sofa.