Formatting Templates

From Salish Sea Wiki

Like all MediaWiki installations, This platform uses templates to create standard formatting effects. A template is a specific kind of Wiki Markup where a single code is used to represent a bunch of formatting or text. Sometimes templates are used in isolation to define a page type. In other cases, a template can wrap around text or images so they appear in a certain way (this is how we do multi-column layouts. The following templates are in common use throughout the platform.

  • {{Workgroup}} - for pages about groups of people that work together.
  • {{Effort}} - for pages describing the projects they do.
  • {{Product}} - for pages describing documents, graphics or websites.
  • {{Place}} - for pages describing specific geographies.
  • {{Topic}} - for pages about anthropogenic or ecological concepts or phenomena.

We also have a set of templates specifically for Landform Scale Places:

  • {{headwatersite}} - a watershed management unit in the highland portions of Puget Sound.
  • {{watershedsite}} - a watershed management unit tributary to a floodplain, or a coastal shoreline or inlet process unit watershed.
  • {{floodplainsite}} - a floodplain unit with divisions generally based on local planning.
  • {{deltasite}} - a delta process unit assocaited with a major river mouth
  • {{embaymentsite}} - a coastal inlet or barrier-type embayment along the shoreline
  • {{beachsite}} - a shoreline process unit including bluff-backed beach
  • {{headlandsite}} - a shoreline process unit dominated by rocky shoreline landforms

The following templates are used to create effects on page content. The numbers sign indicates where you would insert content

  • {{ImageBullet| # | # }} - the first insertion is a link for the image to be used as an icon. The second entry is for the text that will be placed immediately to the right of that icon.
  • {{TwoColumn| # | # }} - each entry is used to populate one of the columns. The columns are responsive, so that if you view them on a phone, they will stack.
  • {{ThreeColumn| # | # | # }} - each entry is used to populate one of the columns. The columns are responsive, so that if you view them on a phone, they will stack.
  • {{TwoColumnTwoPicture| # | # }} - for each entry, provide a link to an image. The images will scale so that they fill the available space. If they are viewed on a phone they will stack.
  • {{TwoColumnLeftPicture| # | # }} - In this layout the first entry is an image. The second entry is for text that

For example the following code:

{{ImageBullet|[[File:Riverdelta.jpg|200px]]|This is text that uses a picture of a particular size as a bullet.}}

Will create the following output:

Riverdelta.jpg

This is text that uses a picture of a particular size as a bullet.

Dynamic Page List Templates

We are developing a set of templates to support standardized summaries on core pages.

  • {{PlaceProducts| # }} - Provides a three column summary of products associated with a place name (#).
  • {{Special:PrefixIndex/{{FULLPAGENAME}}/ |hideredirects=1 |stripprefix=1 |columns=1}} - This code creates a list of sub-pages when embedded on a page.