Help:Article Structure
From iGeek
Understanding how to create or edit an article. What is the overlying structure of it, and what should you add?
~ Aristotle Sabouni |
Forms or Edit Source
We can create articles from a Form (Item is the most common type), just fill out the fields, with the Content and it will create the structure of an article for you. But it helps to know what that structure is if you Edit (or "Edit Source") on an article. I will explain the structure/what it's doing.
|
{{+Page_Template}} Body {{-Page_Template}} |
Basics Parts
- Top Template - (Header) with the Metadata that goes above the body and starts the article.
- Article Body - the contents of the article
- Bottom Template - (Footer) with the Metadata that goes below the body, and ends the article.
- Top Template - (Header) with the Metadata that goes above the body and starts the article.
- Article Body - the contents of the article
- Bottom Template - (Footer) with the Metadata that goes below the body, and ends the article.
There's a lot more to the (+)beginning and (-)ending templates. They often have multiple parameters (values) set, that set (Metadata or define how contents will be formatted. The important part is that things wrapped in {{ and }} are special pages (templates), with optional paramaters, that tell the system how the content should be displayed. |
{{+Page_Template}} <onlyinclude> Body </onlyinclude> {{-Page_Template}} |
- Inclusion tags Some pages include other pages, or parts of them. (This is called "transclusion").
- Since we don't want the entire page included (or you'd have multiple headers and footers on any page that included another page) we wrap text we want to exclude or include with tags to tell the system whether this should be included or not.<
- The most common example is using the <onlyinclude></onlyinclude> tag to hint that only include the stuff between those tags (and ignore/exclude) everything outside of them.
🔗 More
| |
| |