Help:Templates: Difference between revisions

From Shifti
Jump to navigation Jump to search
New page: A "template" is a small Shifti page in the template namespace that one can insert into the body of another page via a process called "transclusion". Templates are denoted using curley brac...
 
mNo edit summary
Line 22: Line 22:
!Displayed image
!Displayed image
|-
|-
|<nowiki>[[Image:Separator f.png|100px|center]]</nowiki>
|<nowiki>[[Image:Separator f.png|200px|center]]</nowiki>
|[[Image:Separator f.png|200px|center|]]
|[[Image:Separator f.png|200px|center|]]
|-
|-
|<nowiki>[[Image:Separator k.png|100px|center]]</nowiki>
|<nowiki>[[Image:Separator k.png|200px|center]]</nowiki>
|[[Image:Separator k.png|200px|center|]]
|[[Image:Separator k.png|200px|center|]]
|}
|}


The width of the image in pixels is defined by the "200px" part of the image tag, you can change the size of the image by putting a different number in here.
The width of the image in pixels is defined by the "200px" part of the image tag, you can change the size of the image by putting a different number in here.

Revision as of 21:23, 19 July 2007

A "template" is a small Shifti page in the template namespace that one can insert into the body of another page via a process called "transclusion". Templates are denoted using curley brackets instead of square brackets.

The following content warning templates may be used at the start of a story page to alert readers to potentially displeasing content they may encounter in the story:

Template code Displayed template
{{WIP}} {{#if:Work in progress.png|}}
Icon
Icon
This story is a work in progress.
{{#ifeq:Help|Help||}}
{{XXX}} {{#if:Triple X.png|}}
Icon
Icon
This story contains adult content.
{{#ifeq:Help|Help||}}

In addition, a number of standard images are available for use to decorate one's story. These are not templates but are included on this page for the time being since there aren't many yet.

Image code Displayed image
[[Image:Separator f.png|200px|center]]
[[Image:Separator k.png|200px|center]]

The width of the image in pixels is defined by the "200px" part of the image tag, you can change the size of the image by putting a different number in here.