Contents
How do I add a category to a Wikipedia page?
To add a page to a category, include ” [[Category:Category name]] ” or ” [[Category:Category name|Sortkey]] ” in that page’s wikimarkup. The categories to which a page belongs appear in a box at the bottom of the page.
How do I create a subpage in MediaWiki?
Use of subpages
- to create archives of old discussions under a talk page.
- to create scratchpad editing spaces under a user page.
- to create other-language versions of a document in multilingual wikis.
- to create a template’s subpages for its documentation, for its code sandbox, for its testcases, and for any subtemplate code.
What are MediaWiki templates?
Templates provide a means to repeat the same text on several pages. More advanced templates make use of parameters, and even of control structures as found in programming languages. That said, basic templates are quite easy to create, requiring no knowledge of programming.
Where do you find a template in MediaWiki?
Most templates are scripts using MediaWiki parser functions, nicknamed ” magic words “, a simple scripting language . Template pages are found in the template namespace. This means any page whose title begins with “Template:”, such as ” Template:foo “, can be used for that purpose.
Can a wiki page be used as a template?
In fact, an ordinary wiki page can also be used as a template, simply by specifying the namespace it resides in, so: If no such namespace exists, the full title is assumed to be a template: To enrich the mechanism of transclusion, MediaWiki allows parameters to be passed to a template when it is transcluded.
How do you substitute template text in Wikipedia?
Alternatively, if you do not wish the page to reflect future updates to the template, you can add { {subst: foo }} to the pages on which you want to use the boilerplate text. The system fetches a one-time copy of the template text and substitutes it into the page in place of the template tag.
How are templates Integrated into a web page?
The template content is “transcluded” into the other page, i.e. it is integrated in the page. You can then insert { {Welcome}} at any point of any page where you wish to welcome someone. Suppose it is used in 100 pages.