Menü aufrufen
Toggle preferences menu
Persönliches Menü aufrufen
Nicht angemeldet
Ihre IP-Adresse wird öffentlich sichtbar sein, wenn Sie Änderungen vornehmen.

Benutzer:Nicholas Rush/Testseite: Unterschied zwischen den Versionen

aus Stargate Wiki, dem deutschsprachigen Stargate-Lexikon
Nicholas Rush (Diskussion | Beiträge)
KKeine Bearbeitungszusammenfassung
Nicholas Rush (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
{{Benutzer:Nicholas Rush/Navigation}}
{{Benutzer:Nicholas Rush/Navigation}}
Stargate Wiki ist ein freies und gemeinschaftliches Projekt zur Erstellung einer umfangreichen Enzyklopädie rund um die von MGM produzierte TV-Serie [[#Diese Woche im TV|Stargate und deren Spin-Offs]]. Jeder kann nach dem Wiki-Konzept mitarbeiten. Auch Du! Um alle Möglichkeiten in Stargate Wiki nutzen zu können, ist es sinnvoll sich kostenlos zu [[Hilfe:Einleitung#Anmelden|registrieren]].
<div style="float:{{{align|right}}}; border: solid 1px #000000; margin: 3px; padding: 1em; background: white;">
Wisst ihr noch nicht wie Stargate anfängt, dann schaut mal [[Benutzer:Nicholas Rush/Testseite2|hier]]
<center>'''[[User:{{#if:{{{1|}}}|{{{1|Hersfold}}}|{{BASEPAGENAME}}}}|{{#if:{{{1|}}}|{{{1|Hersfold}}}|{{BASEPAGENAME}}}}]] is currently:'''</center>
{{#switch: {{lc:{{User:{{#if:{{{1|}}}|{{{1|Hersfold}}}|{{BASEPAGENAME}}}}/Status}}}}
| online = <center>[[Image:Symbol support vote.svg|20px]] <font color="green">'''Online'''</font></center>
| offline = <center>[[Image:Symbol oppose vote.svg|20px]] <font color="red">'''Offline'''</font></center>
| recently online = <center>[[Image:Symbol support2 vote.svg|20px]] <font color="blue">'''{{#if:{{{irc|}}}|On IRC|Busy}}'''</font></center>
<center><small>I may not be actively editing,<br>but I am around.</small></center>
| at work/in class = <center>[[File:Symbol comment.svg|20px]] <font color="#D4AF37">'''At work or in class'''</font></center>
<center><small>I may not be actively editing,<br>but I am around.</small></center>
| #default = <center>[[Image:Symbol neutral vote.svg|20px]] <font color="gray">'''Lost.'''</font></center>
<center><small>Check my status {{plainlinks|URL=http://{{SERVERNAME}}/w/index.php?title=User:{{#if:{{{url|{{{1|}}}}}}|{{{url|{{{1|Hersfold}}}}}}|{{BASEPAGENAMEE}}}}/Status&action=history|NAME=history}} for more info.</small></center>
}}
<center><small><span class="plainlinks">Update: [http://{{SERVERNAME}}/w/index.php?title=User:{{#if:{{{url|{{{1|}}}}}}|{{{url|{{{1|Hersfold}}}}}}|{{BASEPAGENAMEE}}}}/Status&action=edit&amfind=.*&amreplace=online&amlocal=1&amsummary=Setting%20status%20to%20%22online%22&amautosave=yes&amminor=1 <font color="green">On</font>] • [http://{{SERVERNAME}}/w/index.php?title=User:{{#if:{{{url|{{{1|}}}}}}|{{{url|{{{1|Hersfold}}}}}}|{{BASEPAGENAMEE}}}}/Status&action=edit&amfind=.*&amreplace=Recently%20online&amlocal=1&amsummary=Setting%20status%20to%20%22recently%20online%22&amautosave=yes&amminor=1 <font color="blue">{{#if:{{{irc|}}}|IRC|Busy}}</font>] • [http://{{SERVERNAME}}/w/index.php?title=User:{{#if:{{{url|{{{1|}}}}}}|{{{url|{{{1|Hersfold}}}}}}|{{BASEPAGENAMEE}}}}/Status&action=edit&amfind=.*&amreplace=At%20work/In%20class&amlocal=1&amsummary=Setting%20status%20to%20%22work%20or%20class%22&amautosave=yes&amminor=1 <font color="#D4AF37">Work/Class</font>]
[http://{{SERVERNAME}}/w/index.php?title=User:{{#if:{{{url|{{{1|}}}}}}|{{{url|{{{1|Hersfold}}}}}}|{{BASEPAGENAMEE}}}}/Status&action=edit&amfind=.*&amreplace=offline&amlocal=1&amsummary=Setting%20status%20to%20%22offline%22&amautosave=yes&amminor=1 <font color="red">Off</font>]</span></small></center></div><noinclude>
Want to show your status, but <s>aren't willing to trust</s> can't find a working bot to handle it for you? This template provides an easy, one-click way to update your status yourself, so that you're always online immediately after you log in, and offline as soon as you log out. '''This template is now [[WP:HAU]] compatible.'''


Seit dem '''3. September 2005''' wurden bereits '''{{NUMBEROFARTICLES}}''' Artikel verfasst. Tendenz? Steigend, dank Eurer Hilfe!
== How to use this template ==


Du wunderst dich, dass noch viele Artikel in Teilen unvollständig sind? Dann hilf mit sie zu verbessern. Zögere nicht und bearbeite sie. Hilfe dazu findest du im [[Hilfe:Handbuch|Handbuch]].<noinclude>[[Kategorie:Vorlage|Hauptseite/Willkommen im Stargate Wiki]]</noinclude>
#Create [[Special:Mypage/Status]]. You can place any text in here, it doesn't matter; just create it.
#Go to your [[Special:Mypage/monobook.js|monobook.js file]] and add <code>importScript('User:Henrik/js/automod.js');</code> This script is necessary for the automated update links to work. Some other scripts already include this one - don't worry, installing this twice (or more) won't hurt anything.
#[[WP:BYPASS|Clear your browser's cache]]. The script may not work if you don't.
#Add this template where you want to use it, like so: <tt>'''<nowiki>{{User:Hersfold/StatusTemplate}}</nowiki>'''</tt> .
#Save the page.
#Click one of the three "Update" links. This will automatically update the /Status page you created in Step 1 to something this template can recognize.
 
=== Currently active status types ===
{|class="wikitable"
|-
!Update link
!Sets your status to...
|-
|<font color="green">On</font>
|<center>[[Image:Symbol support vote.svg|20px]] <font color="green">'''Online'''</font></center>
|-
|<font color="blue">Busy</font>
|<center>[[Image:Symbol support2 vote.svg|20px]] <font color="blue">'''Busy'''</font></center>
<center><small>I may not be actively editing,<br>but I am around.</small></center>
|-
|<font color="#D4AF37">Work/Class</font>
|<center>[[File:Symbol comment.svg|20px]] <font color="#D4AF37">'''At work or in class'''</font></center>
<center><small>I may not be actively editing,<br>but I am around.</small></center>
|-
|<font color="red">Off</font>
|<center>[[Image:Symbol oppose vote.svg|20px]] <font color="red">'''Offline'''</font></center>
|-
|Anything else
|<center>[[Image:Symbol neutral vote.svg|20px]] <font color="gray">'''Lost.'''</font></center>
<center><small>Check my status {{plainlinks|URL=http://en.wikipedia.org/w/index.php?title=User:Hersfold/Status&action=history|NAME=history}} for more info.</small></center>
|}
Don't see what you want? You can suggest additional statuses to [[User talk:Hersfold|Hersfold]]. Please note, however, that trivial additions that mean the same thing as something listed above (Such as "In da hood" instead of "Online") will not be added. There is also a practical limit to how many update links can be listed, to avoid making the template too unwieldy.
 
=== Parameters ===
 
*'''<tt>1=</tt> or first unnamed parameter''' If you want to display another user's status, or you are having trouble with the editing links (see below), enter the custom username (without the User: prefix) to correct the issue. Example: <tt><nowiki>{{User:Hersfold/StatusTemplate|Hersfold non-admin}}</nowiki></tt> This should not be necessary when using this template on one of your own subpages.
*'''<tt>align={left|center|right}</tt>''' Use this to control where the box is displayed. The template will float to the left by default, however can be made to float right with <tt>align=right</tt>. Using "center" will cause the box to spread across the page like a banner - see "[[#Known issues|Known issues]]" below.
*'''<tt>irc=y</tt>''' Use this to change "Busy" to "On IRC" - could be useful for those like me who lurk around the IRC channels waiting for something interesting to happen.
*'''<tt>url=</tt>''' When specifying a custom username with <tt>1=</tt> as described above, some usernames (those with spaces or special characters) may cause the edit links to display incorrectly or not function. Use this to supply a [[Percent-encoding|URL encoded]] version of the username to correct the problem. Example: [[User:Joe's Username]] would need to use the template like so: <tt><nowiki>{{User:Hersfold/StatusTemplate|Joe's Username|url=Joe%27s_Username}}</nowiki></tt>.
 
=== Known issues ===
 
*'''Usernames with spaces:''' When adding a custom username to the template, you will need to use the <tt>url=</tt> parameter as described above to replace spaces with underscores (_) to allow for the correct operation of the edit links. This should not be necessary when using the default username, which the template is able to retrieve from the page title.
*'''Usernames with special characters:''' See above. Special characters must be replaced with their corresponding percent code - a limited number of these can be found at the article on [[Percent-encoding]], some others may be found on the article about that particular symbol. If that doesn't help, try using [http://www.motobit.com/util/url-encoder.asp this site] to translate your username. This should not be necessary when using the default username, which the template is able to retrieve (and translate) from the page title.
*'''Center alignment:''' Due to limitations of either the MediaWiki software or internet browsers (not sure which), using <tt>align=center</tt> will cause the box to be centered, but will also cause it to spread across the entire page. Whoever's fault it is, I am unable to fix this within the template. Workarounds do exist, but they are generally somewhat complicated and the template will no longer "float" over the page as it is designed to do. If you want such a workaround and can't figure it out yourself, let me know.
 
</noinclude>