Difference between revisions of "User:Dennis/toolbox"

From Gunsopedia
Jump to: navigation, search
(colours)
(tables)
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
 
{{User:Dennis/header}}
 
{{User:Dennis/header}}
For all that crap that keeps slipping my mind somehow.  This wiki has {{PAGESINNAMESPACE:14}} categories so far.
+
{{TOC right}}For all that crap that keeps slipping my mind somehow.  This wiki has {{PAGESINNAMESPACE:14}} categories so far.
  
 
* hanging indent: div style="padding-left: 4em; text-indent: -3em"
 
* hanging indent: div style="padding-left: 4em; text-indent: -3em"
Line 8: Line 8:
 
== to do ==
 
== to do ==
 
* Change scripts - /opt/php53/bin/php is no longer valid path.
 
* Change scripts - /opt/php53/bin/php is no longer valid path.
 +
 +
== syntax ==
 +
;IF
 +
<pre>{{#if: string | ValueIfTrue | ValueIfFalse }}</pre>
  
 
== tables ==
 
== tables ==
Line 14: Line 18:
 
* '''style="border-left: 5px solid red;"''' for example
 
* '''style="border-left: 5px solid red;"''' for example
 
* '''style="font-size:200%"''' seems like it always has to be in percent for some reason...
 
* '''style="font-size:200%"''' seems like it always has to be in percent for some reason...
 +
 +
; for making hornady tables easier
 +
<pre>
 +
{| class="wikitable"
 +
|+ [[Hornady]] munitions fired from a 24" [[barrel]]<ref name="hornady">Data taken from tables published by Hornady, 2/5/2015.</ref>
 +
|-
 +
! rowspan="2"|Bullet !!colspan=6| [[Velocity]] in fps. !!colspan=6| Energy in ft&middot;lbs. !!colspan=6| [[Trajectory]] Tables in inches
 +
|-
 +
! Muzzle !! 100 yd !! 200 yd !! 300 yd !! 400 yd !! 500 yd !! Muzzle !! 100 yd !! 200 yd !! 300 yd !! 400 yd !! 500 yd !! Muzzle !! 100 yd !! 200 yd !! 300 yd !! 400 yd !! 500 yd
 +
|-
 +
copypasta
 +
|}</pre>
 +
and
 +
<pre>
 +
{| class="wikitable"
 +
|+ [[Hornady]] munitions fired from a 24" [[barrel]]<ref name="hornady"/>
 +
|-
 +
! rowspan="2" | Bullet !! rowspan="2" | B.C. !! colspan="7" | Velocity in m/sec. !! colspan="7" | Energy in joules
 +
|-
 +
! Muzzle || 50m || 100m || 150m || 200m || 250m || 300m || Muzzle || 50m || 100m || 150m || 200m || 250m || 300m
 +
|-
 +
copypasta
 +
|-
 +
! rowspan="2" | Bullet || colspan="7" | Trajectory (cm) || rowspan="2" | GEE || colspan="7" | GEE Trajectory
 +
|-
 +
! Muzzle || 50m || 100m || 150m || 200m || 250m || 300m || Muzzle || 50m || 100m || 150m || 200m || 250m || 300m
 +
|-
 +
copypasta
 +
|}</pre>
  
 
== colours ==
 
== colours ==
Line 40: Line 73:
 
  | Name of category where (including its children) all articles reside
 
  | Name of category where (including its children) all articles reside
 
  |}
 
  |}
 +
Extension project page is [https://www.mediawiki.org/wiki/Extension:Dynamic_Article_List here].
 +
<pre>
 +
<DynamicArticleList>
 +
  title=
 +
  type=
 +
  count=
 +
</DynamicArticleList>
 +
</pre>
 
* If "categoryRoot" is set, ''Dynamic Article List'' will only retrieve articles in this category and its children. If not, all articles will be candidates.
 
* If "categoryRoot" is set, ''Dynamic Article List'' will only retrieve articles in this category and its children. If not, all articles will be candidates.
 
* The value of parameter "type" could be one of the following (default is ''' ''new'' '''):
 
* The value of parameter "type" could be one of the following (default is ''' ''new'' '''):

Latest revision as of 09:11, 19 July 2015

 Dennis To Do Sandbox Drafts Log Toolbox 

Contents

For all that crap that keeps slipping my mind somehow. This wiki has 231 categories so far.
  • hanging indent: div style="padding-left: 4em; text-indent: -3em"
  • 256-IP ban hammer example: 173.208.25.0/24
  • 65,536-IP ban hammer looks like: 69.208.0.0/16

[edit] to do

  • Change scripts - /opt/php53/bin/php is no longer valid path.

[edit] syntax

IF
{{#if: string | ValueIfTrue | ValueIfFalse }}

[edit] tables

  • it's "toccolours" not TOCcolours, TOC_Colors, or any of that other shit...
  • style="margin: auto auto auto auto;" top right bottom left, in em, not px
  • style="border-left: 5px solid red;" for example
  • style="font-size:200%" seems like it always has to be in percent for some reason...
for making hornady tables easier
{| class="wikitable"
|+ [[Hornady]] munitions fired from a 24" [[barrel]]<ref name="hornady">Data taken from tables published by Hornady, 2/5/2015.</ref>
|- 
! rowspan="2"|Bullet !!colspan=6| [[Velocity]] in fps. !!colspan=6| Energy in ft·lbs. !!colspan=6| [[Trajectory]] Tables in inches
|-
! Muzzle !! 100 yd !! 200 yd !! 300 yd !! 400 yd !! 500 yd !! Muzzle !! 100 yd !! 200 yd !! 300 yd !! 400 yd !! 500 yd !! Muzzle !! 100 yd !! 200 yd !! 300 yd !! 400 yd !! 500 yd
|-
copypasta
|}

and

{| class="wikitable"
|+ [[Hornady]] munitions fired from a 24" [[barrel]]<ref name="hornady"/>
|-
! rowspan="2" | Bullet !! rowspan="2" | B.C. !! colspan="7" | Velocity in m/sec. !! colspan="7" | Energy in joules
|-
! Muzzle || 50m || 100m || 150m || 200m || 250m || 300m || Muzzle || 50m || 100m || 150m || 200m || 250m || 300m
|-
copypasta
|-
! rowspan="2" | Bullet || colspan="7" | Trajectory (cm) || rowspan="2" | GEE || colspan="7" | GEE Trajectory 
|-
! Muzzle || 50m || 100m || 150m || 200m || 250m || 300m || Muzzle || 50m || 100m || 150m || 200m || 250m || 300m
|-
copypasta
|}

[edit] colours

#9BCD9B for standard headers
#F0FFF0 for standard backgrounds

[edit] Dynamic article list

Tag Name DynamicArticleList
Parameters title (optional) Title of the output article list
type (optional) Type of dynamic article list (new/update/discussion/hot)
count (optional) Output count of articles
categoryRoot (optional) Name of category where (including its children) all articles reside

Extension project page is here.

<DynamicArticleList>
  title=
  type=
  count=
</DynamicArticleList>
  • If "categoryRoot" is set, Dynamic Article List will only retrieve articles in this category and its children. If not, all articles will be candidates.
  • The value of parameter "type" could be one of the following (default is new ):
    • new => Newly Posted Articles
    • update => Recently Updated Articles
    • discussion => Recent Discussions
    • hot => Most Popular Articles
  • The default value of "count" is 5 .
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox