Jump to content
Wikipedia The Free Encyclopedia

User:Sddarealone/sandbox/WikicodeTest

From Wikipedia, the free encyclopedia

/—\—/—\—/—\—/—\—/—\_Test 101_/—\—/—\—/—\—/—\—/—\

References
Typography WP:TYPE
Color Accessibility MOS:COLORS
Wikitext All in one
Wikitext Tables Tables full
Advanced Table Features H:Table/A
Wikitext Templates Templates full
Templates ready to use

Template r2u

For any CSS styles, Wiki tables, HTML tables, Wiki templates, tools or other cool features that maybe new to me.

Tables

[edit ]

Summing up all features:

  1. Wikitable default class="wikitable" ... basic (single pipe for cells, single exclamation for headings); standard (double pipes and exclamations); HTML (table, table row and table data tags)
  2. CSS style inline with style="property:value" eg. style="color:red; background-color:blue;" and external using HTML ie. attribute=value eg. width=10em; align=left;
  3. Collapsible tables. mw-collapsed for showing first then hide; mw-collapsible mw-collapsed for first hiding then show table.
  4. Vertical scrollbar style="height:y; overflow:auto;" and horizontal scrollbar style="width:x; overflow-x:auto;".
  5. Sticky table {{sticky header}} and in class="sticky header"; don't use with scrollbars or it won't work.
  6. All CSS features (padding, spacing, margin, height, width, font and others) in table cells work just as standard CSS.
  7. Row hover highlight {{row hover highlight}} to highlight on hovering row cells. White only cells class="mw-datatable" and Greyed cells class="hover-highlight".
  8. Right alignment in table data cells using style="text-align:right" and center align using style="text-align:centre".
  9. Decimal point alignment using {0|0...} if data cells are aligned to centre.
  10. Column alignment using {{Table alignment}} and add in class="colxalign" where x is column no. and align is left, right and center.
  11. Side by side tables without images using display:inline-grid; and with images style="vertical-align:top/center/bottom;" where customization can be added such as margin with margin-left:5em;. Note that <div> box is must.
  12. Float table / images using float:left/right;

Each table consists of table padding, table spacing and cell padding. To be continued...

Tables testground

[edit ]

1. Vertical scroller

Short-ened shortcuts list
Key Function
CTRL + / Opens all shortcuts
CTRL + 0 Paragraph
CTRL + 1 Title
CTRL + 2 Section
CTRL + 3, 4, 5 and 6 Subheadings of progressively smaller size
CTRL + B Bolds the text
CTRL + I Italicizes the text
CTRL + < or > KEY Fast move to left or right
CTRL + SHIFT + < or > KEY Fast select to left or right
CTRL + K Adds an inline / external citation
CTRL + SHIFT + K Adds a reference (automatic, basic, manual)
{{Template-name}} For any template e.g., media licenses, maintenance templates, references etc.
CTRL + SHIFT + P Toolbar search

2. Horizontal scroller

Short-ened shortcuts list
Key Function Duplicate Key Duplicate Function
CTRL + / Opens all shortcuts CTRL + / Opens all shortcuts
CTRL + 0 Paragraph CTRL + 0 Paragraph
CTRL + 1 Title CTRL + 1 Title
CTRL + 2 Section CTRL + 2 Section
CTRL + 3, 4, 5 and 6 Subheadings of progressively smaller size CTRL + 3, 4, 5 and 6 Subheadings of progressively smaller size
CTRL + B Bolds the text CTRL + B Bolds the text
CTRL + I Italicizes the text CTRL + I Italicizes the text
CTRL + < or > KEY Fast move to left or right CTRL + < or > KEY Fast move to left or right
CTRL + SHIFT + < or > KEY Fast select to left or right CTRL + SHIFT + < or > KEY Fast select to left or right
CTRL + K Adds an inline / external citation CTRL + K Adds an inline / external citation
CTRL + SHIFT + K Adds a reference (automatic, basic, manual) CTRL + SHIFT + K Adds a reference (automatic, basic, manual)
{{Template-name}} For any template e.g., media licenses, maintenance templates, references etc. {{Template-name}} For any template e.g., media licenses, maintenance templates, references etc.
CTRL + SHIFT + P Toolbar search CTRL + SHIFT + P Toolbar search

A. Basic

Column wise filling

Will use these cars in GTAVI
Car Manufacturer Model Image
Toyota Supra dbllb File:pic-A.jpg dblrb
Hyundai i10 dbllb File:pic-B.jpg dblrb
Buggatti Veyron dbllb File:pic-C.jpg dblrb
Lykan Hypersport dbllb File:pic-D.jpg dblrb
Chevrolet Corvette dbllb File:pic-E.jpg dblrb

B. How2basic

Column wise filling

Anatomy
Head Body Tail
Eyes Chest Rump
Antennae Rounded body Sting
Mane Stripes Furry Tail
Trunk Stomach Good Tail

Row wise filling

Anatomy
Head Eyes Antennae Mane Trunk
Body Chest Rounded body Stripes Stomach
Tail Rump Sting Furry Tail Good Tail

C. HTML only

Column wise filling

Reversing the table list of cars
Image Model Car Manufacturer
dbllb File:pic-E.jpg dblrb Corvette Chevrolet
dbllb File:pic-D.jpg dblrb Hypersport Lykan
dbllb File:pic-C.jpg dblrb Veyron Buggatti
dbllb File:pic-B.jpg dblrb i10 Hyundai
dbllb File:pic-A.jpg dblrb Supra Toyota

4. Decimal Points

Test addition
Algebraic expression Sum
10 + 1^-1 10.1
10 + 1^-2 10.01
10 + 1^-3 10.001
10 + 1^-4 10.0001
10 + 1^-5 10.00001

5. Column alignment

Sportsperson
Name Sport Record Holder? BLP?
Roger Federer Tennis Yes Yes
Michael Phelps Swimming Yes Yes
Alejandro Garnacho Football No Yes
Dale Earnhardt Sr. Stock car racing (NASCAR) Yes No

Side by side tables with or without images

Anatomy
Head Body Tail
Eyes Chest Rump
Antennae Rounded body Sting
Mane Stripes Furry Tail
Trunk Stomach Good Tail
Will use these cars in GTAVI
Car Manufacturer Model Image
Toyota Supra dbllb File:pic-A.jpg dblrb
Hyundai i10 dbllb File:pic-B.jpg dblrb
Buggatti Veyron dbllb File:pic-C.jpg dblrb
Lykan Hypersport dbllb File:pic-D.jpg dblrb
Chevrolet Corvette dbllb File:pic-E.jpg dblrb
Anatomy
Head Body Tail
Eyes Chest Rump
Antennae Rounded body Sting
Mane Stripes Furry Tail
Trunk Stomach Good Tail

Anatomy
Head Body Tail
Eyes Chest Rump
Antennae Rounded body Sting
Mane Stripes Furry Tail
Trunk Stomach Good Tail

Templates

[edit ]

1. Drop dlcb drop|X drcb used to largen the first letter of starting word in a sentence.

2. Using plainlist by dlcb Plainlist|... drcb; alternative dlcb plainlist drcb ... dlcb endplainlist drcb.

3. For horizontal list its dlcb hlist|...|...|... drcb.

Now comes the real thing

1. Simplest is lorem ipsum dlcb lorem ipsum dlrb

drop

H

are couldn't beat the tortoise in the race not because it was lazy, but because it was not slow and steady. Although if the roadrunner helped it, it would have won the race and we wouldn't have with us that Aesop's fable.

plainlist

My FC mobile squad (2024-25)

horizontal list

adding tocbox to show template src code

{{{1}}}
{{{2}}}






lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


span the man

If you read this far, I'll give yer a wikilove. Knight Commander of the Order of Patience (yes it doesn't exist)

Text Property Notes
also don't call center as deprecated. It still works.

Both PADDING and MARGIN style-rule values use the sequence TOP, RIGHT, BOTTOM, then LEFT, i.e. clockwise starting at the top.

BORDER uses the sequence BORDER-WIDTH, BORDER-STYLE, then BORDER-COLOR for all of the four borders at once. Other properties can address the four separately.

PADDING is the space around the text. MARGIN is the space around the text block. BORDER is the line that surrounds the text and its padding.

The code block contains the common text properties.

Table parameters

{{{1}}}
{{{2}}}




dropthing and dropimage used for drop controls.

AltStyle によって変換されたページ (->オリジナル) /