Difference between revisions of "Template:DemoEntry"

From Team Fortress Wiki
Jump to: navigation, search
m (Test)
m
Line 1: Line 1:
<div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: {{#switch: {{{status|nodemo}}}
+
<div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: {{#switch: {{lc:{{{status|nodemo}}}}}
  | review-needed = orange
+
  | review needed = orange
 
  | approved = green
 
  | approved = green
 
  | nodemo | #default = grey
 
  | nodemo | #default = grey
 
}}; padding: 1em;">
 
}}; padding: 1em;">
{{Reservation|{{{reservation|No one}}}}}
+
{{Reservation|{{{reservation|No one}}}}}<br>{{#if:{{{changes|}}}|{{{changes}}}<br>|}}{{#if:{{{video|}}}|[{{{video}}} Demonstration link]<br>|}}
{{#ifeq:{{{reservation|No one}}}|No one||[{{{video}}} Demonstration link]}}
 
 
{{{content}}}
 
{{{content}}}
</div>
+
</div><noinclude>
 +
{{Doc begin}}
 +
Template used on the [[Team Fortress Wiki talk:Weapon Demonstration|Weapon Demonstration project talk page]]. Used to easily identify which demonstrations need reviewing.
 +
== Usage ==
 +
<pre>{{ReservationUpdate
 +
| status =
 +
| reservation =
 +
| changes =
 +
| video =
 +
| content =
 +
}}</pre>
 +
 
 +
; status
 +
: 3 possible parameters. {{code|review needed}}, use if a video has been uploaded that needs a review from one of the approved reviewers. {{code|nodemo}} (default), use this if no demonstration has been made yet, or if the last demo was denied (remove the video parameter too). {{code|approved}}, used by reviewers when they approve the video.
 +
 
 +
; reservation
 +
: Uses {{tl|Reservation}} template, user claiming this demonstration should put their signature here.
 +
 
 +
; changes
 +
: Optional, used on demonstrations that are an update to the previous one. Should list the changes compared to the old video. E.g. "Does not show off x stat".
 +
 
 +
; video
 +
: Link to the video for reviewers to view. Remove this if the previous demo was denied.
 +
 
 +
; content
 +
: The discussion and everything else under the header.
 +
</noinclude>

Revision as of 02:00, 11 February 2024

Pictogram wait.png This demonstration has been reserved: No one
{{{content}}}

Documentation for DemoEntry

Template used on the Weapon Demonstration project talk page. Used to easily identify which demonstrations need reviewing.

Usage

{{ReservationUpdate
 | status = 
 | reservation =
 | changes =
 | video =
 | content =
}}
status
3 possible parameters. review needed, use if a video has been uploaded that needs a review from one of the approved reviewers. nodemo (default), use this if no demonstration has been made yet, or if the last demo was denied (remove the video parameter too). approved, used by reviewers when they approve the video.
reservation
Uses {{Reservation}} template, user claiming this demonstration should put their signature here.
changes
Optional, used on demonstrations that are an update to the previous one. Should list the changes compared to the old video. E.g. "Does not show off x stat".
video
Link to the video for reviewers to view. Remove this if the previous demo was denied.
content
The discussion and everything else under the header.