Templates: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
=Overview=
=Overview=
To make formatting or other repeat information show up on the wiki, it is useful to use a shortcut such as a {{Template:_______}} to display various useful information. Or, wikicode can be cut and pasted, and filled with modified information. In the case of the {{Template: route, we are passing parameters into the template, and in the case of wikicode we are cutting and pasting and replacing parts of the code with the desired content.
To make formatting or other repeat information show up on the wiki, it is useful to use a shortcut such as a {{Template:_______}} to display various useful information. Or, wikicode can be cut and pasted, and filled with modified information. In the case of the {{Template: route, we are passing parameters into the template, and in the case of wikicode we are cutting and pasting and replacing parts of the code with the desired content. The advantage of the {{Template: route is that it is easy to pass parameters into the template, whereas you must search within the code for the needed changes when cutting-and-pasting wikicode.


A good example of {{Template: is:
A good example of {{Template: is:
Line 6: Line 6:
A good example of cut-and-paste wikicode is [[CAD_Current_Work#GVCS_Projects_-_CAD_Status]]
A good example of cut-and-paste wikicode is [[CAD_Current_Work#GVCS_Projects_-_CAD_Status]]


The wiki is flexible and formatting + content can happen in several ways;
The wiki is flexible and formatting + content can happen in many ways, such as:
*[[Wiki Markup Language]] - accepts wiki-specific markup + some HTML elements, see Wikipedia - [https://en.wikipedia.org/wiki/Wiki_markup]
*[[Wiki Markup Language]] - accepts wiki-specific markup + some HTML elements, see Wikipedia - [https://en.wikipedia.org/wiki/Wiki_markup]
*[[Wiki Templates]] - using the {{}} markup - you can invoke templates defined as {{Template:______}}
*[[Wiki Templates]] - using the {{}} markup - you can invoke templates defined as {{Template:______}}
*[[CSS]] - CSS is handled within Mediawiki, example is [[CAD_Current_Work#GVCS_Projects_-_CAD_Status]]
*[[CSS]] - CSS is handled within Mediawiki, example is [[CAD_Current_Work#GVCS_Projects_-_CAD_Status]]
*[[HTML]] - using HTML, you can embed content from other platforms, such as Google Docs, [[WebGL]], and much more.
*[[HTML]] - using HTML, you can embed content from other platforms, such as Google Docs, [[WebGL]], and much more.
*[[HTML/CSS/Javascript]] - see [[Flashy XM]] for a combination of Wiki Markup Language, HTML, CSS, and Javascript  
*[[HTML/CSS/Javascript]] - see [[Flashy XM]] for a combination of Wiki Markup Language, HTML, CSS, and Javascript
 
 


=Wiki-Specific Templates=
=Wiki-Specific Templates=

Revision as of 21:35, 10 December 2016

Overview

To make formatting or other repeat information show up on the wiki, it is useful to use a shortcut such as a {{Template:_______}} to display various useful information. Or, wikicode can be cut and pasted, and filled with modified information. In the case of the {{Template: route, we are passing parameters into the template, and in the case of wikicode we are cutting and pasting and replacing parts of the code with the desired content. The advantage of the {{Template: route is that it is easy to pass parameters into the template, whereas you must search within the code for the needed changes when cutting-and-pasting wikicode.

A good example of {{Template: is:

A good example of cut-and-paste wikicode is CAD_Current_Work#GVCS_Projects_-_CAD_Status

The wiki is flexible and formatting + content can happen in many ways, such as:

Wiki-Specific Templates

Google Docs Templates