Langbahn Team – Weltmeisterschaft

Wikipedia:Keep It Simple/label: Difference between revisions

Content deleted Content added
PC-XT (talk | contribs)
I somehow picked up the word "tray," but "rack" was the original name, so the "tray" templates are misnamed.
moving docs to subpage
Line 4: Line 4:
| tab2=<div style="display: inline; background: #ffffff; border-top: 3px solid #c7c7c7; border-left: 2px solid #c7c7c7; border-right: 2px solid #c7c7c7; padding: 2px 4px 1px 4px; font-size: 12px;" class="wikipediauserlabel">
| tab2=<div style="display: inline; background: #ffffff; border-top: 3px solid #c7c7c7; border-left: 2px solid #c7c7c7; border-right: 2px solid #c7c7c7; padding: 2px 4px 1px 4px; font-size: 12px;" class="wikipediauserlabel">
| pink=<div style="display: inline; background: #ffd7d0; border: 2px solid #aaaaaa; padding: 2px 4px 1px 4px; font-size: 12px;" class="wikipediauserlabel">
| pink=<div style="display: inline; background: #ffd7d0; border: 2px solid #aaaaaa; padding: 2px 4px 1px 4px; font-size: 12px;" class="wikipediauserlabel">
| #default=<div style="display: inline; background:#FFFFFF; border:1px solid #006400; padding: 4pt; font-size: 8pt; color: black;" class="wikipediauserlabel">}}[[{{ #if: {{{tgtname|}}} | {{{tgt}}}{{!}}{{{tgtname}}} | {{{tgt}}} }}]]</div><includeonly>{{ #ifeq: {{NAMESPACE}}|User|{{#if:{{{catname|}}}|[[Category:{{{catname}}}|{{PAGENAME}}]]|}}{{#if:{{{extracat|}}}|[[Category:{{{extracat}}}|{{PAGENAME}}]]|}}|}}</includeonly><noinclude>{{doc|content=
| #default=<div style="display: inline; background:#FFFFFF; border:1px solid #006400; padding: 4pt; font-size: 8pt; color: black;" class="wikipediauserlabel">}}[[{{ #if: {{{tgtname|}}} | {{{tgt}}}{{!}}{{{tgtname}}} | {{{tgt}}} }}]]</div><includeonly>{{ #ifeq: {{NAMESPACE}}|User|{{#if:{{{catname|}}}|[[Category:{{{catname}}}|{{PAGENAME}}]]|}}{{#if:{{{extracat|}}}|[[Category:{{{extracat}}}|{{PAGENAME}}]]|}}|}}</includeonly><noinclude>


{{Documentation}}</noinclude>
This template creates a [[Wikipedia:Keep It Simple|Keep It Simple]] label, suitable for inclusion on [[WP:USER|user pages]]. It is intended to be used from other templates (see 'Label Naming' below).

Example usage with WikiProject Medicine:
:<nowiki>{{WP:KIS/label |tgt=Wikipedia:WikiProject Medicine |tgtname=WP:MED |catname=WikiProject Medicine members |theme={{{theme}}}}}</nowiki>

Produces: {{WP:KIS/label |tgt=Wikipedia:WikiProject Medicine |tgtname=WP:MED |catname=WikiProject Medicine members |theme={{{theme}}}}}
<br/><br/>

'''Label Naming:'''

Please follow the naming conventions at [[WP:USERBOX#Which namespace?]], except that KIS labels no longer have their own space. All new templates should go into userspace or project space, and closely follow an existing category, such as &#123;{Template:User template}&#125; (templates) would become &#123;{User:<your name>/KIS/template}&#125; Add it to the category [[:Category:Keep It Simple templates]] so we know about it, and optionally add it to [[WP:KIS]].
<br/><br/>
User labels should no longer use the User label pseudonamespace as the userboxes do. Templates in this userspace will be moved following [[WP:UM]].
<br/><br/>
''Parameters:''
;tgt
:'''Full name of target page:''' including a '''Wikipedia:''' prefix if necessary (i.e. Wikipedia:WikiProject Medicine). Full name is required for mouse hover usage.

;tgtname
:Text you want to appear in the KIS box.
::Prefixes:
::*WP: = WikiProjects
::*W: = Wikipedia space
::*B: = Languages (Babel)
::*L: = Life, status, and situation
::*W: = Wikipedia-related
::*O: = Other

;catname
:Optional category in which page should be included (do '''not''' include ''Category:'' prefix).

;extracat
:A second optional category, same as 'catname' above.

;theme

<table class="wikitable" align="right">
<tr><th>theme=</th><th>Result</th></tr>
<tr><td>default</td><td>{{WP:KIS/label |tgt=WP:KIS}}</td></tr>
<tr><td>basic</td><td>{{WP:KIS/label |tgt=WP:KIS |theme=basic}}</td></tr>
<tr><td>tab</td><td>{{WP:KIS/label |tgt=WP:KIS |theme=tab}}</td></tr>
<tr><td>tab2</td><td>{{WP:KIS/label |tgt=WP:KIS |theme=tab2}}</td></tr>
<tr><td>pink</td><td>{{WP:KIS/label |tgt=WP:KIS |theme=pink}}</td></tr>
</table>

:Controls the appearance of the label. Here are examples on the same rack:
{{WP:Keep It Simple/tray top}}{{WP:KIS/label |tgt=WP:Keep It Simple/Options#Label_themes |tgtname=default}}{{WP:KIS/label |tgt=WP:Keep It Simple/Options#Label_themes |tgtname=basic |theme=basic}}{{WP:KIS/label |tgt=WP:Keep It Simple/Options#Label_themes |tgtname=tab |theme=tab}}{{WP:KIS/label |tgt=WP:Keep It Simple/Options#Label_themes |tgtname=tab2 |theme=tab2}}{{WP:KIS/label |tgt=WP:Keep It Simple/Options#Label_themes |tgtname=pink |theme=pink}}{{WP:Keep It Simple/tray bottom}}
:More information can be found in [[Wikipedia:Keep_It_Simple/Options#Label_themes|Theme Gallery]].

==See also==
* [[Wikipedia:Keep_It_Simple/Options|KIS Theme Options]]
* &#123;{[[WP:Keep It Simple/tray top]]}&#125;
* &#123;{[[WP:Keep It Simple/box top]]}&#125;

[[Category:Keep It Simple templates]]
}}</noinclude>

Revision as of 16:01, 10 March 2015

[[{{{tgt}}}]]