User:MacGyverMagic/Editing
My templates
[edit]- Left and Right box on my user page
- DYK update notice
- Bookmarks for WP pages box
- DYK featured notice
- Personal "In use" notice
- Contest notice
- Chemical
- Old links table
- User:MacGyverMagic/Ripper victims - colored template
{{newmessages|User talk:MacGyverMagic}} gives:
You may remove this notice at any time by removing the {{newmessages}} template.
Hieroglyphs Test
[edit]
|
evil written in ancient Egyptian hieroglyphs
Useful Box
[edit]'Put your text here'
User box
[edit]There is actually a template for making up your own boxes stemming from babel: Template:Userbox. Inserting {{Userbox|Green|Yellow|[[Image:Flag of the United Kingdom.svg|40px]]|This is an example infobox}} displays as:
(copied from Paul Klenk's talk page)
Inserting pictures
[edit][[Image:picturename.jpg|thumb|right|250px|description]]
Code
[edit]
Div and span attributes
[edit]
Please go over some basic div and span attributes. Put a {{tb}} on my talk page when awnsered.--Ipatrol (talk) 23:31, 3 November 2008 (UTC)
- DIV and SPAN at w3schools. If you still have questions then ask away! Otherwise look things up for yourself. --98.217.8.46 (talk) 01:48, 4 November 2008 (UTC)
- And we have an article on span and div. --—— Gadget850 (Ed) talk - 02:10, 5 November 2008 (UTC)
Variables
[edit]
{{CURRENTMONTH}} - 05
{{CURRENTMONTHNAME}} - May
{{CURRENTMONTHNAMEGEN}} - May
{{CURRENTDAY}} - 10
{{CURRENTDAYNAME}} - Monday
{{CURRENTYEAR}} - 2004
{{CURRENTTIME}} - 10:56
{{NUMBEROFARTICLES}} - 263229
Dashed Lines
[edit](Taken from the Village Pump)
<div style="float:right;
border-style:dashed;
border-color:blue;
border-width:1px;
text-align:center;
padding:2px;">
[[Wikipedia:WP|Shorthand:]]<br>
[[WP:VP]]
</div>
Infobox table coding
[edit]see edit screen for code
Bio box
[edit]Mr. X |
---|
Born |
12 August 1911 Upper Case, Puzzelania |
Occupation |
Wikipedian, 2001-2004 |
Template:Infobox Biography or thingy on the right.
Birth date and Age template
[edit]{{birth date and age|1993|2|20}} renders as
February 20, 1993Small and columns
[edit]<div class="references-small" style="-moz-column-count:2; column-count:2;"></div>
Hiding Text in Articles
[edit]Hello. I was editing (or trying to edit) some Wikibooks pages and I wanted to enter some problems and answers. My problem has to do with hiding the text so that the user can click a text line (ostensibly "Solution" or something like that) to see the answer. Is there any way to do this on Wikipedia? Thanks a lot for your help in advance.Robinson0120 02:07, 25 December 2006 (UTC)
- I don't know if that's possible, but there is a way to hide text so that only people editing the test will see it. So, it's possible to instruct readers to click the edit button, view the solution, then hit the back button. Edit this text to see what I mean... —Keakealani 02:09, 25 December 2006 (UTC)
Well, there's:
<div class="NavFrame" style="width: 40%"> <div style="background: #FFFFF0" class="NavHead">Question</div> <div class="NavContent">Answer</div> </div>
Which renders like:
... So surely there must be some simpler template out there. I don't quite know how to make it hidden by default, though. — Kieff 02:17, 25 December 2006 (UTC)
Wow, that was quick! Thanks to both of you. (If anybody DOES know how to make that template hidden, a chime in would be really appreciated!) Robinson0120 02:22, 25 December 2006 (UTC)
Try this! |
---|
It should work. Flcelloguy (A note?) 02:27, 25 December 2006 (UTC) |
- Alright! That's exactly what I'm looking for, thanks Flcelloguy!Robinson0120 02:29, 25 December 2006 (UTC)
Text/Input boxes
[edit]- from Help Desk
Is there a way to insert Text/Input boxes into pages? Ajl772 17:57, 8 March 2007 (UTC)
- Only in some specific cases. You can do this:
- or this:
- but the general case is impossible. (See 'edit' for this section to see how I've done this, or m:Help:Inputbox for full information about the syntax.) --ais523 18:11, 8 March 2007 (UTC)
to do task box
[edit]{{todo}} includes the following template:
|
Collapsible boxes
[edit]I would like to have a few boxes on my user page that can collapse (be hidden until [Show] is selected). I can't seem to find a template or an HTML tag to help me. Can you point me in the right direction? Thx! ←Signed:→Mr. E. Sánchez Get to know me! / Talk to me!←at≈:→ 03:52, 29 November 2008 (UTC)
- There's several ways, but one of the simplest is to use "collapsible collapsed" in the heading of a table.
Example #1 |
---|
THIS IS HIDDEN TEXT |
Example #2 |
---|
THIS IS HIDDEN TEXT |
- Another Method is this:
This method uses divs instead of table syntax. You can display some text here, and then have the user Click Show to display additional text.
I like this method best.
-- GateKeeper(X) @ 05:45, 29 November 2008 (UTC)
- Super awesome. I also like your favorite box. Thanks!! ←Signed:→Mr. E. Sánchez Get to know me! / Talk to me!←at≈:→ 07:17, 29 November 2008 (UTC)
- And there is the template {{hidden}}. --—— Gadget850 (Ed) talk - 08:36, 29 November 2008 (UTC)