35
edits
Changes
m
== Intro ==Welcome to EUSWikithe EUSwiki! Thank you for your interest in helping contribute! There are a lot of ways to tackle a wiki, so on this page we've tried to sum up all best practices used on the EUSwiki. Syntax can be confusing, but stick with it. Copying and pasting code from articles that you like is how a MediaWiki hosted wikipedia pagegreat wiki can be built, there's no shame in that.<br>'''''Google is your friend''''', there are better guides out there for specific tips you may be looking for. All But here we've grouped tools that are already installed and any ready for use. Mediawiki is the format that wikipedias are built on, including that in your search will help .<br>If you may need can be any help, please reach out to the [httpsmailto://wwwwiki.mediawikicurator@mcgilleus.org found hereca EUS Wiki Curator(s)], but I will try . Thank you for your contribution!<div class="noautonum">__TOC__</div>=== Signing Up For An Account ===The Wiki has had some unfortunate run-ins with some very nefarious spam bots and as such now requires new accounts to receive approval. Navigate yourself to the top right hand corner of the wiki and provide fill out the mere basics here"Create account". Use your personal google account and signing up only takes seconds!
<h4>Test 4</h4>
<h5>Test 5</h5>
<h6>Test 6</h6>
== Categories ==To add a category, you can insert the following tag at the very end of the article: <nowiki>[[category:**********EUS Constitution#TITLE III ELECTIONS|election section]]</nowikipre> Where ****** is your desired category.|[[EUS Constitution|constitution]]
In order to make '''nested categories''', you simply need to replicate the tag[[EUS Constitution#TITLE III ELECTIONS|election section]]|-|External link with specified link text|<pre>[https://mediawiki. Say I want to categorize Countries with a subcategory England with a subcategory Londonorg MediaWiki]</pre>|[https://mediawiki.org MediaWiki]|-|}
<nowiki>===Adding Colors===[[categoryFile:CountriesColor.jpg|thumb|100px|right]] Mediawiki supports a host of vernacular terms to colorize content without needing to know the hexadecimal values. So, when using 'style', insert one of the names to the right instead of the actual color value. It saves the trouble of remembering those pesky alphanumeric values, and spreads consistency.===Redirects===Redirects are really important to link different phrases to the same article (not to mention all the [[category:EnglandAcronym Almanac|acronyms]] ). Let's use an example: redirecting '''SSF''' to '''Student Space Fund'''. Navigate to SSF, where a blank page should exist. In that blank page, add the text:<pre>#REDIRECT[[category:LondonStudent Space Fund]]</nowikipre>Create the page as you would any other. That's it! Unfortunately you cannot add redirect to external websites, and if you redirect to a redirect (e.g. if SSF went to Stude. Space Fund), '''the path would stop''' at the second redirect.
<h3>Nested Tabs</h3><tab name="Open me!" collapsed>Nested Tabs are useful for having large amounts of information without overburdening the layout or flow of your This articleis a stub. Please consider <br>The syntax is essentially the same as above''<nowiki><tab namespan style="Open me!color: #66512c"> Contents [[How to Central|expanding it]]</tobspan></nowiki>''. </tabdiv>
<tabs class="class="mw-collapsible mw-collapsed"=Good templates===Below is a table of templates used throughout the wiki for consistency, such as TopBars, buttons, and labels. This introduces a good function of templates, variables. When creating a template, if you insert {{{1}}}, that '''''1''''' can be filled when the template is called, separated by vertical lines <code>|<tab name=/code>. By adding templates, you can use the "Generalwhat links here">tool on the left hand side, showing all articles that use that template. We can therefore see all pages that use [[Template:Empty]], for example.{|class="wikitablecollapsible alternating"|-!Template Page !AttributeDisplay
!colspan="2"|For the <code><tabs></code> tag[[Template:HymnBar]]|{{HymnBar}}|Menu for different chants, songs in engineering.
!colspan|[[Template:EmailIcon]]|{{EmailIcon|1="2"faucet@mcgilleus.ca}}|For the ''1=emailaddress@gmail.com''<codebr><tab><A button for the email address of the position/code> tag inside tab menusgroup
no edit summary
== Text Editing ==
For those of you who may know HTML5, woo-hoo! This is similar to that, but not quite. There's a whole host of different syntax, but the same ''logic'' applies.
You can format your text by using wiki markup. This consists of normal characters like asterisks, apostrophes or equal signs which have a special function in the wiki, sometimes depending on their position. For example, to format a word in ''italic'', you include it in two pairs of apostrophes like <code><nowiki>''this''</nowiki></code>.
{| class="wikitablecollapsible alternating" style="width:80%"
! Description
! width="40% " | Youtype! width="40% " | You get
|-
! colspan="3" style="background: #ABE" | Character (inline) formatting – ''applies anywhere''
|<nowiki> == Test 2 == </nowiki><br><nowiki>
=== Test 3 === </nowiki><br><nowiki> ==== Test 4 ====</nowiki><br><nowiki> ===== Test 5 =====</nowiki><br><nowiki> ====== Test 6 ======</nowiki><br>----<br>
''Note: Any article with 4 or more headings will automatically create a Table of Contents''
|
<h3>Test 3</h3>
|-
| Horizontal Line
Any other start also
ends the list.
<nowiki></translate></nowiki>
|-
| Indent text
|
<nowiki>: Single indent</nowiki><br><nowiki>
:: Double indent</nowiki><br><nowiki>
::::: Multiple indent</nowiki><br><nowiki>
</nowiki>
| : Single indent
:: Double indent
::::: Multiple indent
|}
===Links===
{| class="wikitable" border="1"
!Description
!You type
!You get
|-
|Internal link
|<pre>
[[Launchpad]]
</pre>
|[[Launchpad]]
|-
|Piped link
|<pre>
[[EUS Constitution|constitution]]
== Tabs Templates==Tabs is an extension that provides Because a handy way lot of wikipedia formatting becomes redundant, templates allow you to include the same basic format without having to create multiple tabs enter in the same code over and tablesover. This is very useful for containing nested informationThat way, if the template changes, and can be manipulated depending on your understanding all of the mechanismpages that call the template will update accordingly. To learn more about Tabs<br><br>''Take for example, [httpsa simple notice that the page is not currently complete://www.mediawiki.org/wiki/Extension:Tabs/Usage click here].''<br>{|<div style="width clear:60%" |both;| ''What you enter'' padding: 10px 15px;| ''What you Get''| margin-bottom: 20px;| border: 1px solid #faebcc; border-radius: <nowiki><tabs></nowiki><br>4px; color:: <nowiki><tab name="Tab#1">This is a test</tab></nowiki><br>8a6d3b; background-color:: <nowiki><tab name="Tab#2", index="2">This is also a test</tab></nowiki><br>fcf8e3; font-size: </tabs>| <tabs><tab name="Tab#118px;">This is a test</tab><tab name="Tab#2", index="2">This is also a test</tab></tabs> |}
The code is need on many pages. It is therefore added to a new page on the wiki named <h3code> Attributes Template:Stub</h3code>Inside . Then, once saved, the template can be called upon using double curly brackets around the name of the template, i.e. <strong><nowiki>{{Stub}}<tab/nowiki></nowikistrong> argument. As long as the code is created in a document labeled 'Template:XXXXX', you it can include what is known as then be called upon again by '''<codenowiki>attributes.{{XXXXX}}</code><brnowiki>Notice the previous Tab was collapsed when the page loaded: that was accomplished with the ''collapsed tab''. Click below to learn more.<br>
!Description
|-
|[https[Template://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#title <code>title</code>Empty]]|{{Empty}}|Determines the tooltip shown (<span title="Example tooltip text">Hover over this text for an example</span>) when hovering over the boxUsed to keep desirable articles marked created, but in need of content.
|-
|[https[Template://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#style <code>style</code>Stub]]|{{Stub}}|Use this attribute to define any styles for the box. This can also affect the box's labelArticles with some information, needing more.
|-
|[https[Template://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#class <code>class</code>In Progress]]|{{In Progress}}|Adds classes to the box. Different classes are seperated by spaces. Classes Articles that are generally used for altering the appearance of the box via CSScurrently being developed.
|-
|[https[Template:Retired]]|{{Retired}}|Articles of groups that have since retired.|-|[[Template:Button]]|{{Button|1=http://developerwiki.mozillamcgilleus.org/enca|2=Wiki|3=fas fa-life-US/docs/Web/HTML/Global_attributes#id <code>id</code>]ring|4=Crimson}}|Adds There's a heck of a lot of other options: change font color, make it an id to the box. This id must be unique on the pageinternal link, as per HTML specificationsand more. Ids are generally used for linking scripts Make sure to via JavaScript, or they might also be used for altering the appearance of the individual box via CSS.|}read [[Template:Button]]<br>''1=Link<br>2=Text</tabbr> 3=FontAwesome<tab namebr>4="Specific"Color''<br>Making buttons instead of links, jumps people's attention!|-{|class="wikitable"[[Template:FinanceBar]]!Attribute|{{FinanceBar}}!Description|Menu for different financial related articles.
|-
|-
|style[[Template:PolicyIcon]]|{{PolicyIcon|1="color: darkblue;"Plumbers_Faucet_Policy}}|''1=POLICY_ARTICLE''<codebr>container<A button to link to policies/bylaws/code>|Use this attribute to define any styles for the tabs containerconstitutions. Styles defined here will only affect 1= the container name of the tabs, not article on the labels.wiki to which it pertains to
|-
|style[[Template:WebsiteIcon]]|{{WebsiteIcon|1="colorhttp: darkblue;"//faucet.mcgilleus.ca}}|''1=websiteurl''<codebr>plain</code>|If this attribute is set, the tab interface will A button for groups' websites to be a much more plain layout, without a border around the container, and with the tab labels just being buttons above it, instead of the typical tab layout. This can be used to get more freedom in styling the interface.accessed
|-
|-
|style[[Template:FacebookIcon]]|{{FacebookIcon|1="colorhttp: darkblue;"|<code>inline</code>/fb.com/mcgilleus}}|If this attribute is set, the tab's contents can be placed within text without interrupting the flow of the text. The difference between this and the default state of <code>display:inline-block</code> is that with <code>inline-block</code>, the tab's contents are forced 1=URL to a new line when placed at the end of a new line, when not the whole of the tabfacebook page''s contents fit on the same line. <codebr>inline</code> tabs however will use up any space thatA button to navigate specifically to a groups's left at the end of the line, and fit in with the normal flow of the text just like normal textFacebook page.
|-
|style="color[[Template: darkblue;"GroupIcon]]|<code>block</code>{{GroupIcon|1=Curator's Choice}}|Converts the tab's contents to a block element. This can be used to assure the tab's contents will be displayed as a block instead 1=Article Name of an inline-block, in cases where the tabGroup''s contents should not be placed within a line of text. When both the <codebr>block</code> and <code>inline</code> attributes are available, the <code>inline</code> attribute will be ignored.A button used to link policies back to a groups Wiki article
|-
|style[[Template:DriveIcon]]|{{DriveIcon|1="colorhttp: darkblue;"//drive.google.com}}|''1=GoogleDrive Link''<codebr>index</code>|This will determine the index of the tab. This only works if the entered index is already the index of a defined tab. Otherwise, this attribute is ignored. If no valid index or matching name attributes are defined, the index is automatically set A button used to link policies to be the next in the list of tabs.their official google drive file
|-
|style} See also the [[Launchpad]] templates at *[[Template:Launchpad Navigation]]*[[Template:Launchpad Card]]*[[Template:Launchpad Box]] == Categories =="colorCategories can be used to group similar pages through the wiki. For example, <code><nowiki>[[:Category: darkblue;"|Policies]]<code/nowiki>name</code>contains a [[:Category:Policies|This attribute is used list of all policies]] that are currently on the wiki. To add any page to define the text category, include the label shows for code <nowiki>[[Category:***]]</nowiki> to all the tabpages you'd like to add. If Generally the EUSwiki does not include the categories on the entered name already exists within page themselves, as there's normally a disambiguation page; that is to say, we'd prefer people navigate to [[Policies]] instead of the tabcategory page. Thus, it is common practice to '''''hide the contents of category'''''. This can be done by adding the power word <code><tab><nowiki>__HIDDENCAT__</nowiki></code> tag ''inside the category''. It will then be hidden from all the pages. == Infoboxes==Infoboxes are automatically assigned the iconic boxes that can be seen on the top right of nearly every wikipedia page. To learn more about infoboxes, please go [https://en.wikipedia.org/wiki/Template:Infobox here]. == Tabs ==Tabs is an extension that provides a handy way to create multiple tabs and tables. This is very useful for containing nested information, and can be manipulated depending on your understanding of the existing mechanism. <br>To learn more about Tabs, [https://www.mediawiki.org/wiki/Extension:Tabs/Usage click here]. '''''What you enter''''': <nowiki><tabs></nowiki><br>:: <nowiki><tab name="Bingo">This is a test</tab></nowiki><br>:: <nowiki><tab name="Bango">This is also a test</tab></nowiki><br>: <nowiki></tabs></nowiki> '''''What you Get'''''<tabs><tab name="Bingo">This is a test</tab. ><tab name="Bango">This is also means no two a test</tab></tabs can have an identical label> ===Collapsed Tabs===<tab name="Open me!" collapsed="">Nested Tabs are useful for having large amounts of information without overburdening the layout or flow of your article. This attribute will be ignored if <br>The syntax is essentially the same as above <code>''<nowiki> <tab name="Open me!" collapsed> Contents </tob></nowiki>''</code></tab> ==Font Awesome==<div style="display:inline-block;float:right;">{{Button|1=http://wiki.mcgilleus.ca/index.php/FontAwesome|2=FontAwesome|3=fas fa-link|4=SteelBlue}}</div>A well known bootstrap based icon pack, '''''FontAwesome''''' is a very easy way to include icons without having to import anything. They're flexible in terms of resizing, color, and placement, and varied enough that you're sure to find the icon you're looking for. To see a complete list of compatible icons, navigate to our [[FontAwesome]] wiki page, which includes how to embed and a few examples.==PDFs==If you'd like to embed a PDF, upload a file as you would any other (lefthand sidebar, [[Special:Upload|Tools>Upload File]]).You can then embed the pdf using the following code<code><nowiki><pdf>File:Example.pdf</pdf></nowiki></code> attribute already refers '''''Note: Please don't upload policies/bylaws as pdfs. Create the page and insert the content as plain text and link to the google drive. This prevents future obsolescence'''''==Widgets=='''Widgets''' is a blanket term for easy to add HTML pages/elements. They avoid the security problems of raw HTML in editable wiki pages because the privilege to edit in the Widget namespace is managed. Most of the time you would be working with [https://www.mediawikiwidgets.org/Widgets_Catalog pre-written widgets].<br>This is the extension is used to facilitate YouTube videos, Google Docs/Spreadsheet embeds, and more. In order to use a widget, you must make sure the Widget:Namespace is an existing article on this wiki. More information can be [https://www.mediawiki.org/wiki/Extension:Widgets found here], [https://www.mediawikiwidgets.org/Widgets_Catalog more widgets here].===Specific Widgets===<tabs><tabname="Google Document"><pre>{{#widget:Google Document|id=1hhpWRL4oyH6Aqf42laXo_lElObX_1JiaV4FMt8llA_U|width=500|height=300}}</pre>Where the id is the unique key in the URL of the spreadsheet you're trying to embed. Whitespace Make sure that the document is published (''Note: this is automatically removed not uniquely the same as viewable with link; on the document, navigate to File>Publish to the Web'').</tab><tab name="Google Spreadsheet">Spreadsheets are essentially the same mechanism as documents (above), simply call Google Spreadsheet instead. For example:<pre>{{#widget:Google Spreadsheet|key=po-s58YMwf85Q3UxRzdGOBw|width=500|height=300}}</pre></tab><tab name="Google Form"><pre>{{#widget:Google Form|key=po-s58YMwf85Q3UxRzdGOBw|width=600|height=750}}</pre></tab><tab name='Google Calendar'>You can display google calendars in the wiki too. Like other google products, just copy the id from the start URL of the standalone calendar (which you can get by going to the calendar settings). You can include multiple calendars by inserting multiple id's and colors (processed sequentially). You can change the default view as well to be WEEK or MONTH or AGENDA.<pre>{{#widget:Google Calendar|id=mcgilleus.ca_lee6df3cc2qit6r0dcdhsip2eg@group.calendar.google.com|color=2952A3|id=mcgilleus.ca_lee6df3cc2qit6r0dcdhsip2eg@group.calendar.google.com|color=2952A3|title=Any title you'd like|view=WEEK}}</pre></tab><tab name='Youtube'>To call YouTube videos in documents, all you need is the video id (the unique key at the end of this attributethe video's valueURL).The height and width can be adjusted from the default 420x350 by adding <code>|}height=xxx| namewidth=Specificxxx</code> after the id.<br><pre>{{#widget:YouTube| indexid="2"DWef69ItVrU}}</pre>If you would like to embed a playlist instead, simply replace 'id=DWef69ItVrU' with 'playlist=PL6FD8256CD24CFF1F'<vr><pre>{{#widget:YouTube|playlist=PL6FD8256CD24CFF1F}}</pre></tab>
</tabs>