Portal:COVID-19/box-title
From WikiPathways
(Difference between revisions)
(New page: <br/><big><font color="#407F7F" size="5">Welcome to the COVID-19 Pathway Collection</font></big><br/><br/> <p>This special subset of disease pathways is being highlighted during the curren...) |
|||
Line 1: | Line 1: | ||
+ | <includeonly>{{Portal:Box-header | ||
+ | |title=<big>{{{1}}}</big> | ||
+ | |editpage={{{2}}} | ||
+ | |contents={{{{{3}}}}} <!-- Extra braces are needed to reference subpage --> | ||
+ | |footer={{{4}}} | ||
+ | |title-font-size=100% <!-- This is the font size of the Title Bar title --> | ||
+ | |titleforeground=white <!-- This is the color of the Title Bar text--> | ||
+ | |titlebackground=#308289 <!-- This is the color of the Title Bar --> | ||
+ | |foreground=black <!-- This is the color of the Box Section text --> | ||
+ | |background=#FFFFFF <!-- This is the color of the Box Section background --> | ||
+ | |border=white <!-- This is the color of the borders around Box Sections --> | ||
+ | }}</includeonly> | ||
+ | <noinclude> | ||
+ | {{Portal:Box-doc}} | ||
+ | </noinclude> | ||
+ | |||
+ | |||
+ | |||
<br/><big><font color="#407F7F" size="5">Welcome to the COVID-19 Pathway Collection</font></big><br/><br/> | <br/><big><font color="#407F7F" size="5">Welcome to the COVID-19 Pathway Collection</font></big><br/><br/> | ||
<p>This special subset of disease pathways is being highlighted during the current COVID-19 crisis. This content is released under a CC0 waiver to be freely used, reused and distributed. Let us know if you add a new pathway or want to recommend one for this collection.</p> | <p>This special subset of disease pathways is being highlighted during the current COVID-19 crisis. This content is released under a CC0 waiver to be freely used, reused and distributed. Let us know if you add a new pathway or want to recommend one for this collection.</p> |
Revision as of 18:21, 9 September 2020
This template generates a box for a portal home page. There are two types of boxes by default, 'title' and 'normal', which can be configured and used to give produce a unique look. Using these templates make editing a portal page easy!
Example
Here's an example of the output generated by this template.
Prerequisites
- Create a subpage first. If your portal is Portal:Test, then a subpage could be Portal:Test/News.
Parameters
Using this template for your portal page is easy! Just include these parameters
- title: The title text of the box. This is normally passed in as the first variable {{{1}}} when this template is used.
- editpage: (optional) The subpage that should be edited to change the contents of the box, e.g., Portal:Test/News. This is normally passed in as the second variable {{{2}}} when this template is used. If left blank, no edit link is generated, effectively protecting the contents from user edits.
- contents: The subpage that contains the contents of the box, e.g., Portal:Test/News. This is normally passed in as the third variable {{{3}}} when this template is used.
- footer: (optional) A link to any wiki or website page. This is normally passed in as the fourth variable {{{4}}} when this template is used. If left blank, no footer link is generated.
- title-font-size: The size of title text font.
- titleforeground: The color of the title text.
- titlebackground: The color of the background title bar.
- foreground: The color of the box area text.
- background: The color of the background box area.
- border: The color of the border around the box.
Welcome to the COVID-19 Pathway Collection
This special subset of disease pathways is being highlighted during the current COVID-19 crisis. This content is released under a CC0 waiver to be freely used, reused and distributed. Let us know if you add a new pathway or want to recommend one for this collection.