Difference between revisions of "Template:Viewer skin"

From Second Life Wiki
Jump to navigation Jump to search
m (wiki-typo)
(quick documentation)
Line 1: Line 1:
{{#vardefine:author|{{{author|no author specified}}}}}{{#vardefine:wiki_info|{{{wiki_info|{{PAGENAME}}}}}}}{{#vardefine:skin_name|{{{skin_name|{{SUBPAGENAME}}}}}}}{{#vardefine:wiki_source|{{{wiki_source|{{#var:wiki_info}}/source}}}}}{{#vardefine:skin_image|{{{skin_image|{{#var:skin_name}}.jpg}}}}}<div style="float:right;">
<includeonly>{{#vardefine:author|{{{author|no author specified}}}}}{{#vardefine:wiki_info|{{{wiki_info|{{PAGENAME}}}}}}}{{#vardefine:skin_name|{{{skin_name|{{SUBPAGENAME}}}}}}}{{#vardefine:wiki_source|{{{wiki_source|{{#var:wiki_info}}/source}}}}}{{#vardefine:skin_image|{{{skin_image|{{#var:skin_name}}.jpg}}}}}<div style="float:right;">
{|style="background:transparent !important;"
{|style="background:transparent !important;"
|-
|-
Line 28: Line 28:


{{#ifeq:{{{inline_source|}}}|*|{{#ifexist:{{#var:wiki_source}}|<div id="source">{{:{{#var:wiki_source}}}}</div>}}|}}
{{#ifeq:{{{inline_source|}}}|*|{{#ifexist:{{#var:wiki_source}}|<div id="source">{{:{{#var:wiki_source}}}}</div>}}|}}
<includeonly>[[Category:Viewer Skins|{{#var:skin_name}}]]</includeonly>
[[Category:Viewer Skins|{{#var:skin_name}}]]</includeonly><noinclude>
The template is coded with the following article structure in mind:
 
* Viewer Skins/'''skin name'''
* Viewer Skins/'''skin name'''/''source''
 
== template variables ==
=== Required/ Suggested ===
* author - the name of the Resident who created the skin
* skin_name - the name of the skin (auto-detection is currently broken it seems)
* skin_image - the filename of the image. Don't include the Image: prefix.
* summary - a brief description of the skin (will be used for the image thumbnail description)
* description - a more in-depth description of the skin
 
=== optional ===
* wiki_info - if there is further info on the skin in another wiki article
* external_info - if there is further info on the skin on another website
* inline_source - For those skins that consist of colors.xml modifications only, when set to '''*''', this variable will cause the source code for the colors.xml skin to be displayed in the same article the template has been implemented on.
</noinclude>

Revision as of 09:06, 18 April 2008

The template is coded with the following article structure in mind:

  • Viewer Skins/skin name
  • Viewer Skins/skin name/source

template variables

Required/ Suggested

  • author - the name of the Resident who created the skin
  • skin_name - the name of the skin (auto-detection is currently broken it seems)
  • skin_image - the filename of the image. Don't include the Image: prefix.
  • summary - a brief description of the skin (will be used for the image thumbnail description)
  • description - a more in-depth description of the skin

optional

  • wiki_info - if there is further info on the skin in another wiki article
  • external_info - if there is further info on the skin on another website
  • inline_source - For those skins that consist of colors.xml modifications only, when set to *, this variable will cause the source code for the colors.xml skin to be displayed in the same article the template has been implemented on.