DErik's Test Page Renamed: Difference between revisions

From RCGRS MRT Wiki
Jump to navigation Jump to search
(Undo revision 693 by DErik (talk))
 
(40 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{rtoc}}
<!--This is DErik's Test Page Renamed-->
= a heading =
[[Category:Works In Progress]] <span style="color:red;"><br />Under construction/modification by [[User:DErik|DErik]] ([[User talk:DErik|talk]]) 18:18, 20 May 2023 (PDT)<br /></span>
<center>this is centered?</center>
<!--{{rtoc}}-->
 
==Terms and concepts==
As with any subject of study, one must first know what things are. Putting labels (names) on them helps provide a frame of reference for them. So here's a short glossary of some terms and names you need to know.
* '''<span id="Ampere" />Ampere: The measure of electrical current through a circuit or component.'''
:*The current (amperage) value on a schematic is usually abbreviated as “amps” or annotated by the letter “A”.
:*The letter “I” is used for current in electrical formulas (we like to keep things a little difficult, but it’s etymology can be traced back to some French historical use).
* '''<span id="Current" />Current<ref name="wikiCurrent" />: The flow of electrons or ions through a conductive medium.'''
:One thing that confuses folks is: which way are the electons flowing? Typically, we consider the flow to be from the positive pole of an electrical source to the negative pole. But, to confuse things, the positive pole is actually deficient in electrons (or negatively charged ions), while the negative pole is saturated with them. So in strict physical terms, the flow of elections would be from the negative pole to the positive. Now, since I have probably confused you, ignore the reality of the situation and just consider that a current is simply the flow itself, and in most instances, the direction makes no difference. It is really the difference in electrical potential that is important. Current is measured in [[#Ampere|<u>'''''amperes'''''</u>]] and can be calculated by Ohm’s Law as [[#Voltage|<u>'''''voltage'''''</u>]] divided by [[#Resistance|<u>'''''resistance'''''</u>]].
<div style="text-align:center;"><math>I=\frac{V}{R}</math></div>
* '''<span id="Voltage" />Voltage<ref name="wikiVoltage" />: The electrical potential difference between two charged elements.'''
:In electronic engineering and research, the volt is defined as one joule per coulomb. But for model railroading, we rarely use joules or coulombs in our parlance, idioms, or vernacular exposition. But the most confusing thing about voltage is its relationship to energy and power. Voltage is measured in <u>'''volts'''</u> and can be calculated from Ohm’s Law as [[#Current|<u>'''''current'''''</u>]] multiplied by [[#Resistance|<u>'''''resistance'''''</u>]].
<div style="text-align:center;"><math>V=I*R</math></div>
* '''Energy vs Power<ref name="byjusEPW" /><ref name="energyeducation" />:'''
:For our purposes in model railroading, we can generally ignore power and energy concepts, as well as the related concept of work. So you might want to just skip this section. But, for completeness, let me elaborate a little bit.
:'''Energy''' is the ability to do work, or to provide power. Power is the actual performance of work for a specified period of time; that is, power is the rate of doing work, i.e., using energy. For example, energy is the charge present on a battery, and power is the battery's ability to deliver that charge over time to some circuit components.
:'''Power'''<ref name="wikiPower" /> is often measured in watts. As an example; the power used by a light bulb is measured in watts (not voltage or amperage). The way that power (usually in watts) is determined is based on energy over time. There are various terms (joules, ergs, newtons) used to express and calculate watts, but, for our usage in model railroading, it is basically just voltage times amperage (specifically, one watt is one volt times one ampere). So watts are really not relevant until a circuit is complete, since no power is being consumed from a battery until that circuit is closed.
:'''Kilowatt-hours'''<ref name="wikiKWH" /> are what you might see on your electric bill, as that is what the power companies use as billing metric. As you might suspect from the term, a watt-hour is the power provided by a one watt source or used by a device during one hour. Energy is calculated as the power supplied for a specified duration of time, hence kilowatt-hour is power in watts multiplied by time in hours.
:While batteries are often labeled by the voltage they possess, you may often see amp-hours or milliamp-hours on batteries. This is a way or expressing how long the charge of the battery will last. The charge itself really isn’t important, but it is used to determine the energy available in the battery and the power it can deliver.  For example, a battery with an amp-hour rating of The relationship between watts and amp-hours is based on the voltage. Watts can be computed from amp-hours by multiplying the amp-hours by the voltage. For example, a 9 volt battery having a rating of 625 milliamp-hours will have 5.625 watts available; so it could be used to power something that takes no more than 5.625 watts. And this will obviously decrease as the battery is used.
* '''Resistance<ref name="wikiResistance" />:'''https://en.wikipedia.org/wiki/Electrical_resistance_and_conductance
The
 
These units are probably enough to allow you to analyze and work with most of the electronic components and circuits present in a model railroad layout.
===References===
<references>
<ref name="ElecTut">[https://www.electronics-tutorials.ws/ Electronics Tutorials: Good explanations of several things about electricity and circuits.</ref>
<ref>[https://en.wikipedia.org/wiki/Electrical_resistance_and_conductance Wikipedia: Resistance and Conductance]</ref>
<ref>[https://en.wikipedia.org/wiki/Voltage Wikipedia: Voltage]</ref>
<ref>[https://www.reference.com/science/electrical-force-d1a7c39830a63b2f Reference: What Is Electrical Force?]</ref>
</references>
*Something else here<ref>Something else here</ref>
<references />
 
=Done with basic electronics testing=
 
 
This is a test page, where I experiment with various things. Additional pages exist as well. See the [[DErik's TOC Xprmnts]] page. It describes various test I made incorporating text, headers, and a TOC to see how the popup preview (when you pause the cursor over an article link, like the one here) is displayed. Results indicate that some straight text (like the synopsis of the article) should be before any header or TOC request. Other things, like including the article in a category, or putting some HTML (particularly comments) first is also OK. For example, I have both a category specification and HTML comments in front of this paragraph. Which is then followed by a header.  I have not specifically requested a TOC, but one will be generated automatically because I have more than 3 headings (at various levels).
=a heading=
<center>this line is centered and all by itself, using HTML "center" tag</center>
<center>And so is this line image, again using HTML "center" tag. Followed by an image that gets centered as well. Believe that is because I added a "center" attribute to the declaration of the image file, like so: <nowiki>[[File:Receiver_control_chip.jpeg|center|200px|Receiver control chip]]</nowiki>
[[File:Receiver_control_chip.jpeg|center|200px|Receiver control chip]]But notice that the caption text is not included with the above image. To have a caption, the image must be declared as a thumbnail. Check this out:<nowiki>[[File:Receiver_control_chip.jpeg|thumb|200px|Receiver control chip]]</nowiki><br />[[File:Receiver_control_chip.jpeg|thumb|200px|Receiver control chip]]<br />I declared the image right after the example declaration, and then I forced a line break (used HTML "br" tag) after the image above, but still in the "center" tag. However, note that the thumbnail image is right justified, with text wrapped to its left. The next thumbnail below is centered because I included the "center" attribute in the declaration of the image file.
[[File:Receiver_board_hooked_to_battery_and_track.jpeg|thumb|center|Receiver board]]But notice that, if your browser page is wide enough, it isn't '''''exactly''''' centered. It is still to the left of the previous thumbnail. But it is centered in the space available to the left of the previous thumbnail. Shrink the width of the window to see how it behaves.<br />The "controller" thumb is left justified.
[[File:Frontside of handheld control station.jpeg|thumb|left|alt=Front of controller|The controller]]<br />The following thumb is sized at 200px.
[[File:Receiver board hooked to battery and track.jpeg|thumb|200px|center|Dr. Bunza built this.]]<br />And here ends the HTML "center" tag.
</center>
===Here's a level 3 header===
But then I start a new center tag section.
<center>This is a test page for DErik.</center>
<center>This is a test page for DErik.</center>
----
----
<span style="font-family: Times New Roman; color: green; text-align: center;">This text is wrapped in a &lt;span&gt; tag with a CSS style attribute included. The CSS style of "text-align: center;" apparently is not recognized or is ignored or deleted by the wiki software.</span>
<span style="font-family: Times New Roman; color: green; text-align: center;">This text is wrapped in a &lt;span&gt; tag with a CSS style attribute included. The CSS style of "text-align: center;" apparently is not recognized or is ignored or deleted by the wiki software.</span>


<span style="color:red; text-decoration:underline;>''The actual full text of the above paragraph is shown below, wrapped in a <span style="font-weight:bold; color:blue;">&lt;nowiki&gt;</span> tag so that you can see all of it. However, the left and right arrow characters around "span" are done with normal HTML escapes, that is wrapped in an "&amp;" and ";" so that they will appear as the proper characters and not be recognized as arrow indicators.''</span>
<span style="color:red; text-decoration:underline;">''The actual full text of the above paragraph is shown below, wrapped in a <span style="font-weight:bold; color:blue;">&lt;nowiki&gt;</span> tag so that you can see all of it. However, the left and right arrow characters around "span" above are done with normal HTML escapes, that is wrapped in an "&amp;" and ";" so that they will appear as the proper characters and not be recognized as arrow indicators.''</span>


<nowiki> <span style="font-family: Times New Roman; color: green; text-align: center;">This text is wrapped in a &amp;lt;span&amp;gt; tag with a CSS style attribute included. The CSS style of "text-align: center;" apparently is not recognized or is ignored or deleted by the wiki software.</span> </nowiki>
<nowiki> <span style="font-family: Times New Roman; color: green; text-align: center;">This text is wrapped in a &amp;lt;span&amp;gt; tag with a CSS style attribute included. The CSS style of "text-align: center;" apparently is not recognized or is ignored or deleted by the wiki software.</span> </nowiki>
==References and Footnotes==
Inserting a reference: <ref>Some reference here</ref>. And then listing them, at least the ones defined so far.<references />
Trying it in WYSIWG editor: <nowiki><ref>Really does not work</ref></nowiki> because it wraps in nowiki tag.
----
----
ĤêĂÄ  crazy special chars for fun..😃😝
A live reference example:
 
<ref>[[Wikipedia:Administration|Wikipedia administration]],Admin</ref><ref>[Wikipedia:WikiProjects|Wikipedia projects],Projects</ref> with the list here:
 
<references />
This is another test on a page that is just for that, testing.   Using the WYSIWYG editor to just type stuff in...
Note the numbering started over. This is because the reference list was already done above.
 
----
* Bullet, lust like it would be
==Images==
**tab to get a second indent..
See [[mediawikiwiki:Help:Images|Help:Images]] for details.
 
----
<div aria-hidden="true" role="presentation">[https://upload.wikimedia.org/wikipedia/commons/thumb/8/8f/Wikimedia_Hackathon_Prague_2019_-_Group_Photo_-_CLK_-_cropped.jpg/640px-Wikimedia_Hackathon_Prague_2019_-_Group_Photo_-_CLK_-_cropped.jpg|{{dir|{{{1|{{PAGELANGUAGE}}}}}|left|right}}|thumb|320px| <translate><!--T:19--> Photo of participants of the Wikimedia Hackathon 2019</translate>]</div>
[File:Wikimedia Hackathon Prague 2019 - Group Photo - CLK - cropped.jpg|thumb|320px]<br />
[https://upload.wikimedia.org/wikipedia/commons/thumb/8/8f/Wikimedia_Hackathon_Prague_2019_-_Group_Photo_-_CLK_-_cropped.jpg/640px-Wikimedia_Hackathon_Prague_2019_-_Group_Photo_-_CLK_-_cropped.jpg|]
----
A file reference included here: <nowiki>[[File:5387.jpg|thumb|100x100px|Some caption here]]</nowiki>[[File:5387.jpg|thumb|100x100px|Some caption here]] That is to a JPG and shown as a thumbnail photo. It appears that it will be placed by default to the far right of the text body, with any following text wrapped around it. This seems to be because it is a "thumbnail" or a floating. But you can change the left right position using a floating attribute. For example, the following picture <span style="float:left; margin:5px;">[[File:5387.jpg|thumb|100x100px|Some caption here]]</span> is in a <nowiki><span style="float:left; margin:5px;">pic</span></nowiki>. <br /><br />And you are able to modify the position of a picture with regard to the text even when it is not a thumb or floating picture. But in those cases, it seems that horizontal and vertical positioning do not interact well with each other. For example, to center the pic and have the bottom of the pic even with the bottom of the text does not seem possible, while doing either one independtly works fine. See [http://Help:Images Help:Images]
A reference to the image file directly: [[:File:5387.jpg|Opens in a separate tab or window with the file information included]]
----
----
A link?  [https://amazon.com Amazone]  '''bold...'''
The "No wiki formatting" button in the toolbar above wraps selected text in the <nowiki>&lt;nowiki&gt;</nowiki>&lt;/nowiki&gt; tag. This results in the included text not being recognized as wiki commands. And I think not as HTML in some cases either. Still experimenting with that.
----
----
A file reference included here. [File:5387.jpg|thumb|100x100px] [[File:5387.jpg|thumb|100x100px]] That is to a JPG and shown as a thumbnail photo. As to why it shows up well below where the reference is made in this text, I do not yet know, but it appears that it will be placed on the immediate next line, to the far right of the text body, with any following text wrapped around it. You may be able to modify that behavior with CSS styling included in a <nowiki><span></nowiki> tag around the reference and/or around the affected text.<br>
==A subheading (level 2)==
For example:<br>
=Category stuff=
<div>A new div start here<br>
==My testing==
<p>A paragraph</p><p>Next paragraph</p>
<categorytree mode="all" depth="5">MRT SIG</categorytree>
<span style="float:left;">&nbsp;left span&nbsp;</span>
<categorytree mode="all" depth="5">3D Printing</categorytree>
<span style="float:right;">&nbsp;right span&nbsp;</span>
{{#categorytree:MRT Meeting Minutes|depth=4|mode=all|showcount}}
<div>A div starts here: with the pic span here:
<categorytree mode="all" depth="5">RCGRS Wiki Help</categorytree>
<span style="clear:both; margin:5px;">[[File:5387.jpg|thumb|100x100px]]</span>
==Others==
and div ends here.</div>
The following is copied from source of page https://en.wikipedia.org/wiki/Category:Contents.
<br>might do the job. Oops, guess not.
And the enclosing div ends here.</div>
----
----
To show how some text may be resized: <big>BIG..</big> is done with <nowiki><big>BIG..</big></nowiki> which can be inserted around any selected text by clicking the button above. Similar for the other font sizing and super- and sub-scripting buttons.<br>
<nowiki>
BTW: The "No wiki formatting" button above wraps selected text in the <nowiki><nowiki></nowiki></nowiki> tag. This results in the included text not being recognized as HTML or as wiki commands.
{{pp-protected|reason=Persistent [[WP:Disruptive editing|disruptive editing]]: new accounts don't need to edit this|small=yes|category=no}}</nowiki><br /><nowiki>
{{Container category|nocat=true}}</nowiki><br /><nowiki>
{{Wikipedia category|shortcut1=CAT:|shortcut2=CAT:CONT|shortcut3=CAT:CONTENTS}}</nowiki><br /><nowiki>
{{For|an overview of the content of Wikipedia|Wikipedia:Contents}}</nowiki><br /><nowiki>
{{See also|Category:Wikipedia pageviews|Category:Wikipedia navigation|Category:Wikipedia administration}}</nowiki><br /><nowiki>
</nowiki><br /><nowiki>
This is the '''top level''' of [[Wikipedia:About|Wikipedia]]'s [[Wikipedia:Categorization|category system]] (which is why it has no parent category). Its subcategories contain various types of encyclopaedic content (i.e. [[:Category:Articles|articles]]), content that assists with the navigation of the encyclopaedia (e.g. [[:Category:Portals|portals]]), as well as pages related to maintaining and collaborating on the encyclopaedia (e.g. [[Wikipedia:Administration|Wikipedia administration]] and [[Wikipedia:WikiProjects|WikiProjects]]).</nowiki><br /><nowiki>
</nowiki><br /><nowiki>
</nowiki>
----
----
==Include a YouTube reference==
Which results in the following:
A simple link to a YouTube video: [https://youtu.be/peGN_RN7JgA AMTRAK loops Monkey Puzzle]. It opens in this browser window. You must use the browser's back button to get back to the wiki page. Or you could open this in a separate tab or window by using the browser's mechanisms, which vary with the browser.<br>
I tried putting in some HTML that embeds the video in this page.<br><span style="color:purple"><nowiki><iframe width="650" height="366" src="https://www.youtube.com/embed/peGN_RN7JgA" title="AMTRAK loops Monkey Puzzle" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe></nowiki></span><br>But that didn't work. I think the wiki software won't allow that type of HTML.
----
----
th8is is a n edit by eric
{{pp-protected|reason=Persistent [[WP:Disruptive editing|disruptive editing]]: new accounts don't need to edit this|small=yes|category=no}}<br />
{{Container category|nocat=true}}<br />
{{Wikipedia category|shortcut1=CAT:|shortcut2=CAT:CONT|shortcut3=CAT:CONTENTS}}<br />
{{For|an overview of the content of Wikipedia|Wikipedia:Contents}}<br />
{{See also|Category:Wikipedia pageviews|Category:Wikipedia navigation|Category:Wikipedia administration}}


In the main body, I (Eric) changed five things.
This is the '''top level''' of [[Wikipedia:About|Wikipedia]]'s [[Wikipedia:Categorization|category system]] (which is why it has no parent category). Its subcategories contain various types of encyclopaedic content (i.e. [[:Category:Articles|articles]]), content that assists with the navigation of the encyclopaedia (e.g. [[:Category:Portals|portals]]), as well as pages related to maintaining and collaborating on the encyclopaedia (e.g. [[Wikipedia:Administration|Wikipedia administration]] and [[Wikipedia:WikiProjects|WikiProjects]]).
*FileUpload to true
----
*from: address for password requests    (RCGRS_Wiki_Admins@rcgrs.com)
Note that the "Template:..." lines, and a couple of other referencees, are red, indicating that the referenced pages do not yet exist. That is because this is the RCGRS wiki site. They do exist on the Wikipedia site, but not here. To see the actual Wikipedia page, and view its actual source from there, click the link at the begining of this section. Also, note the syntax of the references in the source; it is done with transclusion, so the actual page as displayed appears a little differently than just the source text would imply.
*from: address for emegency contacts    (RCGRS_Wiki_Admins@rcgrs.com)
=Section headings with anchor =
*mail when updated                                (this is why we didn’t get mail earilier in out test!)
*mail when talk updated                          (another feature to test..)
DErik here again. I have created another email address that I think we should use instead of the one above. It's nice Eric created those because it's good experience and testing. But for the club, let's use the [mailto:MRT-SIG@RCGRS.com MRT-SIG@RCGRS.com] address to talk to just the MRT SIG Chair (Don Erikstrup) and Co-Chair (Eric Timberlake). To talk to the entire MRT SIG group (of which you may become a part if you wish), please use the [mailto:MRT-SIG-Members@RCGRS.com MRT-SIG-Members@RCGRS.com] address.
----Playing with  
==Section headings with anchor==


  <nowiki><div id="Unique anchor name 1">optional text</div></nowiki>
  <nowiki><div id="Unique anchor name 1">optional text</div></nowiki>
Line 58: Line 117:


Setting an anchor in a section heading
Setting an anchor in a section heading
==<nowiki><span id="Alternate Section Title 1">Some anchor name here?</span></nowiki>Section heading goes here==
Note the placement. This must be a "span" tag, not a "div". (Such anchors allow sections to be retitled without breaking incoming links.) DErik note: Note that the text line starts with a blank character, not the "==" characters that indicate a section start. Deleting that blank character results in the following:
==<nowiki><span id="Alternate Section Title 1">Some anchor name here?</span></nowiki>Section heading goes here==
Also note that, in both examples above, everything between the double equals sign pairs, that are the wiki markup for a section, is also wrapped in a "nowiki" tag section - that you cannot see without editing this page.
----
==Creating a table with special formatting==
The following was copied from the [https://mediawiki.org/wiki/Help:Links Help:Links] help page. Generally, copying a page is not a good idea, but this is just a section of the formatting help, and taken from different parts of that page. So copying is necessary. But I actually copied rather than referenced because I wanted to see what the same stuff would do in my page versus their page. There are differences I have yet to explain. <span style="font-family:'Times New Roman'; color:green;">Not sure why the <translate> and other tags are here. They don't show up on the Help:Links page as they get interpreted by the MediaWiki, I assume to do language translation for <translate>, but what <tvar> is for I have no idea. I think <syntaxhighlight> should also be recognized to highlight various [computer programming] language keywords or sections. We may need to include some extension to get these to be properly recognized.</span>
{| border="1" class="wikitable"
! <translate><!--T:116--> Name</translate>/<translate><!--T:6--> Description</translate>
! <translate><!--T:117--> Syntax</translate>
! <translate><!--T:118--> Result</translate>
|-
| <translate><!--T:17--> Link to an anchor on the same page</translate>
|<syntaxhighlight lang="moin">[[#See also]]</syntaxhighlight>
<translate><!--T:77--> Anchors are provided automatically on [[<tvar name=formatting>Special:MyLanguage/Help:Formatting</tvar>|section headings]] and to the [[<tvar name=1>#top</tvar>|top]] (<tvar name=2><code><nowiki>[[#top]]</nowiki></code></tvar>) of the page.</translate>
|[[#See also]]


|-
<nowiki>==<span id="Alternate Section Title 1">Some anchor name here?</span></nowiki><nowiki>Section heading goes here==</nowiki>
| <translate><!--T:19--> Setting an anchor for incoming links</translate>
Note the placement. This must be a "span" tag, not a "div". (Such anchors allow sections to be retitled without breaking incoming links.) DErik note: When you edit this page, you will see that the text line starts with a blank character. Deleting that blank character results in the following:
|<syntaxhighlight lang=html>
<div id="Unique anchor name 1">optional text</div>


<span id="Unique anchor name 2">optional text</span>
<nowiki>==<span id="Alternate Section Title 1">Some anchor name here?</span></nowiki><nowiki>Section heading goes here==</nowiki>
</syntaxhighlight>


<translate><!--T:92--> Rendered [[w:HTML element#Document body elements|block-level and inline]], respectively.</translate>
Also note that, in both examples above, everything between the double equals sign pairs, that are the wiki markup for a section, is also wrapped in a "nowiki" tag section - that you cannot see without editing this page.
<translate><!--T:132--> Doing this would allow for <code><nowiki>[[#Unique anchor name 1]]</nowiki></code> on the same page or <code><nowiki>[[</nowiki>{{FULLPAGENAME}}#Unique anchor name 1]]</code> on a different page.</translate>
----
<translate><!--T:133--> Omit the "optional text" for an invisible anchor.</translate>
=Creating a table with special formatting=
 
==Tables==
<translate>
See [https://mediawiki.org/wiki/Help:Links Help:Tables] help page.<br />
<!--T:97-->
=Math equations=
Setting an anchor in a section heading
</translate>
 
<syntaxhighlight lang=html>
==<span id="Alternate Section Title"></span>Section heading from source page==
</syntaxhighlight>
 
<translate><!--T:98--> Note the placement.</translate>
<translate><!--T:134--> This must be a "span" tag, not a "div".</translate>
<translate><!--T:135--> (Such anchors allow sections to be retitled without breaking incoming links.)</translate>
 
|
<div id="<translate nowrap><!--T:93--> Unique anchor name 1</translate>"><translate><!--T:94--> optional text</translate>
 
<span id="<translate nowrap><!--T:95--> Unique anchor name 2</translate>"><translate><!--T:96--> optional text</translate></span>
 
<div style="color: #000000; background: none; overflow: hidden; page-break-after: avoid; font-size: 1.5em; font-family: Georgia,Times,serif; margin-top: 1em; margin-bottom: 0.25em; line-height: 1.3; padding: 0; border-bottom: 1px solid #AAAAAA;"><span id="Alternate Section Title"></span>Section heading</div>
|-
| <translate><!--T:20--> Link to an anchor at another page</translate>
|<syntaxhighlight lang=moin>[[Help:Images#Supported media types for images]]</syntaxhighlight>
|[[Help:Images#Supported media types for images]]
 
|-
| <translate><!--T:21--> Link to the current page's talk page</translate>
|<syntaxhighlight lang=moin>[[{{TALKPAGENAME}}|Discussion]]</syntaxhighlight>
<translate><!--T:22--> See also [[<tvar name=page-names>Special:MyLanguage/Help:Magic_words#Page_names</tvar>|Help:Magic words#Page names]]</translate>
|[[{{TALKPAGENAME}}|Discussion]]
 
|-
|{{anchor|Subpage_feature}}<translate><!--T:23--> Link to a subpage</translate>
|<syntaxhighlight lang=moin>[[/example]]</syntaxhighlight>
<translate><!--T:78--> Shortcut for <tvar name=1><syntaxhighlight lang="moin" inline>[[Help:Links/example|/example]]</syntaxhighlight></tvar>.</translate> <translate><!--T:122--> See also <tvar name=1>{{ll|Help:Subpages}}</tvar>.</translate>
|[[Help:Links/example|/example]]
 
|-
| <translate><!--T:24--> Link to a subpage without the leading slash</translate>
|<syntaxhighlight lang=moin>[[/example/]]</syntaxhighlight>
<translate><!--T:99--> Shortcut for <tvar name=1><syntaxhighlight lang="moin" inline>[[Help:Links/example|example]]</syntaxhighlight></tvar>.</translate>
|[[Help:Links/example|example]]
 
|-
| <translate><!--T:120--> Link to a subpage of parent page for current page.</translate> <translate><!--T:123--> Can only be used on subpages.</translate>
|<syntaxhighlight lang=moin>[[../example2]]</syntaxhighlight>
<translate><!--T:121--> Shortcut for <tvar name=1><syntaxhighlight lang="moin" inline>[[Help:Links/example2|example2]]</syntaxhighlight></tvar> if you post the link on <tvar name=2><syntaxhighlight lang="moin" inline>[[Help:Links/example|example]]</syntaxhighlight></tvar> page.</translate>
|[[Help:Links/example2|example2]]
 
|-
| <translate><!--T:25--> Visible link to a category page</translate>
|<syntaxhighlight lang=moin>[[:Category:Help]]</syntaxhighlight>
<translate><!--T:114--> Without the leading colon the link would not be visible and the page would instead be placed into the category; this is a very common mistake.</translate>
<translate><!--T:26--> See also <tvar name=1>{{ll|Help:Categories}}</tvar>.</translate>
|[[:Category:Help]]
 
|-
| <translate><!--T:27--> Visible link to an image or media file</translate>
|id="file-links"|<syntaxhighlight lang=moin>
[[:File:Example.jpg]]
 
[[:File:Example.jpg|file label]]
 
[[index.php?title=Media:Example.jpg|Media:Example.jpg]]
 
[[index.php?title=Media:Example.jpg|file label]]
</syntaxhighlight>
 
<translate><!--T:100--> Without the leading colon on the "File:" examples, the images would actually be displayed.</translate>
<translate><!--T:124--> See also <tvar name=1>{{ll|Help:Images}}</tvar>.</translate>
 
<translate>
<!--T:112-->
The <tvar name=1><code>Media:</code></tvar> prefix is used to link directly to the uploaded file, rather than the file-information page.</translate>
|
[[:File:Example.jpg]]
 
[[:File:Example.jpg|file label]]
 
[[index.php?title=Media:Example.jpg|Media:Example.jpg]]
 
[[index.php?title=Media:Example.jpg|file label]]
 
 
|-
| <translate><!--T:43--> Mailto link</translate>
|<pre>[mailto:info@example.org email me]</pre>
|[mailto:info@example.org email me]
 
|-
| <translate><!--T:44--> Mailto named with subject line and body</translate>
|<pre>[mailto:info@example.org?Subject=URL%20Encoded%20Subject&amp;body=Body%20Text info]</pre>
|[mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info]
 
|}
---- Note the table ends here.
 
= some thoughts on page creation =
On the main page, in the "'''create page'''" input box, type a MEANINGFUL page name in and hit "'''create page'''". Be sure to pick a page name that really conveys the subject matter. That's probably obvious, but I mention it because changing the page name is hard to do.


Now you are looking at an empty box with perhaps no clue how to proceed. So just start typing in the box. The default "'''edit'''" mode uses a WYSIWYG editor, just type away for now and what you see is how it will look on the web page, for the most part. There are some formatting things, like changing the font style, or making a list, or inserting images that are handled by the tool bar above the text entry area. There are a lot of choices there, but not all choices are covered there. See the https://www.mediawiki.org/wiki/Help:Formatting link to get more details.
From the [https://en.wikipedia.org/wiki/Help:Displaying_a_formula Wikipedia Help:Displaying a formula] page:<br /><span style="color:red;">
For example, the famous [[Einstein formula]] can be entered in raw HTML as <nowiki>{{nowrap|''E'' {{=}} ''mc''<sup>2</sup>}}</nowiki>, which is rendered as {{nowrap|''E'' {{=}} ''mc''<sup>2</sup>}} (the template <nowiki>{{nowrap}}</nowiki> is here only for avoiding a line break inside the formula). With <nowiki>{{math}}</nowiki>, it can be entered as <nowiki>{{math|''E'' {{=}} ''mc''{{sup|2}}}}</nowiki>, which is rendered as {{math|''E'' {{=}} ''mc''{{sup|2}}}}. With LaTeX, it is entered as <nowiki><math>E=mc^2</math></nowiki>, and rendered as <math>E=mc^2</math>.  
</span><br />
(LaTeX is the current default in this version of MediaWiki.)


Click on the "Save Page.." button and if you want, makes some notes about this editing session.  It's TOTALLY COMMON to create pages a piece at a time, and as part of a team with other users!
See the [https://meta.wikimedia.org/wiki/Help:Displaying_a_formula MediaWIki Help:Displaying a formula] for details on rendering math equations here. Here are some examples:
== A visual aid to the process ==


[[File:Create a page.gif]]
<nowiki>''E'' = ''mc''{{sup|2}}</nowiki> --> '''''E'' = ''mc''{{sup|2}}'''<br />
Eric created an example page which you can visit, edit, and/or join the "DISCUSSION" on it if you have editorial suggestions, but don't want to actually change it.
<nowiki>''E'' = ''mc''<sup>2</sup></nowiki> --> '''''E'' = ''mc''<sup>2</sup>'''<br />
<nowiki><math>E = mc^2</math></nowiki> --> '''<math>E = mc^2</math>''' Note that Bold is not rendered, but this can be changed so it is rendered in bold, or plain text (no italic)<br />
<nowiki>{{math|1=''E'' = ''mc''{{sup|2}}}}</nowiki> --> '''{{math|1=''E'' = ''mc''{{sup|2}}}}'''<br />
<div style="text-align:center;">
<math>V=R*I</math>, &nbsp;&nbsp;&nbsp;<math>R=V/I</math> or <math>R=\frac{V}{I}</math>, &nbsp;&nbsp;&nbsp;&nbsp;<math>I=\frac{V}{R}</math> or <math>I = V \div R</math>
</div>


CLick the following link: [[This is a tutorial about foobar]] ..to see the real thing..
=Reference List=
<references />
[[Category:DErik (Don Erikstrup) Pages]]

Latest revision as of 15:24, 4 February 2024


Under construction/modification by DErik (talk) 18:18, 20 May 2023 (PDT)

Terms and concepts

As with any subject of study, one must first know what things are. Putting labels (names) on them helps provide a frame of reference for them. So here's a short glossary of some terms and names you need to know.

  • Ampere: The measure of electrical current through a circuit or component.
  • The current (amperage) value on a schematic is usually abbreviated as “amps” or annotated by the letter “A”.
  • The letter “I” is used for current in electrical formulas (we like to keep things a little difficult, but it’s etymology can be traced back to some French historical use).
  • Current[1]: The flow of electrons or ions through a conductive medium.
One thing that confuses folks is: which way are the electons flowing? Typically, we consider the flow to be from the positive pole of an electrical source to the negative pole. But, to confuse things, the positive pole is actually deficient in electrons (or negatively charged ions), while the negative pole is saturated with them. So in strict physical terms, the flow of elections would be from the negative pole to the positive. Now, since I have probably confused you, ignore the reality of the situation and just consider that a current is simply the flow itself, and in most instances, the direction makes no difference. It is really the difference in electrical potential that is important. Current is measured in amperes and can be calculated by Ohm’s Law as voltage divided by resistance.
  • Voltage[2]: The electrical potential difference between two charged elements.
In electronic engineering and research, the volt is defined as one joule per coulomb. But for model railroading, we rarely use joules or coulombs in our parlance, idioms, or vernacular exposition. But the most confusing thing about voltage is its relationship to energy and power. Voltage is measured in volts and can be calculated from Ohm’s Law as current multiplied by resistance.
For our purposes in model railroading, we can generally ignore power and energy concepts, as well as the related concept of work. So you might want to just skip this section. But, for completeness, let me elaborate a little bit.
Energy is the ability to do work, or to provide power. Power is the actual performance of work for a specified period of time; that is, power is the rate of doing work, i.e., using energy. For example, energy is the charge present on a battery, and power is the battery's ability to deliver that charge over time to some circuit components.
Power[5] is often measured in watts. As an example; the power used by a light bulb is measured in watts (not voltage or amperage). The way that power (usually in watts) is determined is based on energy over time. There are various terms (joules, ergs, newtons) used to express and calculate watts, but, for our usage in model railroading, it is basically just voltage times amperage (specifically, one watt is one volt times one ampere). So watts are really not relevant until a circuit is complete, since no power is being consumed from a battery until that circuit is closed.
Kilowatt-hours[6] are what you might see on your electric bill, as that is what the power companies use as billing metric. As you might suspect from the term, a watt-hour is the power provided by a one watt source or used by a device during one hour. Energy is calculated as the power supplied for a specified duration of time, hence kilowatt-hour is power in watts multiplied by time in hours.
While batteries are often labeled by the voltage they possess, you may often see amp-hours or milliamp-hours on batteries. This is a way or expressing how long the charge of the battery will last. The charge itself really isn’t important, but it is used to determine the energy available in the battery and the power it can deliver. For example, a battery with an amp-hour rating of The relationship between watts and amp-hours is based on the voltage. Watts can be computed from amp-hours by multiplying the amp-hours by the voltage. For example, a 9 volt battery having a rating of 625 milliamp-hours will have 5.625 watts available; so it could be used to power something that takes no more than 5.625 watts. And this will obviously decrease as the battery is used.

The

These units are probably enough to allow you to analyze and work with most of the electronic components and circuits present in a model railroad layout.

References

  1. Cite error: Invalid <ref> tag; no text was provided for refs named wikiCurrent
  2. Cite error: Invalid <ref> tag; no text was provided for refs named wikiVoltage
  3. Cite error: Invalid <ref> tag; no text was provided for refs named byjusEPW
  4. Cite error: Invalid <ref> tag; no text was provided for refs named energyeducation
  5. Cite error: Invalid <ref> tag; no text was provided for refs named wikiPower
  6. Cite error: Invalid <ref> tag; no text was provided for refs named wikiKWH
  7. Cite error: Invalid <ref> tag; no text was provided for refs named wikiResistance

Cite error: <ref> tag with name "ElecTut" defined in <references> is not used in prior text.
Cite error: <ref> tag defined in <references> has no name attribute.
Cite error: <ref> tag defined in <references> has no name attribute.
Cite error: <ref> tag defined in <references> has no name attribute.

  • Something else here[1]
  1. Something else here

Done with basic electronics testing

This is a test page, where I experiment with various things. Additional pages exist as well. See the DErik's TOC Xprmnts page. It describes various test I made incorporating text, headers, and a TOC to see how the popup preview (when you pause the cursor over an article link, like the one here) is displayed. Results indicate that some straight text (like the synopsis of the article) should be before any header or TOC request. Other things, like including the article in a category, or putting some HTML (particularly comments) first is also OK. For example, I have both a category specification and HTML comments in front of this paragraph. Which is then followed by a header. I have not specifically requested a TOC, but one will be generated automatically because I have more than 3 headings (at various levels).

a heading

this line is centered and all by itself, using HTML "center" tag
And so is this line image, again using HTML "center" tag. Followed by an image that gets centered as well. Believe that is because I added a "center" attribute to the declaration of the image file, like so: [[File:Receiver_control_chip.jpeg|center|200px|Receiver control chip]]
Receiver control chip
Receiver control chip
But notice that the caption text is not included with the above image. To have a caption, the image must be declared as a thumbnail. Check this out:[[File:Receiver_control_chip.jpeg|thumb|200px|Receiver control chip]]
Receiver control chip

I declared the image right after the example declaration, and then I forced a line break (used HTML "br" tag) after the image above, but still in the "center" tag. However, note that the thumbnail image is right justified, with text wrapped to its left. The next thumbnail below is centered because I included the "center" attribute in the declaration of the image file.
Receiver board
But notice that, if your browser page is wide enough, it isn't exactly centered. It is still to the left of the previous thumbnail. But it is centered in the space available to the left of the previous thumbnail. Shrink the width of the window to see how it behaves.
The "controller" thumb is left justified.
Front of controller
The controller

The following thumb is sized at 200px.
Dr. Bunza built this.

And here ends the HTML "center" tag.

Here's a level 3 header

But then I start a new center tag section.

This is a test page for DErik.

This text is wrapped in a <span> tag with a CSS style attribute included. The CSS style of "text-align: center;" apparently is not recognized or is ignored or deleted by the wiki software.

The actual full text of the above paragraph is shown below, wrapped in a <nowiki> tag so that you can see all of it. However, the left and right arrow characters around "span" above are done with normal HTML escapes, that is wrapped in an "&" and ";" so that they will appear as the proper characters and not be recognized as arrow indicators.

<span style="font-family: Times New Roman; color: green; text-align: center;">This text is wrapped in a &lt;span&gt; tag with a CSS style attribute included. The CSS style of "text-align: center;" apparently is not recognized or is ignored or deleted by the wiki software.</span>

References and Footnotes

Inserting a reference: [1]. And then listing them, at least the ones defined so far.

  1. Some reference here

Trying it in WYSIWG editor: <ref>Really does not work</ref> because it wraps in nowiki tag.


A live reference example: [1][2] with the list here:

  1. Wikipedia administration,Admin
  2. [Wikipedia:WikiProjects|Wikipedia projects],Projects

Note the numbering started over. This is because the reference list was already done above.


Images

See Help:Images for details.


[File:Wikimedia Hackathon Prague 2019 - Group Photo - CLK - cropped.jpg|thumb|320px]
[1]


A file reference included here: [[File:5387.jpg|thumb|100x100px|Some caption here]]

Some caption here

That is to a JPG and shown as a thumbnail photo. It appears that it will be placed by default to the far right of the text body, with any following text wrapped around it. This seems to be because it is a "thumbnail" or a floating. But you can change the left right position using a floating attribute. For example, the following picture

Some caption here

is in a <span style="float:left; margin:5px;">pic</span>.

And you are able to modify the position of a picture with regard to the text even when it is not a thumb or floating picture. But in those cases, it seems that horizontal and vertical positioning do not interact well with each other. For example, to center the pic and have the bottom of the pic even with the bottom of the text does not seem possible, while doing either one independtly works fine. See Help:Images

A reference to the image file directly: Opens in a separate tab or window with the file information included


The "No wiki formatting" button in the toolbar above wraps selected text in the <nowiki></nowiki> tag. This results in the included text not being recognized as wiki commands. And I think not as HTML in some cases either. Still experimenting with that.


A subheading (level 2)

Category stuff

My testing

Category RCGRS Wiki Help not found

Others

The following is copied from source of page https://en.wikipedia.org/wiki/Category:Contents.


{{pp-protected|reason=Persistent [[WP:Disruptive editing|disruptive editing]]: new accounts don't need to edit this|small=yes|category=no}}
{{Container category|nocat=true}}
{{Wikipedia category|shortcut1=CAT:|shortcut2=CAT:CONT|shortcut3=CAT:CONTENTS}}
{{For|an overview of the content of Wikipedia|Wikipedia:Contents}}
{{See also|Category:Wikipedia pageviews|Category:Wikipedia navigation|Category:Wikipedia administration}}

This is the '''top level''' of [[Wikipedia:About|Wikipedia]]'s [[Wikipedia:Categorization|category system]] (which is why it has no parent category). Its subcategories contain various types of encyclopaedic content (i.e. [[:Category:Articles|articles]]), content that assists with the navigation of the encyclopaedia (e.g. [[:Category:Portals|portals]]), as well as pages related to maintaining and collaborating on the encyclopaedia (e.g. [[Wikipedia:Administration|Wikipedia administration]] and [[Wikipedia:WikiProjects|WikiProjects]]).


Which results in the following:


Template:Pp-protected
Template:Container category
Template:Wikipedia category
Template:For
Template:See also

This is the top level of Wikipedia's category system (which is why it has no parent category). Its subcategories contain various types of encyclopaedic content (i.e. articles), content that assists with the navigation of the encyclopaedia (e.g. portals), as well as pages related to maintaining and collaborating on the encyclopaedia (e.g. Wikipedia administration and WikiProjects).


Note that the "Template:..." lines, and a couple of other referencees, are red, indicating that the referenced pages do not yet exist. That is because this is the RCGRS wiki site. They do exist on the Wikipedia site, but not here. To see the actual Wikipedia page, and view its actual source from there, click the link at the begining of this section. Also, note the syntax of the references in the source; it is done with transclusion, so the actual page as displayed appears a little differently than just the source text would imply.

Section headings with anchor

<div id="Unique anchor name 1">optional text</div>

<span id="Unique anchor name 2">optional text</span>

Rendered block-level and inline, respectively. Doing this would allow for [[#Unique anchor name 1]] on the same page or [[Help:Links#Unique anchor name 1]] on a different page. Omit the "optional text" for an invisible anchor.

Setting an anchor in a section heading

==<span id="Alternate Section Title 1">Some anchor name here?</span>Section heading goes here==

Note the placement. This must be a "span" tag, not a "div". (Such anchors allow sections to be retitled without breaking incoming links.) DErik note: When you edit this page, you will see that the text line starts with a blank character. Deleting that blank character results in the following:

==<span id="Alternate Section Title 1">Some anchor name here?</span>Section heading goes here==

Also note that, in both examples above, everything between the double equals sign pairs, that are the wiki markup for a section, is also wrapped in a "nowiki" tag section - that you cannot see without editing this page.


Creating a table with special formatting

Tables

See Help:Tables help page.

Math equations

From the Wikipedia Help:Displaying a formula page:
For example, the famous Einstein formula can be entered in raw HTML as {{nowrap|''E'' {{=}} ''mc''<sup>2</sup>}}, which is rendered as Template:Nowrap (the template {{nowrap}} is here only for avoiding a line break inside the formula). With {{math}}, it can be entered as {{math|''E'' {{=}} ''mc''{{sup|2}}}}, which is rendered as E = mc2 . With LaTeX, it is entered as <math>E=mc^2</math>, and rendered as .
(LaTeX is the current default in this version of MediaWiki.)

See the MediaWIki Help:Displaying a formula for details on rendering math equations here. Here are some examples:

''E'' = ''mc''{{sup|2}} --> E = mc2
''E'' = ''mc''<sup>2</sup> --> E = mc2
<math>E = mc^2</math> --> Note that Bold is not rendered, but this can be changed so it is rendered in bold, or plain text (no italic)
{{math|1=''E'' = ''mc''{{sup|2}}}} --> E = mc2

,     or ,      or

Reference List