User:Sdsds/sandbox/Lgp/doc
Appearance
Manifesto
[edit]Create a single 'lgp' template for convenient reference to Lagrange points.
Goals
[edit]- Allow the current Template:L1, Template:L2 etc. to become used like User:Sdsds/sandbox/Lgp/L1replacement
- Support linking to the full Lagrange point article, either when:
- multiple Lagrange points are referenced, or
- when explicitly requested
- Support use of either 'point's or 'Lagrange point's in visible text, with and without links
Approach
[edit]- Factor out list generation - User:Sdsds/sandbox/Lgp/Lgplist - User:Sdsds/sandbox/Lgp/ccs
- Add optional text to use
Examples
[edit]- {{Lgp}} - Lagrange point
- {{Lgp|link=none}} - Lagrange point
- {{Lgp|1}} - L1 Lagrange point
- {{Lgp|5|link=list}} - L5 Lagrange point
- {{Lgp|5|link=none}} - L5 Lagrange point
- {{Lgp|5|link=list|notext=true}} - L5
- {{Lgp|2|link=text|usetext=[[Lagrange point|colinear point]]}} - L2 colinear point
- {{Lgp|2|link=text|usetext=[[Lagrange point#L2|colinear point]]}} - L2 colinear point
- {{Lgp|3|link=list|usetext=point}} - L3 point
- {{Lgp|4|5|usetext=non-colinear points}} - L4 and L5 non-colinear points
- {{Lgp|3|4|link=list}} - L3 and L4 Lagrange points
- {{Lgp|1|2|3|link=text}} - L1, L2 and L3 Lagrange points
- {{Lgp|1|2|3|4|5|notext=true}} - L1, L2, L3, L4 and L5
- {{Lgp|1|2|5|link=both}} - L1, L2 and L5 Lagrange points
- {{Lgp|2|clpage=Lagrange point|cltarget=Lagrange point#L2}} - L2 Lagrange point
- pt=yes is for use in e.g. L1replacement templates
- {{Lgp/L1replacement|pt=yes}} - L1 point
- {{L1|pt=yes}} - L1 point
- {{Lgp/L1replacement|2|3|5|pt=yes}} - L1, L2, L3 and L5 points
- {{L1|2|3|5|pt=yes}} - L1, L2, L3 and L5 points