Difference between revisions of "User:Evolena"
(Testing Transclusion) |
(Testing Templates - Infobox) |
||
Line 90: | Line 90: | ||
Ok, so the Left and Right Sections go further the end of the "grid-container" div. | Ok, so the Left and Right Sections go further the end of the "grid-container" div. | ||
= Formatting = | |||
Start with a whitespace for code block | |||
= Transclusion = | |||
{{Turn off victory points}} | |||
Add a leading colon to adress the Main namespace instead of the Templates: | |||
{{:Turn off victory points}} | |||
== Partial transclusion == | |||
-- From the Wikimedia documentation | |||
The partial inclusion is defined from the transcluded page, not the transcluding one. Use the "noinclude", "includeonly" or "onlyinclude" (seriously ??) tags in the '''source''' page: | |||
* "noinclude" -> visible in the source page, not transcluded in the target page | |||
* "includeonly" -> invisible in the source page, transcluded in the target page | |||
* "onlyinclude" -> visible on both pages (/!\ no matter the 2 other tags, especially "includeonly" will be ignored - also, this one is still wikified even into a "nowiki" tag) | |||
= Icons = | = Icons = | ||
Line 98: | Line 120: | ||
* Lowercase, space: {{icon| civics}} | * Lowercase, space: {{icon| civics}} | ||
-> no effect in the syntax | -> no effect in the syntax, nor the linked page | ||
* 12px: {{icon|civics|12px}} {{icon|training|12px}} | * 12px: {{icon|civics|12px}} {{icon|training|12px}} | ||
Line 111: | Line 133: | ||
-> size taken into account | -> size taken into account | ||
= | = Other Templates = | ||
== Infobox == | |||
{{infobox | |||
| title = "title" parameter - or title of the current page | |||
| name = "name" parameter - no | |||
| image = "image" parameter - filename | |||
| section1 = "section1" parameter - no | |||
| info1 = "info1" parameter - no | |||
| info1value = "info1value" parameter - no | |||
| info2 = "info2" parameter - no | |||
| info2value = "info2value" parameter - no | |||
| param1 = "param1" parameter | |||
| param2 = "param2" parameter | |||
| param3 = "param3" parameter | |||
| param4 = "param4" parameter | |||
| param5 = "param5" parameter | |||
| param6 = "param6" parameter - no | |||
}} |
Revision as of 06:21, 25 February 2023
Sections
So, SectionTemplate (but not HeaderTemplate) is considered a level 2 title for the Table of Content.
Syntax
My Sandbox ("welcome" parameter)
|
for testing ("blurb" parameter) |
A Section ("title" parameter)
Content ("content" parameter) within a "div" element with the class "middle2"
Grid
Left Section
Content with the class "left", into a grid-container
Right Section
Content with the class "right", into a grid-container
Must be before the "middle" sections, otherwise it is just displayed below them.
Left 2 Section
Content with the class "left2", into a grid-container
More than one "left" or "right" section messses things.
Right 2 Section
Content with the class "right2", into a grid-container
Middle Section
Content with the class "middle", into a grid-container
Middle Section bis
Content with the class "middle", into a grid-container - again
Without incrementing the class name, the sections overlaps.
Middle 2 Section
Content with the class "middle2", into a grid-container
Incrementing the class name prevents overlaping
Middle 3 Section
Content with the class "middle3", into a grid-container
Ok, so the Left and Right Sections go further the end of the "grid-container" div.
Formatting
Start with a whitespace for code block
Transclusion
Template:Turn off victory points
Add a leading colon to adress the Main namespace instead of the Templates:
how to turn off victory points to extend game
Partial transclusion
-- From the Wikimedia documentation
The partial inclusion is defined from the transcluded page, not the transcluding one. Use the "noinclude", "includeonly" or "onlyinclude" (seriously ??) tags in the source page:
- "noinclude" -> visible in the source page, not transcluded in the target page
- "includeonly" -> invisible in the source page, transcluded in the target page
- "onlyinclude" -> visible on both pages (/!\ no matter the 2 other tags, especially "includeonly" will be ignored - also, this one is still wikified even into a "nowiki" tag)
Icons
-> no effect in the syntax, nor the linked page
-> no effect (16x17 for civics for a 40x42 file / 16x22 for training for a 31x42 file)
-> size taken into account
Other Templates
Infobox
Parameter 1 | "param1" parameter |
---|---|
Parameter 2 | "param2" parameter |
Parameter 3 | "param3" parameter |
Parameter 4 | "param4" parameter |
Parameter 5 | "param5" parameter |