Template:Pp-vandalism: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Nihiltres
Fix insertion of demolevel parameter.
meta>Nihiltres
Refining demolevel defaulting scheme to enable the undefined case since, as I earlier forgot, templates cannot be passed parameters by ParserFunctions.
Line 9: Line 9:
|small={{{small|}}}
|small={{{small|}}}
|demospace={{{demospace|}}}
|demospace={{{demospace|}}}
|{{#ifeq:{{{demolevel|1}}}{{{demolevel|2}}}|12||demolevel={{{demolevel|}}}}}<!--applies demolevel only if it's defined-->
|demolevel={{{demolevel|undefined}}}
|expiry={{{expiry|}}}
|expiry={{{expiry|}}}
|dispute={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}<!--having this switch may be unnecessary, but as it was "yes" here and "no" on pp-semi-vandalism, the template is changed less this way.-->
|dispute={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}<!--having this switch may be unnecessary, but as it was "yes" here and "no" on pp-semi-vandalism, the template is changed less this way.-->

Revision as of 17:30, 4 March 2009

Template:Pp-meta