Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Cpiral
m val/units/sandbox --> val/units
meta>Quondum
whoops: </noinclude> → <noinclude>
Line 88: Line 88:
           </noinclude>{{#invoke:String|replace<noinclude>
           </noinclude>{{#invoke:String|replace<noinclude>
           <!--&nbsp;[[title|markup]]: & (or [) is 1st, [ is 7th (or 1st)-->
           <!--&nbsp;[[title|markup]]: & (or [) is 1st, [ is 7th (or 1st)-->
             </noinclude>|source={{Val/units|{{{u}}}}}<noinclude>
             </noinclude>|source={{Val/units/sandbox|{{{u}}}}}<noinclude>
             </noinclude>|pattern=%[%[.+{{!}}<noinclude><!--keeps &nbsp;, but compare others -->
             </noinclude>|pattern=%[%[.+{{!}}<noinclude><!--keeps &nbsp;, but compare others -->
             </noinclude>|replace=(<noinclude>
             </noinclude>|replace=(<noinclude>
Line 100: Line 100:
         </noinclude>|source=<noinclude>
         </noinclude>|source=<noinclude>
           </noinclude>{{#invoke:String|replace<noinclude>
           </noinclude>{{#invoke:String|replace<noinclude>
             </noinclude>|source={{Val/units|{{{u}}}}}<noinclude>
             </noinclude>|source={{Val/units/sandbox|{{{u}}}}}<noinclude>
             </noinclude>|pattern=%[%[.+{{!}}<noinclude>
             </noinclude>|pattern=%[%[.+{{!}}<noinclude>
             </noinclude>|replace=<noinclude>
             </noinclude>|replace=<noinclude>
Line 117: Line 117:
           </noinclude>|source=<noinclude>
           </noinclude>|source=<noinclude>
           </noinclude>{{#invoke:String|replace<noinclude>
           </noinclude>{{#invoke:String|replace<noinclude>
             </noinclude>|source={{Val/units|{{{ul}}}|ls={{{long scale}}}}}<noinclude>
             </noinclude>|source={{Val/units/sandbox|{{{ul}}}|ls={{{long scale}}}}}<noinclude>
             </noinclude>|pattern=[<noinclude><!-- keep spacing -->
             </noinclude>|pattern=[<noinclude><!-- keep spacing -->
             </noinclude>|replace=([<noinclude>
             </noinclude>|replace=([<noinclude>
Line 125: Line 125:
           </noinclude>|replace=]])<noinclude>
           </noinclude>|replace=]])<noinclude>
           </noinclude>|plain=false<noinclude><!-- using %]%], not ]], prevents code mangle -->
           </noinclude>|plain=false<noinclude><!-- using %]%], not ]], prevents code mangle -->
         </noinclude>}}</noinclude>
         </noinclude>}}<noinclude>
       </noinclude>|<noinclude><!-- normal call -->
       </noinclude>|<noinclude><!-- normal call -->
       </noinclude>{{val/units|{{{ul}}}|ls={{{long scale}}}}}<noinclude>
       </noinclude>{{val/units/sandbox|{{{ul}}}|ls={{{long scale}}}}}<noinclude>
     </noinclude>}}<noinclude>
     </noinclude>}}<noinclude>
   </noinclude>}}<noinclude><!-- End up/upl AND ul
   </noinclude>}}<noinclude><!-- End up/upl AND ul
Line 137: Line 137:
         |source =  
         |source =  
           {{#invoke:String|replace
           {{#invoke:String|replace
             |source={{Val/units|{{{up}}}}}
             |source={{Val/units/sandbox|{{{up}}}}}
             |pattern=.*%[%[.+{{!}}<noinclude><!-- remove spacing --></noinclude>
             |pattern=.*%[%[.+{{!}}<noinclude><!-- remove spacing --></noinclude>
             |replace=/(
             |replace=/(
Line 149: Line 149:
         |source=
         |source=
           {{#invoke:String|replace
           {{#invoke:String|replace
             |source={{Val/units|{{{up}}}}}
             |source={{Val/units/sandbox|{{{up}}}}}
             |pattern=.*%[%[.+{{!}}
             |pattern=.*%[%[.+{{!}}
             |replace=/
             |replace=/
Line 164: Line 164:
         |source=
         |source=
           {{#invoke:String|replace
           {{#invoke:String|replace
             |source={{Val/units|{{{upl}}}}}
             |source={{Val/units/sandbox|{{{upl}}}}}
             |pattern=.-%[ <noinclude><!-- remove spacing --></noinclude>
             |pattern=.-%[ <noinclude><!-- remove spacing --></noinclude>
             |replace=/([
             |replace=/([
Line 176: Line 176:
       |<noinclude><!-- Same thing, but without replace with parentheses --></noinclude>
       |<noinclude><!-- Same thing, but without replace with parentheses --></noinclude>
       {{#invoke:String|replace
       {{#invoke:String|replace
         |source={{val/units|{{{upl}}}}}
         |source={{val/units/sandbox|{{{upl}}}}}
         |pattern=.-%[<noinclude><!-- remove spacing: PCRE is .*?[ --></noinclude>
         |pattern=.-%[<noinclude><!-- remove spacing: PCRE is .*?[ --></noinclude>
         |replace=/[
         |replace=/[
Line 190: Line 190:
         |source=
         |source=
           {{#invoke:String|replace
           {{#invoke:String|replace
             |source={{val/units|{{{u}}}}}
             |source={{val/units/sandbox|{{{u}}}}}
             |pattern=%[%[.+{{!}}<noinclude><!-- keep unit spacing --></noinclude>
             |pattern=%[%[.+{{!}}<noinclude><!-- keep unit spacing --></noinclude>
             |replace=
             |replace=
Line 200: Line 200:
   }}<noinclude><!--
   }}<noinclude><!--
   --></noinclude>{{#if:{{{ul|}}}
   --></noinclude>{{#if:{{{ul|}}}
     |{{val/units|{{{ul}}}|ls={{{long scale}}}}}
     |{{val/units/sandbox|{{{ul}}}|ls={{{long scale}}}}}
   }}
   }}
  }}<noinclude><!-- end up/upl
  }}<noinclude><!-- end up/upl

Revision as of 19:09, 2 June 2015