Difference between revisions of "Template:Snapzilla"
Jump to navigation
Jump to search
m (wiki-typo) |
m (altered layout) |
||
Line 1: | Line 1: | ||
<includeonly>{{ #ifeq: {{{display-url}}}|enabled||[}}{{#switch: {{{mode}}} |user=http://www.sluniverse.com/pics/Default.aspx?Name=|photo=http://www.sluniverse.com/pics/pic.aspx?id=|<strong style="color:red;">UNSUPPORTED MODE IN [[Template:Snapzilla]]</strong>}}{{urlencode:{{{key}}}}}{{ #ifeq: {{{display-url}}}|enabled||{{ #ifeq: {{{no-title}}}|enabled||{{ #if: {{{title|}}}|<nowiki> </nowiki>{{#ifeq: {{{mode|}}}|photo|snapshot -<nowiki> </nowiki>|}}{{{title}}}|}}|}}]}}</includeonly><noinclude> | <includeonly>{{ #ifeq: {{{display-url}}}|enabled||[}}{{#switch: {{{mode}}} |user=http://www.sluniverse.com/pics/Default.aspx?Name=|photo=http://www.sluniverse.com/pics/pic.aspx?id=|<strong style="color:red;">UNSUPPORTED MODE IN [[Template:Snapzilla]]</strong>}}{{urlencode:{{{key}}}}}{{ #ifeq: {{{display-url}}}|enabled||{{ #ifeq: {{{no-title}}}|enabled||{{ #if: {{{title|}}}|<nowiki> </nowiki>{{#ifeq: {{{mode|}}}|photo|snapshot -<nowiki> </nowiki>|}}{{{title}}}|}}|}}]}}</includeonly><noinclude> | ||
== Usage == | |||
<div style="font-size:140%;"><code><pre><nowiki>{{snapzilla | |||
|mode= | |||
|key= | |||
|title= | |||
|display-url= | |||
|no-title= | |||
|}}</nowiki></pre></code></div> | |||
'''''mode''''' | |||
Used in combination with the key variable to create a link to the desired section of the Snapzilla site. | |||
* ''''user'''' | |||
** makes the URL point to the listing of all photos by the Resident specified with the ''''key'''' variable. | |||
* ''''photo'''' | |||
** makes the URL point to the page for the photo specified with the ''''key'''' variable. | |||
'''''key''''' | |||
This is either the name of a Resident, or the ID number of a photo page. | |||
'''''title''''' | |||
This is the text to display instead of the full URL or link number. | |||
'''''display-url''''' | |||
When this is set to ''''enabled'''', the link will be displayed as the full URL, without a title. | |||
'''''no-title''''' | |||
When this is set to ''''enabled'''', the link will be displayed as a number, referring to the link's placement in the list of links available in the article. | |||
== Examples == | |||
* {{snapzilla | * {{snapzilla | ||
|mode=user | |mode=user | ||
|key=SignpostMarv Martin | |key=SignpostMarv Martin | ||
|title=SignpostMarv's photos on Snapzilla | |title=SignpostMarv's photos on Snapzilla | ||
|no-title=enabled | |no-title=enabled | ||
|}} | |}} <div style="font-size:140%;"><code><pre><nowiki>{{snapzilla | ||
|mode=user | |||
|key=SignpostMarv Martin | |||
|title=SignpostMarv's photos on Snapzilla | |||
|no-title=enabled | |||
|}}</nowiki></pre></code></div> | |||
* {{snapzilla | * {{snapzilla | ||
|mode=photo | |mode=photo | ||
Line 13: | Line 48: | ||
|}} | |}} | ||
</noinclude> | </noinclude> | ||
[[Category:Templates in need of documentation]] |
Revision as of 22:45, 12 January 2007
Usage
{{snapzilla
|mode=
|key=
|title=
|display-url=
|no-title=
|}}
mode Used in combination with the key variable to create a link to the desired section of the Snapzilla site.
- 'user'
- makes the URL point to the listing of all photos by the Resident specified with the 'key' variable.
- 'photo'
- makes the URL point to the page for the photo specified with the 'key' variable.
key This is either the name of a Resident, or the ID number of a photo page.
title This is the text to display instead of the full URL or link number.
display-url When this is set to 'enabled', the link will be displayed as the full URL, without a title.
no-title When this is set to 'enabled', the link will be displayed as a number, referring to the link's placement in the list of links available in the article.
Examples
- [1]
{{snapzilla
|mode=user
|key=SignpostMarv Martin
|title=SignpostMarv's photos on Snapzilla
|no-title=enabled
|}}