Difference between revisions of "Template:DemoEntry"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Undo edit by Ashe (Talk) (3813183) it doesn't use parameters lol)
(Tag: Undo)
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--
+
{{#switch: {{{1|begin}}}
 
+
| end = </div>
ISSUE: Vertical bars in signatures and such will destroy the template. Find a fix, perhaps use #replace?
+
| begin | #default = <div style="clear: both; margin: 1em 0 0 0; border:3px solid #aaa; border-color: {{#switch: {{lc:{{{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}}}}}<br>{{#if:{{{changes|}}}|{{{changes}}}<br>|}}{{#if:{{{video|}}}|[{{{video}}} Demonstration link]<br>|}}
+
{{Reservation|{{#if:{{{reservation|}}}|{{{reservation}}}|No one}}}}<br>{{#if:{{{changes|}}}|{{{changes}}}<br>|}}{{#if:{{{video|}}}|[{{{video}}} {{{video-text|Demonstration link}}}]{{#if:{{{video-extra|}}}|&nbsp;|<br>}}}}{{#if:{{{video-extra|}}}|{{{video-extra}}}|}}
{{{content}}}
+
{{#switch: {{lc:{{{status}}}}}|review needed={{info}}|approved={{Check}}|nodemo|#default=[[File:Pictogram comment.png|15px]]}} '''Status''': {{#switch: {{lc:{{{status}}}}}
</div><noinclude>
+
| review needed = Review needed
 +
| approved = Demonstration approved
 +
| nodemo | #default = No demonstration submitted
 +
}}<br><hr style="margin:0.25em 0em; background: {{#switch: {{lc: {{{status|nodemo}}}}}|review needed = orange|approved = green|nodemo|#default = grey}}"/>
 +
}}<noinclude></div>
 
{{Doc begin}}
 
{{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.
 
Template used on the [[Team Fortress Wiki talk:Weapon Demonstration|Weapon Demonstration project talk page]]. Used to easily identify which demonstrations need reviewing.
 
== Usage ==
 
== Usage ==
<pre>{{ReservationUpdate
+
<pre>{{DemoEntry
 +
| begin/end
 
  | status =  
 
  | status =  
 
  | reservation =
 
  | reservation =
 
  | changes =
 
  | changes =
 
  | video =
 
  | video =
  | content =
+
  | video-text =
 +
| video-extra =
 
}}</pre>
 
}}</pre>
 +
 +
; 1
 +
: The first parameter, used to indicate if this is the start or the end of a talk page section. Takes "begin" or "end".
  
 
; status
 
; 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.
+
: 3 possible parameters:
 +
:: {{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|review needed}}, use if a video has been uploaded that needs a review from one of the approved reviewers.
 +
:: {{code|approved}}, used by reviewers when they approve the video.
  
 
; reservation
 
; reservation
Line 32: Line 42:
  
 
; video
 
; video
: Link to the video for reviewers to view. Remove this if the previous demo was denied.
+
: Link to the video for reviewers to view, remember to only use the link! Remove this if the previous demo was denied.
 +
 
 +
:; video-extra
 +
:: Link to extra videos, this requires custom markup (e.g. <nowiki>[https://www.youtube.com/watch?v=iBUZs-2hcOo Video 1]{{md}}[https://www.youtube.com/watch?v=pp1aG96H6qY Video 2]</nowiki> to produce: [https://www.youtube.com/watch?v=iBUZs-2hcOo Video 1]{{md}}[https://www.youtube.com/watch?v=pp1aG96H6qY Video 2])
 +
 
 +
:; video-text
 +
:: Used to replace what the {{code|video}} parameter's text looks like. Defaults to "Demonstration link", this should only be used when {{code|video-extra}} is used.
 +
 
  
; content
+
== Example usage ==
: The discussion and everything else under the header.
+
<pre>{{DemoEntry
 +
| begin
 +
| status = review needed
 +
| reservation = ~~~~
 +
| changes = {{C|Needs to show off reduced healing when used}}
 +
| video = https://youtu.be/dQw4w9WgXcQ}}
 +
I added a video, please review it! JohnnyGamer2024, 14-6-2024 15:32
 +
:What a lovely video! DemoLover33, 14-6-2024 15:50
 +
{{DemoEntry|end}}
 +
</pre><br>This produces:
 +
{{DemoEntry
 +
| begin
 +
| status = review needed
 +
| reservation = [[Special:MyPage|{{WikiUsername}}]], {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}, {{CURRENTTIME}}
 +
| changes = {{C|Needs to show off reduced healing when used}}
 +
| video = https://youtu.be/dQw4w9WgXcQ}}
 +
I added a video, please review it! JohnnyGamer2024, 14-6-2024 15:32
 +
:What a lovely video! DemoLover33, 14-6-2024 15:50
 +
{{DemoEntry|end}}
 +
[[Category:Demonstration Project templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 01:36, 16 September 2024

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

Pictogram comment.png Status: No demonstration submitted

Documentation for DemoEntry

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

Usage

{{DemoEntry
 | begin/end
 | status = 
 | reservation =
 | changes =
 | video =
 | video-text =
 | video-extra =
}}
1
The first parameter, used to indicate if this is the start or the end of a talk page section. Takes "begin" or "end".
status
3 possible parameters:
nodemo (default), use this if no demonstration has been made yet, or if the last demo was denied (remove the video parameter too).
review needed, use if a video has been uploaded that needs a review from one of the approved reviewers.
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, remember to only use the link! Remove this if the previous demo was denied.
video-extra
Link to extra videos, this requires custom markup (e.g. [https://www.youtube.com/watch?v=iBUZs-2hcOo Video 1]{{md}}[https://www.youtube.com/watch?v=pp1aG96H6qY Video 2] to produce: Video 1 · Video 2)
video-text
Used to replace what the video parameter's text looks like. Defaults to "Demonstration link", this should only be used when video-extra is used.


Example usage

{{DemoEntry
 | begin
 | status = review needed
 | reservation = ~~~~
 | changes = {{C|Needs to show off reduced healing when used}}
 | video = https://youtu.be/dQw4w9WgXcQ}}
I added a video, please review it! JohnnyGamer2024, 14-6-2024 15:32
:What a lovely video! DemoLover33, 14-6-2024 15:50
{{DemoEntry|end}}

This produces:

Pictogram wait.png This demonstration has been reserved: WikiUsername, 1 December 2024, 08:45
Pictogram comment.png Needs to show off reduced healing when used
Demonstration link

Pictogram info.png  Status: Review needed

I added a video, please review it! JohnnyGamer2024, 14-6-2024 15:32

What a lovely video! DemoLover33, 14-6-2024 15:50