Template:Claim: Difference between revisions

m Added "align" and "width" and "dismiss" parameters.
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{notice
<includeonly>{{notice|id=claim-notice
|header=This page or section was claimed by [[User:{{{user|}}}|{{{user|}}}]]<!--
|header=This page or section was claimed by [[User:{{{user|}}}|{{{user|}}}]]<!--
   -->{{#if:{{{date|}}}|&nbsp;in&nbsp;{{#time:F Y|{{{date}}}}}}}.
   -->{{#if:{{{date|}}}|&nbsp;in&nbsp;{{#time:F Y|{{{date}}}}}}}.
Line 13: Line 13:
== Usage ==
== Usage ==
If you use this template, please create that page's discussion page, if it has not already been created.
If you use this template, please create that page's discussion page, if it has not already been created.
:'''Note:''' You can also pass <code>align=</code>, <code>width=</code>, and <code>dismiss=no</code> for more granular control of visual appearance. For more details on these parameters, see [[:Template:Notice]].


{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">User Claim</span><br><div style="text-align: left;"><span style="font-weight: normal;">When <code>user=</code> is passed, the user is added to the notice.</span></div>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">User Claim</span><br><div style="text-align: left;"><span style="font-weight: normal;">When <code>user=</code> is passed, the user is added to the notice. This parameter is required.</span></div>
|-
|-
! width=25%|You Type
! width=25%|You Type
!You Get
!You Get
|-
|-
| style="text-align: left; background-color: white;" |<pre>{{claim
| style="text-align: left;" |<pre>{{claim
|user=USERNAME
|user=USERNAME
}}</pre>
}}</pre>
| style="background-color: white;" |{{notice|width=87%|color=#FFFACD |header=This page or section was claimed by [[User:TheRoman|TheRoman]].|text=Please [[{{TALKPAGENAME}}|collaborate]] with them before making changes.}}
|{{claim|user=TheRoman|align=center|width=87%}}
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">User Claim, with Date</span><br><div style="text-align: left;"><span style="font-weight: normal;">When <code>date=</code> is passed, the date of the claim is added. All date formats should be accepted, however, no matter the input, the output will display the date as: "MONTH YEAR"</span></div>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">User Claim, with Date</span><br><div style="text-align: left;"><span style="font-weight: normal;">When <code>date=</code> is passed, the date of the claim is added. All date formats should be accepted, however, no matter the input, the output will display the date as: "MONTH YEAR"</span></div>
Line 31: Line 32:
!You Get
!You Get
|-
|-
| style="text-align: left; background-color: white;" |<pre>{{claim
| style="text-align: left;" |<pre>{{claim
|user=USERNAME
|user=USERNAME
|date=DATE
|date=DATE
}}</pre>
}}</pre>
| style="background-color: white;" |{{notice|width=87%|color=#FFFACD |header=This page or section was claimed by [[User:TheRoman|TheRoman]] in March 1883.|text=Please [[{{TALKPAGENAME}}|collaborate]] with them before making changes.}}
|{{claim|user=TheRoman|date=March 1883|align=center|width=87%}}
|}
|}