Difference between revisions of "Technology Trends/User Guide"
Margie.venes (talk | contribs) |
|||
(24 intermediate revisions by one other user not shown) | |||
Line 23: | Line 23: | ||
</th> | </th> | ||
</tr> | </tr> | ||
− | |||
<tr> | <tr> | ||
<th>Status</th> | <th>Status</th> | ||
Line 39: | Line 38: | ||
<th>Official publication</th> | <th>Official publication</th> | ||
<td>[[Media:EN_-_Technology_Trends_-_User_Guide.pdf|User Guide.pdf]]</td> | <td>[[Media:EN_-_Technology_Trends_-_User_Guide.pdf|User Guide.pdf]]</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <th>Template</th> | ||
+ | <td>[[Media:EN_-_Technology_Trends_-_Template.zip|Template.zip]]</td> | ||
</tr> | </tr> | ||
<tr><td colspan="2" class="disclaimer"><table><tr> | <tr><td colspan="2" class="disclaimer"><table><tr> | ||
Line 47: | Line 50: | ||
</div> | </div> | ||
− | <br><p>This <b>User Guide</b> provides the instruction necessary to upload a new technology trend briefing paper. Most of the code is written in HTML using the CSS style. The goal of this page is to provide a step by step guide on how to create a page. | + | <br><p>This <b>User Guide</b> provides the instruction necessary to upload a new technology trend briefing paper. Most of the code is written in HTML using the CSS style. The goal of this page is to provide a step by step guide on how to create a page.</p> |
<div class="mw-collapsible-toggle btn" style="float: left; display: block;"> | <div class="mw-collapsible-toggle btn" style="float: left; display: block;"> | ||
Line 57: | Line 60: | ||
<h3>Getting a GCcollab account</h3> | <h3>Getting a GCcollab account</h3> | ||
− | <p>Before starting to code, you will need an account on [https://gccollab.ca/ GCcollab] in order to create and edit existing GCwiki source code. If you have | + | <p>Before starting to code, you will need an account on [https://gccollab.ca/ GCcollab] in order to create and edit existing GCwiki source code. If you have a Government of Canada email account the process should be simple. If not, a public servant with an existing account can invite using the invite button located at the top of the GCcollab dashboard.</p> |
<h3>Installing a Code Editor</h3> | <h3>Installing a Code Editor</h3> | ||
− | <p>Most of the code written on the technology trend page is done in HTML and CSS since they were found to be the easiest and offer | + | <p>Most of the code written on the technology trend page is done in HTML and CSS since they were found to be the easiest and offer a lot of versatility when it comes to styling. Therefore, it is highly recommended that you use a Code Editor for publishing the technology briefs. They are not obligatory, but they will simplify and accelerate the process. Below are three of the most popular environments and they should be sufficient. These platforms offer important tools and features such as syntax highlighting, file explorers, console, etc. Since Visual Studio Code is currently the most popular choice, examples in this user guide will use this editor, however the process is similar with others.</p> |
<ul> | <ul> | ||
<li><b>[https://code.visualstudio.com/ Visual Studio Code] : </b>A completed editor where all the tools are available after installation.</li> | <li><b>[https://code.visualstudio.com/ Visual Studio Code] : </b>A completed editor where all the tools are available after installation.</li> | ||
− | <li><b>[https://atom.io/ Atom] : </b>A simple and lightweight editor where most features are | + | <li><b>[https://atom.io/ Atom] : </b>A simple and lightweight editor where most features are available as packages and can be installed through the settings.</li> |
− | <li><b>[https://www.sublimetext.com/ Sublime Text] : </b>A classic editor offering | + | <li><b>[https://www.sublimetext.com/ Sublime Text] : </b>A classic editor offering some basics functionalities.</li> |
</ul> | </ul> | ||
<h3>Initializing the Code Editor</h3> | <h3>Initializing the Code Editor</h3> | ||
− | <p>After installing the editor, follow these | + | <p>After installing the editor, follow these steps to start creating your first file. For this example, we will be using Visual Studio Code but the process is similar on other platforms.</p> |
<ul> | <ul> | ||
− | <li><b>Creating a Workspace folder</b> : A workspace is a project folder located on your local computer that contains all of the project code. Locate a suitable directory on your computer | + | <li><b>Creating a Workspace folder</b> : A workspace is a project folder located on your local computer that contains all of the project code. Locate a suitable directory on your computer and create an empty folder with an appropriate name (such as "GCwiki").</li> |
− | <li><b>Adding the folder to the Editor's workspace</b> : | + | <li><b>Adding the folder to the Editor's workspace</b> : In Visual Studio, open the file explorer located on the left or by pressing Ctrl+Shift+E. Right click on the Workspace portion and click "Add Folder to Workspace". Locate and select the previously created folder as your new workspace.</li> |
− | <li><b>Creating a new file</b> : Right click on the project folder "GCwiki" and select | + | <li><b>Creating a new file</b> : Right click on the project folder "GCwiki" and select “new file”. Enter an appropriate filename with an ending of ".html" such as "EN - Example.html". Use this newly created file to write all the code for the technology brief.</li> |
<li><b>Adding the template's code</b> : Navigate to the [https://wiki.gccollab.ca/Technology_Trends template] page. On the upper navigation bar, select "view source" or, if you are logged in, "edit source". From there, copy and paste the [https://wiki.gccollab.ca/Technology_Trends template]'s code to your file. This template offers all the technology brief empty code.</li> | <li><b>Adding the template's code</b> : Navigate to the [https://wiki.gccollab.ca/Technology_Trends template] page. On the upper navigation bar, select "view source" or, if you are logged in, "edit source". From there, copy and paste the [https://wiki.gccollab.ca/Technology_Trends template]'s code to your file. This template offers all the technology brief empty code.</li> | ||
<li><b>Adjusting the template's code</b> : Before starting to publish the technology brief content, you need to adjust the template's information. All comments in the brackets "<span style="color: #008000"><!-- comment --></span>" need to be replace by the corresponding information. Don't forget to use the underscore (_) when using links and files</li> | <li><b>Adjusting the template's code</b> : Before starting to publish the technology brief content, you need to adjust the template's information. All comments in the brackets "<span style="color: #008000"><!-- comment --></span>" need to be replace by the corresponding information. Don't forget to use the underscore (_) when using links and files</li> | ||
Line 83: | Line 86: | ||
<h3>Publishing on GCwiki</h3> | <h3>Publishing on GCwiki</h3> | ||
− | <p> | + | <p>Before publishing a technology trend paper, it is important to know how the page will look like. While writing the code, select “Show preview” to make sure the generated page is being properly displayed with the right information. </p> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<ul> | <ul> | ||
− | <li><b></b></li> | + | <li><b>Creating a new page</b> : To create a new page on GCwiki, enter the corresponding name in the URL bar on top of your browser. For example: the link for this user guide is "https://wiki.gccollab.ca/Technology_Trends/User_Guide". The platform will offer you the option to create the corresponding page. Warning! Once a page has been created, it cannot be deleted, so enter a valid name that follows the standards. For English page, name starts with "Technology_Trends/" followed by the technology name using underscores rather than space. For French page, use "Tendances_Technologiques/" followed by the same structure.</li> |
+ | <li><b>Adding the code</b> : Navigate to the "Edit Source" tab on top of the page to publish your code. Copy and paste the corresponding code from Visual Studio Code to GCwiki. Press "Save changes" to publish or "Show preview" to view the resulting code.</li> | ||
</ul> | </ul> | ||
<h3>Visual Studio Code : Settings and Shortcuts</h3> | <h3>Visual Studio Code : Settings and Shortcuts</h3> | ||
− | <p> | + | <p>After installing Visual Studio Code, there are some parameters you might want to change and shortcuts you might want to know.</p> |
<ul> | <ul> | ||
− | <li><b> | + | <li><b>Auto-completion</b> : VS code has an autocomplete feature by default where if you start writing the tag and then press "tab", it will create the starting and closing tag. Ex: div.orange -> <span style="color: #007700"><div</span> <span style="color: #0000CC">class=</span><span style="background-color: #fff0f0">"orange"</span><span style="color: #007700">></div></span></li> |
+ | <li><b>Zoom</b> : To change the zoom level of the interface, press Ctrl+Shift+P to open the command bar and search for "Preferences: open settings (JSON)". In that file, change and save the "window.zoomLevel" to a suitable value.</li> | ||
+ | <li><b>autoClosingTags</b> : By default, VS code will recognise and try to close tags. However, this feature may not be suitable. To disable it, go to the same settings.json file as before and set the value to "false".</li> | ||
</ul> | </ul> | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<h2>Basics of HTML and CSS</h2> | <h2>Basics of HTML and CSS</h2> | ||
− | <p>This section introduces the fundamentals of HTML and CSS. | + | <p>This section introduces the fundamentals of HTML and CSS. HTML is markup language, meaning that it only describes the structure of a Web page and how the browser should display the content. HTML elements are represented by tags which usually consists of a start tag and an end tag with the content inserted in between. These tags affects the content is specific ways. Here are some basic examples:</p> |
− | |||
− | |||
<table class="wikitable markupTable"> | <table class="wikitable markupTable"> | ||
Line 151: | Line 142: | ||
</table> | </table> | ||
− | <p>HTML tags can have attributes that provide additional information about that element. They are always specified in the <b>start tag</b>. These attributes can change the behavior of the HTML element such as the | + | <p>HTML tags can have attributes that provide additional information about that element. They are always specified in the <b>start tag</b> tag. These attributes can change the behavior of the HTML element such as the style attribute used to specify the styling of an element. The more common attributes are the <b>id</b> used to define unique element and the <b>class</b> used to define elements sharing the same property. Once an HTML element has a class or an id, its style or behavior can be changed using CSS by addressing the corresponding name. Here are some examples:</p> |
<table class="wikitable markupTable"> | <table class="wikitable markupTable"> | ||
Line 175: | Line 166: | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | |||
− | |||
<h2>Technology Trend Content Publishing</h2> | <h2>Technology Trend Content Publishing</h2> | ||
− | <p>After the Code Editor has been installed and the template has been copy-pasted into the new technology brief file, you are ready to start publishing. Each brief is different so use the | + | <p>Most of the publishing work is done in HTML using classes to modify the style and the behavior of specific content. Editing the CSS shouldn't be necessary. After the Code Editor has been installed and the template has been copy-pasted into the new technology brief file, you are ready to start publishing. Each brief is different, so use the instructions provided below accordingly.</p> |
<h3>Information</h3> | <h3>Information</h3> | ||
− | <p>The first step is to change the template's information accordingly. Most of these changes | + | <p>The first step is to change the template's information accordingly. Most of these changes affect the right-sided table containing the brief's information. These modifications are commented such as <span style="color: #008000"><!-- comment --></span> to make it easier to locate and make the require changes. Be careful! The information follows a standard syntax and format that must be respected for the sake of consistency. Only the part in green needs to be changed. There is no need to understand what the code does.</p> |
<table class="wikitable markupTable"> | <table class="wikitable markupTable"> | ||
Line 251: | Line 240: | ||
<h3>Headers</h3> | <h3>Headers</h3> | ||
− | <p>Headers indicate a section of the document. In the brief, headers | + | <p>Headers indicate a section of the document. In the brief, headers start at H2 and go up for sub-sections. Any headers will show up in the table of content located at the top of the page.</p> |
<table class="wikitable markupTable"> | <table class="wikitable markupTable"> | ||
Line 266: | Line 255: | ||
<h3>Paragraph</h3> | <h3>Paragraph</h3> | ||
− | <p> | + | <p>A paragraph tag, denoted by the letter “p”, is opened like all other HTML tags with an opening<nowiki> “<p>” tag and a closing “</p>”</nowiki>. In the brief, when an entire paragraph (as shown below) needs to be uploaded with no special rendering this can be done using the paragraph tag.</p> |
<table class="wikitable markupTable"> | <table class="wikitable markupTable"> | ||
Line 279: | Line 268: | ||
</table> | </table> | ||
− | <p> | + | <p>In the brief, when an entire paragraph needs to be hidden/collapsible, this can be done by making the paragraph tag part of the class “highlighted mw-collapsible-content”. The CSS will render it as seen below.</p> |
<table class="wikitable markupTable"> | <table class="wikitable markupTable"> | ||
Line 299: | Line 288: | ||
</table> | </table> | ||
− | <p> | + | <p>When only part of a paragraph needs to be hidden/collapsible the paragraph will need to be separated into several paragraph tags based on if they need to be hidden/collapsible or not. Parts that do not need to be hidden/collapsible will be part of the class “inline”. This allows the CSS to render the entire paragraph as one piece of text. Areas of text requiring still to be hidden/collapsible are made part of the class “highlighted inline mw-collapsible-content”. An example can be seen below.</p> |
<table class="wikitable markupTable"> | <table class="wikitable markupTable"> | ||
Line 319: | Line 308: | ||
</table> | </table> | ||
− | <p> | + | <p>Because the “inline” tag removes the paragraph separation, two subsequent paragraphs require the “inline-spacer” class in between to reset the separation and make the second paragraph on a new line. This is only a problem when two consecutive paragraphs are made inline and do require this “inline-spacer” class in between.</p> |
<table class="wikitable markupTable"> | <table class="wikitable markupTable"> | ||
Line 343: | Line 332: | ||
<h3>List</h3> | <h3>List</h3> | ||
+ | <p><nowiki>Lists can be created in two ways. These are unordered lists which are simply bulleted, and ordered lists which are numbered. Unordered lists like all HTML tags are denoted by an opening “<ul>” tag and a closing “</ul>” tag. In the same manner, ordered lists are opened with an opening “<ol>” tag and a closing “</ol>” tag. The items in the list will be placed within these tags. List items require being individually wrapped in a “<li>” opening tag and closing “</li>” tag. An example of this can be seen below.</nowiki></p> | ||
<table class="wikitable markupTable"> | <table class="wikitable markupTable"> | ||
<tr> | <tr> | ||
Line 368: | Line 358: | ||
</table> | </table> | ||
− | <p> | + | <p>If elements in the list require being hidden/collapsible the entire list will need to be made as a list of lists. When doing this collapsible, items will be placed in a list that is part of the class “highlighted mw-collapsible-content”. An example of this can be seen below.</p> |
<table class="wikitable markupTable"> | <table class="wikitable markupTable"> | ||
Line 376: | Line 366: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td class="markup half"><span style="color: #007700"><ul></span><br/><span style="color: #007700"> <li></span>Element 1<span style="color: #007700"></li></span><br/><span style="color: #007700"></ul></span><br/><span style="color: #007700"><ul</span> <span style="color: #0000CC">class=</span><span style=" | + | <td class="markup half"><span style="color: #007700"><ul></span><br/><span style="color: #007700"> <li></span>Element 1<span style="color: #007700"></li></span><br/><span style="color: #007700"></ul></span><br/><span style="color: #007700"><ul</span> <span style="color: #0000CC">class=</span><span style="color: rgb(190, 70, 0)">"highlighted mw-collapsible-content"</span><span style="color: #007700">></span><br/><span style="color: #007700"> <li></span>Element 2<span style="color: #007700"></li></span><br/><span style="color: #007700"></ul></span></td> |
<td class="half"> | <td class="half"> | ||
<div class="mw-collapsible" data-expandtext="Show Detailed View" data-collapsetext="Hide Detailed View"> | <div class="mw-collapsible" data-expandtext="Show Detailed View" data-collapsetext="Hide Detailed View"> | ||
Line 392: | Line 382: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | + | <td class="markup half"><span style="color: #007700"><ol></span><br/><span style="color: #007700"> <li></span>Element 1<span style="color: #007700"></li></span><br/><span style="color: #007700"></ol></span><br/><span style="color: #007700"><ol</span> <span style="color: #0000CC">class=</span><span style="color: rgb(190, 70, 0)">"highlighted mw-collapsible-content"</span><span style="color: #0000CC"> start=</span><span style="color: rgb(190, 70, 0)">"2"</span><span style="color: #007700">></span><br/><span style="color: #007700"> <li></span>Element 2<span style="color: #007700"></li></span><br/><span style="color: #007700"></ol></span></td> | |
− | + | <td class="half"> | |
− | + | <div class="mw-collapsible" data-expandtext="Show Detailed View" data-collapsetext="Hide Detailed View"> | |
− | + | <div class="mw-collapsible-toggle btn" style="float: left; display: block;"> | |
− | + | <div class="toggle mw-collapsible-toggle-collapsed" role="button" tabindex="0"><span class="mw-collapsible-text">Hide Detailed View</span></div> | |
− | + | </div><br/><br/> | |
− | + | <ol> | |
− | + | <li>Element 1</li> | |
− | + | </ol> | |
− | + | <ol class="highlighted mw-collapsible-content" start="2"> | |
− | + | <li>Element 2</li> | |
− | + | </ol> | |
− | + | </div> | |
− | + | </td> | |
− | + | </tr> | |
</table> | </table> | ||
<h3>Tables</h3> | <h3>Tables</h3> | ||
− | < | + | <p>To make a table, use the tag “table” just like before. The table’s rows are then specified one after the other using the tag “tr”. Each cell is coded with either “th” for a header or “td” for details. In the table tab, add the class “wikitable” to add the Wikipedia style to a table or the class “sortable” to make be able to sort the table.</p> |
− | < | + | <table class="wikitable markupTable"> |
− | + | <tr> | |
− | + | <th>Markup</th> | |
− | + | <th>Renders as</th> | |
− | + | </tr> | |
− | + | <tr> | |
− | + | <td class="markup half"><span style="color: #007700"><table</span> <span style="color: #0000CC">class=</span><span style="color: rgb(190, 70, 0)">"wikitable sortable"</span><span style="color: #007700">></span><br/><span style="color: #007700"> <tr></span><br/><span style="color: #007700"> <th></span>Header 1<span style="color: #007700"></th></span><br/><span style="color: #007700"> <th></span>Header 2<span style="color: #007700"></th></span><br/><span style="color: #007700"> </tr></span><br/><span style="color: #007700"> <tr></span><br/><span style="color: #007700"> <td></span>Detail 1<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td></span>Detail 2<span style="color: #007700"></td></span><br/><span style="color: #007700"> </tr></span><br/><span style="color: #007700"> <tr></span><br/><span style="color: #007700"> <td></span>Detail 3<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td></span>Detail 4<span style="color: #007700"></td></span><br/><span style="color: #007700"> </tr></span><br/><span style="color: #007700"></table></span> | |
− | + | </td> | |
− | + | <td class="half"> | |
− | + | <table class="wikitable sortable" style="margin-left:auto; margin-right:auto;"> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | ||
− | < | ||
− | <table class="wikitable | ||
<tr> | <tr> | ||
− | <th> | + | <th>Header 1</th> |
− | <th> | + | <th>Header 2</th> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td>Detail 1</td> |
− | <td> | + | <td>Detail 2</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td>Detail 3</td> |
− | <td> | + | <td>Detail 4</td> |
</tr> | </tr> | ||
− | + | </table> | |
− | + | </td> | |
− | + | </tr> | |
− | + | </table> | |
− | + | ||
− | + | <h3>Links, Images and Files</h3> | |
− | + | ||
− | + | <p><nowiki>Links, files, and images are all denoted in a similar fashion with the double square brackets and a vertical line separator as such “[[ | ]]”. For links the left side of the separator contains the URL of the link (if it is a wiki link the title of the page can be given). On the right side of the separator is the name the user wishes to be displayed. Similar to links, files contain the file name to be displayed on the right side of the separator. The left side contains file name that was uploaded to the database separated by underscores. The left side also contains the prefix “Media:EN_-_”. An image is denoted the same way. Except the right side of the separator contains the size of the image in pixels (eg. 40px). The left side contains the name of the image with the prefix “File:”. Examples of all three can be seen below.</nowiki><br/></p> | |
− | + | ||
− | + | <p>Images and files need to be uploaded to the database by clicking the “Upload file” link on the left side of the page.</p> | |
− | + | ||
− | + | <table class="wikitable markupTable"> | |
− | + | <tr> | |
− | + | <th class="half">Markup</th> | |
− | + | <th class="half">Renders as</th> | |
− | + | </tr> | |
− | + | <tr> | |
− | + | <td class="markup"><nowiki>[https://www.canada.ca/en.html Canada.ca]</nowiki></td> | |
− | + | <td style="text-align: center">[https://www.canada.ca/en.html Canada.ca]</td> | |
− | + | </tr> | |
− | + | <tr> | |
− | + | <td class="markup"><nowiki>[[Technology_Trends|Home Page]]</nowiki></td> | |
− | + | <td style="text-align: center">[[Technology_Trends|Home Page]]</td> | |
− | + | </tr> | |
− | + | <tr> | |
− | + | <td class="markup"><nowiki>[[Media:EN_-_Technology_Trends_-_User_Guide.pdf|User Guide pdf]]</nowiki></td> | |
− | + | <td style="text-align: center">[[Media:EN_-_Technology_Trends_-_User_Guide.pdf|User Guide pdf]]</td> | |
− | + | </tr> | |
− | + | <tr> | |
− | + | <td class="markup"><nowiki>[[File:Traffic_cone.png|40px]]</nowiki></td> | |
− | + | <td style="text-align: center">[[File:Traffic_cone.png|40px]]</td> | |
− | + | </tr> | |
− | + | </table> | |
− | + | ||
− | + | <h3>References</h3> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <p> | + | <p><nowiki>References like other HTML tags are created with an opening <ref> tag and a closing </ref> tag. Within the reference tags the APA citation can be placed. After the citation a link can also be placed with the same format as previously discussed or simply with one square bracket pair like “[ ]”. Doing so, will cause the citation in the text to appear as a number, as seen in the example below.</nowiki></p> |
− | < | + | <table class="wikitable markupTable"> |
− | < | + | <tr> |
− | + | <th class="half">Markup</th> | |
− | + | <th class="half">Notation</th> | |
− | + | </tr> | |
− | </ | + | <tr> |
+ | </tr> | ||
+ | <tr> | ||
+ | <td class="markup"><span style="color: #007700"><p></span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.<span style="color: #007700"><ref></span>Wikipedia. (2019, September 1). <nowiki>[https://en.wikipedia.org/wiki/Main_Page Wikipedia]</nowiki>. Retrieved from Wikipedia<span style="color: #007700"></ref></p></span></td> | ||
+ | <td> | ||
+ | <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.<sup><nowiki>[1]</nowiki></sup></p> | ||
+ | <p class="header2">References</p> | ||
+ | <ol> | ||
+ | <li>Wikipedia. (2019, September 1). [https://en.wikipedia.org/wiki/Main_Page Wikipedia]. Retrieved from Wikipedia</li> | ||
+ | </ol> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </table> | ||
− | < | + | <h3>Main Pages</h3> |
− | < | + | <p>Once a brief is completed, changes must be made to the main “Technology Trend” page. The first change is to the recent addition banner. A link must be made to your new trend. The second change needed to be made is in the bottom table listing all the trend. Since the new trend is now available, the relevant information needs to be updated and the name be made into a link to the trend page.</p> |
− | |||
− | |||
− | |||
− | + | <table class="wikitable markupTable"> | |
− | </ | + | <tr> |
− | < | + | <th class="half">Markup</th> |
− | + | <th class="half">Renders as</th> | |
− | + | </tr> | |
− | + | <tr> | |
− | + | <td class="markup"><span style="color: #007700"><table></span><br/><span style="color: #007700"> <tr></span><br/><span style="color: #007700"> <td></span><nowiki>[[File:Traffic_cone.png|40px]]</nowiki><span style="color: #007700"></td></span><br/><span style="color: #007700"> <td</span> <span style="color: #0000CC">class=</span><span style="color: rgb(190, 70, 0)">"disclaimerText"</span><span style="color: #007700">></span>Recent additions include <nowiki>[[Technology_Trends/Blockchain|Blockchain]], [[Technology_Trends/Drones|Drones]]</nowiki>.<span style="color: #007700"></td></span><br/><span style="color: #007700"> </tr></span><br/><span style="color: #007700"></table></span></td> | |
− | + | <td> | |
− | + | <table class="disclaimer" style="margin: auto;"><tr> | |
− | + | <td>[[File:Traffic_cone.png|40px]]</td> | |
− | + | <td class="disclaimerText">Recent additions include [[Technology_Trends/Blockchain|Blockchain]], [[Technology_Trends/Drones|Drones]].</td> | |
− | + | </tr></table> | |
− | + | </td> | |
− | + | </tr> | |
− | + | <tr> | |
− | + | <td class="markup"><span style="color: #007700"><table</span> <span style="color: #0000CC">class=</span><span style="color: rgb(190, 70, 0)">"wikitable sortable technology-table"</span> <span style="color: #0000CC">style=</span><span style="color: rgb(190, 70, 0)">"border: 0px solid;"</span><span style="color: #007700">></span><br/><span style="color: #007700"> <tr></span><br/><span style="color: #007700"> <th</span> <span style="color: #0000CC">colspan=</span><span style="color: rgb(190, 70, 0)">"3"</span><span style="color: #007700">></span>Name<span style="color: #007700"></th></span><br/><span style="color: #007700"> <th></span>Status<span style="color: #007700"></th></span><br/><span style="color: #007700"> <th</span> <span style="color: #0000CC">style=</span><span style="color: rgb(190, 70, 0)">"white-space: nowrap;"</span><span style="color: #007700">></span>Release Date<span style="color: #007700"></th></span><br/><span style="color: #007700"> <th></span>Official Publications<span style="color: #007700"></th></span><br/><span style="color: #007700"> </tr></span><br/><span style="color: #007700"> <tr></span><br/><span style="color: #007700"> <td</span> <span style="color: #0000CC">style=</span><span style="color: rgb(190, 70, 0)">"border-right: 0px solid; text-align:right;"</span><span style="color: #007700">></span><nowiki>[[Technology_Trends/Blockchain|Blockchain]]</nowiki><span style="color: #007700"></td></span><br/><span style="color: #007700"> <td</span> <span style="color: #0000CC">style=</span><span style="color: rgb(190, 70, 0)">"border-left: 0px solid; border-right: 0px solid;"</span><span style="color: #007700">></span>-<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td</span> <span style="color: #0000CC">style=</span><span style="color: rgb(190, 70, 0)">"border-left: 0px solid; text-align:left"</span><span style="color: #007700">></span><nowiki>[[Tendances_Technologiques/Chaîne_de_Blocs|Chaîne de Blocs]]</nowiki><span style="color: #007700"></td></span><br/><span style="color: #007700"> <td></span>Published<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td></span>2019-05-23<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td></span><nowiki>[[Media:EN_-_Technology_Trends_-_Blockchain.pdf|EN]] - [[Media:FR_-_Tendances_Technologiques_-_Blockchain.pdf|FR]]</nowiki><span style="color: #007700"></td></span><br/><span style="color: #007700"> </tr></span><br/><span style="color: #007700"> <tr></span><br/><span style="color: #007700"> <td</span> <span style="color: #0000CC">style=</span><span style="color: rgb(190, 70, 0)">"border-right: 0px solid; text-align:right;"</span><span style="color: #007700">></span>3D XPoint (Optane)<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td</span> <span style="color: #0000CC">style=</span><span style="color: rgb(190, 70, 0)">"border-left: 0px solid; border-right: 0px solid;"</span><span style="color: #007700">></span>-<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td</span> <span style="color: #0000CC">style=</span><span style="color: rgb(190, 70, 0)">"border-left: 0px solid; text-align:left"</span><span style="color: #007700">></span>3D XPoint (Optane)<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td></span>Development<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td></span>FY 19-20 Q2<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td></td></span><br/><span style="color: #007700"> </tr></span><br/><span style="color: #007700"></table></span> | |
− | < | + | </td> |
− | + | <td> | |
− | + | <table class="wikitable sortable technology-table" style="border: 0px solid;"> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<tr> | <tr> | ||
− | < | + | <th colspan="3">Name</th> |
− | < | + | <th>Status</th> |
+ | <th style="white-space: nowrap;">Release Date</th> | ||
+ | <th>Official Publications</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td style="border-right: 0px solid; text-align:right;">[[Technology_Trends/Blockchain|Blockchain]]</td> |
− | <td> | + | <td style="border-left: 0px solid; border-right: 0px solid;">-</td> |
+ | <td style="border-left: 0px solid; text-align:left">[[Tendances_Technologiques/Chaîne_de_Blocs|Chaîne de Blocs]]</td> | ||
+ | <td>Published</td> | ||
+ | <td>2019-05-23</td> | ||
+ | <td>[[Media:EN_-_Technology_Trends_-_Blockchain_-_v0.2.pdf|EN]] - [[Media:FR_-_Tendances_Technologiques_-_Blockchain_-_v0.2.pdf|FR]]</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td style="border-right: 0px solid; text-align:right;">3D XPoint (Optane)</td> |
− | <td> | + | <td style="border-left: 0px solid; border-right: 0px solid;">-</td> |
− | + | <td style="border-left: 0px solid; text-align:left">3D XPoint (Optane)</td> | |
− | + | <td>Development</td> | |
− | + | <td>FY 19-20 Q2</td> | |
− | + | <td></td> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <td> | ||
− | <td> | ||
− | |||
− | |||
− | <td> | ||
− | <td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | </ | + | </td> |
− | </ | + | </tr> |
− | </ | + | </table> |
− | < | + | <h3>Hype cycle</h3> |
− | <p> | + | <p>To display a Hype cycle graphic with the translation table, Use this following code. This container will adjust the size of the graphic and place the table either side-by-side or below. This code is based on the bootstrap framework. Here is an example using Blockchain technology.</p> |
− | < | + | <table class="wikitable markupTable"> |
− | + | <tr> | |
− | + | <th class="half">Markup</th> | |
− | + | <th class="half">Notation</th> | |
− | < | + | </tr> |
− | + | <tr> | |
− | + | <td class="markup"><span style="color: #007700"><div</span> <span style="color: #0000CC">class=</span><span style="color: rgb(190, 70, 0)">"container"</span><span style="color: #007700">></span><br/><span style="color: #007700"> <div</span> <span style="color: #0000CC">class=</span><span style="color: rgb(190, 70, 0)">"row"</span><span style="color: #007700">></span><br/><span style="color: #007700"> <div</span> <span style="color: #0000CC">class=</span><span style="color: rgb(190, 70, 0)">"col-sm-8"</span><span style="color: #007700">></span><nowiki>[[File:EN_Technology_Trends_-_Blockchain_Hype_Cycle_2018.png|center]]</nowiki><span style="color: #007700"></div></span><br/><span style="color: #007700"> <div</span> <span style="color: #0000CC">class=</span><span style="color: rgb(190, 70, 0)">"col-sm-4"</span><span style="color: #007700">></span><br/><span style="color: #007700"> <table</span> <span style="color: #0000CC">class=</span><span style="color: rgb(190, 70, 0)">"wikitable hypecycleTable"</span><span style="color: #007700">></span><br/><span style="color: #007700"> <tr></span><br/><span style="color: #007700"> <th></span>English<span style="color: #007700"></th></span><br/><span style="color: #007700"> <th></span>Français<span style="color: #007700"></th></span><br/><span style="color: #007700"> </tr></span><br/><span style="color: #007700"> <tr></span><br/><span style="color: #007700"> <td></span>Figure 1. Hype Cycle for Blockchain Technologies, 2018<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td></span>Figure 1. Rapport Hype Cycle sur les technologies de la chaîne de blocs, 2018<span style="color: #007700"></td></span><br/><span style="color: #007700"> </tr></span><br/><span style="color: #007700"> <tr></span><br/><span style="color: #007700"> <td></span>Expectations<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td></span>Attentes<span style="color: #007700"></td></span><br/><span style="color: #007700"> </tr></span><br/><span style="color: #007700"> <tr></span><br/><span style="color: #007700"> <td></span>Time<span style="color: #007700"></td></span><br/><span style="color: #007700"> <td></span>Temps<span style="color: #007700"></td></span><br/><span style="color: #007700"> </tr></span><br/><span style="color: #007700"> </table></span><br/><span style="color: #007700"> </div></span><br/><span style="color: #007700"> </div></span><br/><span style="color: #007700"></div></span> | |
− | + | </td> | |
− | + | <td> | |
− | + | <table> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<tr> | <tr> | ||
− | <td> | + | <td><b> • div :</b></th> |
− | <td> | + | <td><i>(tag)</i></td> |
+ | <td>Division</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td><b> • container :</b></th> |
− | <td> | + | <td><i>(class)</i></td> |
+ | <td>Creates a container for a group of elements.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td><b> • row :</b></th> |
− | <td> | + | <td><i>(class)</i></td> |
+ | <td>Creates an inline space inside the container.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td><b> • col-sm-8 :</b></th> |
− | <td> | + | <td><i>(class)</i></td> |
+ | <td>Creates a column of width 8/12.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td><b> • col-sm-4 :</b></th> |
− | <td> | + | <td><i>(class)</i></td> |
+ | <td>Creates a column of width 4/12.</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | </ | + | </td> |
− | </ | + | </tr> |
− | + | <tr> | |
− | + | <th colspan="2">Renders as</th> | |
− | + | </tr> | |
− | + | <tr> | |
− | + | <td colspan="2"> | |
− | + | <div class="container"> | |
− | + | <div class="row"> | |
− | + | <div class="col-sm-8">[[File:EN_Technology_Trends_-_Blockchain_Hype_Cycle_2018.png|center]]</div> | |
− | + | <div class="col-sm-4"> | |
− | + | <table class="wikitable hypecycleTable"> | |
− | + | <tr> | |
− | + | <th>English</th> | |
− | + | <th>Français</th> | |
− | + | </tr> | |
− | < | + | <tr> |
− | + | <td>Figure 1. Hype Cycle for Blockchain Technologies, 2018</td> | |
− | + | <td>Figure 1. Rapport Hype Cycle sur les technologies de la chaîne de blocs, 2018</td> | |
− | + | </tr> | |
− | + | <tr> | |
− | + | <td>Expectations</td> | |
− | + | <td>Attentes</td> | |
− | + | </tr> | |
− | + | <tr> | |
− | + | <td>Time</td> | |
− | + | <td>Temps</td> | |
− | + | </tr> | |
− | + | </table> | |
− | + | </div> | |
− | + | </div> | |
− | + | </div> | |
− | + | </td> | |
− | + | </tr> | |
− | + | </table> | |
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | ||
− | </ | ||
− | |||
− | |||
{{#css: | {{#css: | ||
Line 988: | Line 758: | ||
line-height: 27.3px; | line-height: 27.3px; | ||
text-decoration: underline; | text-decoration: underline; | ||
+ | } | ||
+ | |||
+ | .centered{ | ||
+ | margin-left: auto; | ||
+ | margin-right: auto; | ||
} | } | ||
Latest revision as of 11:28, 25 November 2019
|
|||||||
---|---|---|---|---|---|---|---|
Status | Translation | ||||||
Initial release | September 1, 2019 | ||||||
Latest version | September 1, 2019 | ||||||
Official publication | User Guide.pdf | ||||||
Template | Template.zip | ||||||
|
This User Guide provides the instruction necessary to upload a new technology trend briefing paper. Most of the code is written in HTML using the CSS style. The goal of this page is to provide a step by step guide on how to create a page.
Initialization and Configuration
Getting a GCcollab account
Before starting to code, you will need an account on GCcollab in order to create and edit existing GCwiki source code. If you have a Government of Canada email account the process should be simple. If not, a public servant with an existing account can invite using the invite button located at the top of the GCcollab dashboard.
Installing a Code Editor
Most of the code written on the technology trend page is done in HTML and CSS since they were found to be the easiest and offer a lot of versatility when it comes to styling. Therefore, it is highly recommended that you use a Code Editor for publishing the technology briefs. They are not obligatory, but they will simplify and accelerate the process. Below are three of the most popular environments and they should be sufficient. These platforms offer important tools and features such as syntax highlighting, file explorers, console, etc. Since Visual Studio Code is currently the most popular choice, examples in this user guide will use this editor, however the process is similar with others.
- Visual Studio Code : A completed editor where all the tools are available after installation.
- Atom : A simple and lightweight editor where most features are available as packages and can be installed through the settings.
- Sublime Text : A classic editor offering some basics functionalities.
Initializing the Code Editor
After installing the editor, follow these steps to start creating your first file. For this example, we will be using Visual Studio Code but the process is similar on other platforms.
- Creating a Workspace folder : A workspace is a project folder located on your local computer that contains all of the project code. Locate a suitable directory on your computer and create an empty folder with an appropriate name (such as "GCwiki").
- Adding the folder to the Editor's workspace : In Visual Studio, open the file explorer located on the left or by pressing Ctrl+Shift+E. Right click on the Workspace portion and click "Add Folder to Workspace". Locate and select the previously created folder as your new workspace.
- Creating a new file : Right click on the project folder "GCwiki" and select “new file”. Enter an appropriate filename with an ending of ".html" such as "EN - Example.html". Use this newly created file to write all the code for the technology brief.
- Adding the template's code : Navigate to the template page. On the upper navigation bar, select "view source" or, if you are logged in, "edit source". From there, copy and paste the template's code to your file. This template offers all the technology brief empty code.
- Adjusting the template's code : Before starting to publish the technology brief content, you need to adjust the template's information. All comments in the brackets "<!-- comment -->" need to be replace by the corresponding information. Don't forget to use the underscore (_) when using links and files
Publishing on GCwiki
Before publishing a technology trend paper, it is important to know how the page will look like. While writing the code, select “Show preview” to make sure the generated page is being properly displayed with the right information.
- Creating a new page : To create a new page on GCwiki, enter the corresponding name in the URL bar on top of your browser. For example: the link for this user guide is "https://wiki.gccollab.ca/Technology_Trends/User_Guide". The platform will offer you the option to create the corresponding page. Warning! Once a page has been created, it cannot be deleted, so enter a valid name that follows the standards. For English page, name starts with "Technology_Trends/" followed by the technology name using underscores rather than space. For French page, use "Tendances_Technologiques/" followed by the same structure.
- Adding the code : Navigate to the "Edit Source" tab on top of the page to publish your code. Copy and paste the corresponding code from Visual Studio Code to GCwiki. Press "Save changes" to publish or "Show preview" to view the resulting code.
Visual Studio Code : Settings and Shortcuts
After installing Visual Studio Code, there are some parameters you might want to change and shortcuts you might want to know.
- Auto-completion : VS code has an autocomplete feature by default where if you start writing the tag and then press "tab", it will create the starting and closing tag. Ex: div.orange -> <div class="orange"></div>
- Zoom : To change the zoom level of the interface, press Ctrl+Shift+P to open the command bar and search for "Preferences: open settings (JSON)". In that file, change and save the "window.zoomLevel" to a suitable value.
- autoClosingTags : By default, VS code will recognise and try to close tags. However, this feature may not be suitable. To disable it, go to the same settings.json file as before and set the value to "false".
Basics of HTML and CSS
This section introduces the fundamentals of HTML and CSS. HTML is markup language, meaning that it only describes the structure of a Web page and how the browser should display the content. HTML elements are represented by tags which usually consists of a start tag and an end tag with the content inserted in between. These tags affects the content is specific ways. Here are some basic examples:
Markup | Renders as |
---|---|
<h1>Header 1</h1> | Header 1 |
<h2>Header 2</h2> | Header 2 |
<p>Paragraph</p> | Paragraph |
<div>Division</div> | Division |
<b>Bold</b> | Bold |
<i>Italic</i> | Italic |
<u>Underline</u> | Underline |
HTML tags can have attributes that provide additional information about that element. They are always specified in the start tag tag. These attributes can change the behavior of the HTML element such as the style attribute used to specify the styling of an element. The more common attributes are the id used to define unique element and the class used to define elements sharing the same property. Once an HTML element has a class or an id, its style or behavior can be changed using CSS by addressing the corresponding name. Here are some examples:
Markup | Style | Renders as |
---|---|---|
<span style="color:red;">Red text</span> | red | |
<span id="blueText">Blue Text</span> | #blueText { color: blue; } | Blue Text |
<span class="green">Green Text</span> | .green { color: green; } | Green Text |
Technology Trend Content Publishing
Most of the publishing work is done in HTML using classes to modify the style and the behavior of specific content. Editing the CSS shouldn't be necessary. After the Code Editor has been installed and the template has been copy-pasted into the new technology brief file, you are ready to start publishing. Each brief is different, so use the instructions provided below accordingly.
Information
The first step is to change the template's information accordingly. Most of these changes affect the right-sided table containing the brief's information. These modifications are commented such as <!-- comment --> to make it easier to locate and make the require changes. Be careful! The information follows a standard syntax and format that must be respected for the sake of consistency. Only the part in green needs to be changed. There is no need to understand what the code does.
line # | Name | Description | Example |
---|---|---|---|
2 | French Version Link | This GCwiki link redirects to the french version of this page. | [[fr:Tendances_Technologiques/Guide_d'Utilisateur]] |
13 | Brief Title | This is the name of the brief in the side table in plain text. | User Guide |
20 | French Version Link | This link redirects to the french version. | [[Tendances_Technologiques/Guide_d'Utilisateur|Guide d'Utilisateur]] |
25 | Logo File Link | This link displays the logo. | [[File:Technology_Trends_-_User_Guide.png|200px]] |
28 | Status | Chose one of these 4 states this brief is currently at. | Unassigned / Development / Translation / Published |
32 | Initial Release | Simple date text | September 1, 2020 |
36 | Latest Version | Simple date text | September 1, 2020 |
40 | Publication File Link | This link shows the published version of this brief. | [[Media:EN_-_Technology_Trends_-_User_Guide.pdf|User Guide.pdf-->]] |
78 | Wiki Page Name | This changes the name of this GCwiki page. | #firstHeading::after{ content:"User Guide"; } |
Headers
Headers indicate a section of the document. In the brief, headers start at H2 and go up for sub-sections. Any headers will show up in the table of content located at the top of the page.
Markup | Renders as |
---|---|
<h2>Business Brief</h2> | Business Brief |
Paragraph
A paragraph tag, denoted by the letter “p”, is opened like all other HTML tags with an opening “<p>” tag and a closing “</p>”. In the brief, when an entire paragraph (as shown below) needs to be uploaded with no special rendering this can be done using the paragraph tag.
Markup | Renders as |
---|---|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis gravida tellus. Pellentesque egestas nisi id diam accumsan, non vulputate neque viverra. Aenean ut tempus turpis. Nullam ac pellentesque ligula.</p> | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis gravida tellus. Pellentesque egestas nisi id diam accumsan, non vulputate neque viverra. Aenean ut tempus turpis. Nullam ac pellentesque ligula. |
In the brief, when an entire paragraph needs to be hidden/collapsible, this can be done by making the paragraph tag part of the class “highlighted mw-collapsible-content”. The CSS will render it as seen below.
Markup | Renders as |
---|---|
<p class="highlighted mw-collapsible-content">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis gravida tellus. Pellentesque egestas nisi id diam accumsan, non vulputate neque viverra. Aenean ut tempus turpis. Nullam ac pellentesque ligula.</p> |
Hide Detailed View
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis gravida tellus. Pellentesque egestas nisi id diam accumsan, non vulputate neque viverra. Aenean ut tempus turpis. Nullam ac pellentesque ligula. |
When only part of a paragraph needs to be hidden/collapsible the paragraph will need to be separated into several paragraph tags based on if they need to be hidden/collapsible or not. Parts that do not need to be hidden/collapsible will be part of the class “inline”. This allows the CSS to render the entire paragraph as one piece of text. Areas of text requiring still to be hidden/collapsible are made part of the class “highlighted inline mw-collapsible-content”. An example can be seen below.
Markup | Renders as |
---|---|
<p class="inline">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p><p class="highlighted inline mw-collapsible-content">Sed quis gravida tellus. Pellentesque egestas nisi id diam accumsan, non vulputate neque viverra.</p><p class="inline"> Aenean ut tempus turpis. Nullam ac pellentesque ligula.</p> |
Hide Detailed View
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis gravida tellus. Pellentesque egestas nisi id diam accumsan, non vulputate neque viverra. Aenean ut tempus turpis. Nullam ac pellentesque ligula. |
Because the “inline” tag removes the paragraph separation, two subsequent paragraphs require the “inline-spacer” class in between to reset the separation and make the second paragraph on a new line. This is only a problem when two consecutive paragraphs are made inline and do require this “inline-spacer” class in between.
Markup | Renders as |
---|---|
<p class="inline">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p><p class="highlighted inline mw-collapsible-content">Sed quis gravida tellus. Pellentesque egestas nisi id diam accumsan, non vulputate neque viverra.</p><p class="inline-spacer"></p><p class="inline">Nunc vel sapien efficitur, convallis nulla bibendum, gravida metus.</p><p class="highlighted inline mw-collapsible-content">Integer pharetra aliquet nibh non interdum.</p> |
Hide Detailed View
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis gravida tellus. Pellentesque egestas nisi id diam accumsan, non vulputate neque viverra. Nunc vel sapien efficitur, convallis nulla bibendum, gravida metus. Integer pharetra aliquet nibh non interdum. |
List
Lists can be created in two ways. These are unordered lists which are simply bulleted, and ordered lists which are numbered. Unordered lists like all HTML tags are denoted by an opening “<ul>” tag and a closing “</ul>” tag. In the same manner, ordered lists are opened with an opening “<ol>” tag and a closing “</ol>” tag. The items in the list will be placed within these tags. List items require being individually wrapped in a “<li>” opening tag and closing “</li>” tag. An example of this can be seen below.
Markup | Renders as |
---|---|
<ul> <li>Element 1</li> <li>Element 2</li> </ul> |
|
<ol> <li>Element 1</li> <li>Element 2</li> </ol> |
|
If elements in the list require being hidden/collapsible the entire list will need to be made as a list of lists. When doing this collapsible, items will be placed in a list that is part of the class “highlighted mw-collapsible-content”. An example of this can be seen below.
Markup | Renders as |
---|---|
<ul> <li>Element 1</li> </ul> <ul class="highlighted mw-collapsible-content"> <li>Element 2</li> </ul> |
Hide Detailed View
|
<ol> <li>Element 1</li> </ol> <ol class="highlighted mw-collapsible-content" start="2"> <li>Element 2</li> </ol> |
Hide Detailed View
|
Tables
To make a table, use the tag “table” just like before. The table’s rows are then specified one after the other using the tag “tr”. Each cell is coded with either “th” for a header or “td” for details. In the table tab, add the class “wikitable” to add the Wikipedia style to a table or the class “sortable” to make be able to sort the table.
Markup | Renders as | ||||||
---|---|---|---|---|---|---|---|
<table class="wikitable sortable"> <tr> <th>Header 1</th> <th>Header 2</th> </tr> <tr> <td>Detail 1</td> <td>Detail 2</td> </tr> <tr> <td>Detail 3</td> <td>Detail 4</td> </tr> </table> |
|
Links, Images and Files
Links, files, and images are all denoted in a similar fashion with the double square brackets and a vertical line separator as such “[[ | ]]”. For links the left side of the separator contains the URL of the link (if it is a wiki link the title of the page can be given). On the right side of the separator is the name the user wishes to be displayed. Similar to links, files contain the file name to be displayed on the right side of the separator. The left side contains file name that was uploaded to the database separated by underscores. The left side also contains the prefix “Media:EN_-_”. An image is denoted the same way. Except the right side of the separator contains the size of the image in pixels (eg. 40px). The left side contains the name of the image with the prefix “File:”. Examples of all three can be seen below.
Images and files need to be uploaded to the database by clicking the “Upload file” link on the left side of the page.
Markup | Renders as |
---|---|
[https://www.canada.ca/en.html Canada.ca] | Canada.ca |
[[Technology_Trends|Home Page]] | Home Page |
[[Media:EN_-_Technology_Trends_-_User_Guide.pdf|User Guide pdf]] | User Guide pdf |
[[File:Traffic_cone.png|40px]] |
References
References like other HTML tags are created with an opening <ref> tag and a closing </ref> tag. Within the reference tags the APA citation can be placed. After the citation a link can also be placed with the same format as previously discussed or simply with one square bracket pair like “[ ]”. Doing so, will cause the citation in the text to appear as a number, as seen in the example below.
Markup | Notation |
---|---|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.<ref>Wikipedia. (2019, September 1). [https://en.wikipedia.org/wiki/Main_Page Wikipedia]. Retrieved from Wikipedia</ref></p> |
Lorem ipsum dolor sit amet, consectetur adipiscing elit.[1] References
|
Main Pages
Once a brief is completed, changes must be made to the main “Technology Trend” page. The first change is to the recent addition banner. A link must be made to your new trend. The second change needed to be made is in the bottom table listing all the trend. Since the new trend is now available, the relevant information needs to be updated and the name be made into a link to the trend page.
Markup | Renders as | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<table> <tr> <td>[[File:Traffic_cone.png|40px]]</td> <td class="disclaimerText">Recent additions include [[Technology_Trends/Blockchain|Blockchain]], [[Technology_Trends/Drones|Drones]].</td> </tr> </table> |
|
||||||||||||||||||
<table class="wikitable sortable technology-table" style="border: 0px solid;"> <tr> <th colspan="3">Name</th> <th>Status</th> <th style="white-space: nowrap;">Release Date</th> <th>Official Publications</th> </tr> <tr> <td style="border-right: 0px solid; text-align:right;">[[Technology_Trends/Blockchain|Blockchain]]</td> <td style="border-left: 0px solid; border-right: 0px solid;">-</td> <td style="border-left: 0px solid; text-align:left">[[Tendances_Technologiques/Chaîne_de_Blocs|Chaîne de Blocs]]</td> <td>Published</td> <td>2019-05-23</td> <td>[[Media:EN_-_Technology_Trends_-_Blockchain.pdf|EN]] - [[Media:FR_-_Tendances_Technologiques_-_Blockchain.pdf|FR]]</td> </tr> <tr> <td style="border-right: 0px solid; text-align:right;">3D XPoint (Optane)</td> <td style="border-left: 0px solid; border-right: 0px solid;">-</td> <td style="border-left: 0px solid; text-align:left">3D XPoint (Optane)</td> <td>Development</td> <td>FY 19-20 Q2</td> <td></td> </tr> </table> |
|
Hype cycle
To display a Hype cycle graphic with the translation table, Use this following code. This container will adjust the size of the graphic and place the table either side-by-side or below. This code is based on the bootstrap framework. Here is an example using Blockchain technology.
Markup | Notation | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<div class="container"> <div class="row"> <div class="col-sm-8">[[File:EN_Technology_Trends_-_Blockchain_Hype_Cycle_2018.png|center]]</div> <div class="col-sm-4"> <table class="wikitable hypecycleTable"> <tr> <th>English</th> <th>Français</th> </tr> <tr> <td>Figure 1. Hype Cycle for Blockchain Technologies, 2018</td> <td>Figure 1. Rapport Hype Cycle sur les technologies de la chaîne de blocs, 2018</td> </tr> <tr> <td>Expectations</td> <td>Attentes</td> </tr> <tr> <td>Time</td> <td>Temps</td> </tr> </table> </div> </div> </div> |
|
|||||||||||||||
Renders as | ||||||||||||||||