Difference between revisions of "Template:Appr/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Smaug123
(→‎How to use this template: Added hyphen + subst)
blackwiki>Smaug123
(Reverted to revision 370359914 by Hi878; Oops... damn that subst!. (TW))
Line 4: Line 4:
 
</br>
 
</br>
 
This wil produce:</br>
 
This wil produce:</br>
{{#switch:
+
{{ns0||[[Image:Artículo bueno.svg|18px|link=|alt=]] '''Approved'''}} per consensus, with 6 for and 2 against, for [[WP:Motto of the day/February 31, 0000|February 31]]. --~~ [[User:Hi878|<font style="color:#006400">Hi</font><font style="color:#DC143C">8</font><font style="color:#800000">7</font><font style="color:#FF4500">8</font>]]  <sup>[[User talk:Hi878|<font style="color:#0000CD">(''Come yell at me!'')</font>]]</sup> 04:50, 27 June 2010 (UTC)
  <!--If no or empty "demospace" parameter then detect namespace-->
 
  {{#if:
 
  | {{lc: {{{demospace}}} }}    <!--Use lower case "demospace"-->
 
  | {{#ifeq:{{NAMESPACE}}|{{ns:0}}
 
    | main
 
    | other
 
    }}
 
  }}
 
| main    =
 
| other
 
| #default = [[Image:Artículo bueno.svg|18px|link=|alt=]] '''Approved'''
 
}} - per consensus, with 6 for and 2 against, for [[WP:Motto of the day/February 31, 0000|February 31]]. --~~ [[User:Hi878|<font style="color:#006400">Hi</font><font style="color:#DC143C">8</font><font style="color:#800000">7</font><font style="color:#FF4500">8</font>]]  <sup>[[User talk:Hi878|<font style="color:#0000CD">(''Come yell at me!'')</font>]]</sup> 04:50, 27 June 2010 (UTC)
 
  
 
==Related Templates==
 
==Related Templates==
 
*[[Template:Rej]]
 
*[[Template:Rej]]
 
*[[Template:ThrowMotto]]
 
*[[Template:ThrowMotto]]

Revision as of 08:44, 27 June 2010

How to use this template

Replace the following parameters with whatever would be appropriate.
{{subst:Appr|<it>number of supports</it>|<it>number of opposes</it>|<it>reason</it>|<it>month and date approved for</it>|<it>year approved for</it>}}

This wil produce:
Template:Ns0 per consensus, with 6 for and 2 against, for February 31. --~~ Hi878 (Come yell at me!) 04:50, 27 June 2010 (UTC)

Related Templates