Actions

Template

Sandbox: Difference between revisions

From Betamountain.org

No edit summary
(Replaced content with "{{ #if: {{{1|}}} | parameter xx passed | parameter xx omitted }}")
 
Line 1: Line 1:
<div style="float: right; margin: 0 0 0.5em 1em;">
{{
{| class="wikitable" style="margin:0"
#if: {{{1|}}}
|+ style="border:1px solid #a2a9b1; border-bottom-width:0; padding:.2em .4em; background:#DDDDDD"| Sandbox
  | parameter xx passed
|-
  | parameter xx omitted
{{#if: {{{date|}}} |
{{!}}-
! scope="row" {{!}} Date
{{!}}
{{{date}}}
|
{{!}}-
! scope="row" {{!}} Week
{{!}}
{{#time:l, j F Y|{{{week|{{#time: Y-\WW}}}}}}} - {{#time:l, j F Y|{{{week|{{#time: Y-\WW}}}}} + 6 days}}
}}
}}
{{#if: {{{time|}}} |
{{!}}-
! scope="row" {{!}} Time
{{!}}
{{{time}}}
}}
|-
! scope="row" | Place
| {{{place|{{ {{TNTN|irc}} |wikimedia-dev}}}}}{{#if: {{{regrets|}}} |
{{!}}-
! scope="row" {{!}} Regrets
{{!}}
{{{regrets}}}
}}
|-
|}
{{#if: {{{prev|}}}{{{next|}}} |
<div style="border:1px solid #a2a9b1; border-top-width:0; background:#f8f9fa; padding:.2em .4em; overflow:auto"><!--
-->{{#if: {{{prev|}}} | <span style="float: left;">&laquo; [[Wikimedia Features engineering/Notes/{{{prev}}}|{{{prev}}}]]</span> }}<!--
-->{{#if: {{{next|}}} | <span style="float: right;">[[Wikimedia Features engineering/Notes/{{{next}}}|{{{next}}}]] &raquo;</span>}}
</div>
}}</div><includeonly>[[Category:Features team notes|{{SUBPAGENAME}}]]</includeonly><noinclude>
== Usage ==
Example:
<pre>
{{Features team notes box
|week=2011-W50
|regrets=
*John Doe
*A. C. M. Enotif
|prev=2011-W49
|next=2011-W51
}}
</pre>
As seen on: [[Wikimedia Features engineering/Notes/2011-W50]]
Copy/paste:
<pre>
{{Features team notes box
|week={{subst:SUBPAGENAME}}
|regrets=
|prev=
|next=
</pre>
;week: Week the notes are about (e.g. "<code>2011-W50</code>")
;date: Overrides "<code>week</code>".
;time: Optionally, provide a time (free form).
;place: Optional freeform text. Defaults to {{ {{TNTN|irc}} |wikimedia-dev}}.
;regrets: Optional a list of names
;prev: Subpagename (optional)
;next: Subpagename (optional)
:''This template categorizes the host page in [[:Category:Features team notes]].''
[[Category:Templates{{#translation:}}]]
</noinclude>

Latest revision as of 00:11, 13 January 2018

parameter xx omitted