Difference between revisions of "User:SignpostMarv Martin/Sandbox/Template:Office Hours"

From Second Life Wiki
Jump to navigation Jump to search
(cloning template for dev purposes)
 
(stripping out documentation)
Line 7: Line 7:
{{ #if:{{{location|}}}|<div class="location">
{{ #if:{{{location|}}}|<div class="location">
{{{location}}}
{{{location}}}
</div>|}}{{ #ifeq:{{NAMESPACE}}|User|{{ #ifeq:{{SUBPAGENAME}}|Office Hours|[[Category:Office Hours|{{{Resident}}}]]|{{ #ifeq:{{SUBPAGENAME}}|Teen Office Hours|[[Category:Teen Office Hours|{{{Resident}}}]]|}}}}|}}</includeonly><noinclude>
</div>|}}{{ #ifeq:{{NAMESPACE}}|User|{{ #ifeq:{{SUBPAGENAME}}|Office Hours|[[Category:Office Hours|{{{Resident}}}]]|{{ #ifeq:{{SUBPAGENAME}}|Teen Office Hours|[[Category:Teen Office Hours|{{{Resident}}}]]|}}}}|}}</includeonly>
== Productivity ==
[[Template:Office Hours]], [[Template:Office Hours/include]] and [[Template:Office Hours/teen-include]] were created in order to improve productivity amongst Lindens & Residents who hold in-world office hours.
 
I noticed that Office Hours were being listed in multiple places ([[Office Hours]] and the Lindens' User-pages), and as any developer knows, duplication of data is bad.
 
[[User:SignpostMarv Martin|SignpostMarv Martin]] 04:39, 6 August 2007 (PDT)
 
== Setting up your Office Hours ==
See [[#Usage|usage]] for how to use the '''Office Hours''' template.
 
=== Main Grid ===
Create an article named '''Office Hours''' in your user space, e.g. [[User:Blue Linden/Office Hours]]
 
=== Teen Grid ===
Create an article named '''Teen Office Hours in your user space, e.g. [[User:Blue Linden/Teen Office Hours]]
 
== Displaying your Office Hours ==
=== Main Grid ===
<nowiki>{{Office Hours/include|First Last}}</nowiki>, e.g. <nowiki>{{Office Hours/include|Blue Linden}}</nowiki>
 
=== Teen Grid ===
<nowiki>{{Office Hours/teen-include|First Last}}</nowiki>, e.g. <nowiki>{{Office Hours/teen-include|Blue Linden}}</nowiki>
 
 
== Usage ==
<nowiki>{{Office Hours
|Resident=SignpostMarv Martin
|location=nowhere in particular
|times=* no time in particular
|topics=*no topics in particular
|}}</nowiki>
{{:User:SignpostMarv Martin/Template:Office Hours
|Resident=SignpostMarv Martin
|location=nowhere in particular
|times=* no time in particular
|topics=*no topics in particular
|}}
[[Category:Office Hours|Office Hours]]
[[Category:Teen Office Hours|Teen Office Hours]]
</noinclude>

Revision as of 03:44, 16 September 2007