Help:Templates: Difference between revisions
ShadowWolf (talk | contribs) m made a mistake with the revert. Have to simulate the action of the template since it doesn't seem to expand properly inside the table. |
ShadowWolf (talk | contribs) m Add links to documentation of the {{title}} and {{part}} templates |
||
| Line 45: | Line 45: | ||
!Displayed template | !Displayed template | ||
|- | |- | ||
|<nowiki>{{title|name=name of page|author=page author}}</nowiki> | | <nowiki>{{title|name=name of page|author=page author}}</nowiki><br/>Full documentation available at [[Template:Title]] | ||
|{{title|name=Example|author=Example}} | | {{title|name=Example|author=Example}} | ||
|- | |- | ||
|<nowiki>{{part|number=part number|name=part name}}</nowiki> | | <nowiki>{{part|number=part number|name=part name}}</nowiki><br/>Full documentation available at [[Template:Part]] | ||
|<span style="font-size: 132%; font-weight: bold;">Part 3.14159: PI</span> | | <span style="font-size: 132%; font-weight: bold;">Part 3.14159: PI</span> | ||
|} | |} | ||
Revision as of 02:28, 21 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 |
|---|---|
| {{add|text to add}} | text to add |
| {{remove|text to remove}} | text to remove |
| {{replace|text to remove|text to replace it with}} | text to removetext to replace it with |
| {{note|note text}} | note text |
| Template Code | Displayed template |
|---|---|
| {{title|name=name of page|author=page author}} Full documentation available at Template:Title |
User| Example | Example}}[[Title::{{#ifeq: Help |User| Example | Example}}| ]] {{#ifeq: | | {{#ifeq: {{#ifeq: Help |User| Example | Example}} | |
{{#ifeq: {{#ifeq: Help |User| Templates | {{#ifeq: Help |User| Example | Example}}}} | ||
Author: [[User:{{#ifeq: Help |User| Templates | {{#ifeq: Help |User| Example | Example}}}}|{{#ifeq: Help |User| Templates | {{#ifeq: Help |User| Example | Example}}}}]] [[Author::{{#ifeq: Help |User| Templates | {{#ifeq: Help |User| Example | Example}}}}| ]]
}} |
{{#ifeq: {{#ifeq: Help |User| Templates | {{#ifeq: Help |User| Example | Example}}}} | |
Author: {{#ifeq: Help |User| Example | Example}} |
Author: [[User:{{#ifeq: Help |User| Templates | {{#ifeq: Help |User| Example | Example}}}}|{{#ifeq: Help |User| Example | Example}}]] [[Author::{{#ifeq: Help |User| Example | Example}}| ]]
}}
}} |
{{#ifeq: {{#ifeq: Help |User| Example | Example}} | |
{{#ifeq: {{#ifeq: Help |User| Templates | {{#ifeq: Help |User| Example | Example}}}} | | Authors: ' |
Authors: [[User:{{#ifeq: Help |User| Templates | {{#ifeq: Help |User| Example | Example}}}}|{{#ifeq: Help |User| Templates | {{#ifeq: Help |User| Example | Example}}}}]]
}} |
{{#ifeq: {{#ifeq: Help |User| Templates | {{#ifeq: Help |User| Example | Example}}}} | |
Authors: {{#ifeq: Help |User| Example | Example}} |
Author: [[User:{{#ifeq: Help |User| Templates | {{#ifeq: Help |User| Example | Example}}}}|{{#ifeq: Help |User| Example | Example}}]]
}}
}}
}} {{#if:| — see [[:Category:{{{category}}}|other works by this author]]}} |
| {{part|number=part number|name=part name}} Full documentation available at Template:Part |
Part 3.14159: PI |
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.




