Help talk:Wikitext examples
Add topicSince this is a quick reference, it would be good to have the examples sorted by order of use ie more frequently used markup should be listed before less frequently used markup
The weather in London
[edit]I'm changing this from you "can" create it to you "could" create it. I hope less people then will create it. I looked at putting the link in a red font, but it won't match everyone's style sheets. Perhaps it's a good idea anyway? Possibly there's some trick using non-printing or non-linking characters which can be done. Rich Farmbrough 12:22, 21 February 2006 (UTC)
emphasized or italic?
[edit]You can emphasize text by putting two apostrophes on each side. Three apostrophes will emphasize it strongly. Five apostrophes is even stronger.
You can ''emphasize text'' by putting two apostrophes on each side. Three apostrophes will emphasize it '''strongly'''. Five apostrophes is '''''even stronger'''''.
Except this text is actually italic, not emphasized, and this is bold, not strong. Check the HTML source. Why is it done this way? — Omegatron 19:31, 26 February 2006 (UTC)
Problem symbols?
[edit]Why is there a section titled "Problem symbols" containing ℵ and ∉? Is it a "problem" that will be important to every editor who clicks on the Editing help link? Rspeer 18:46, 27 March 2006 (UTC)
Delete or redirect
[edit]Please delete or redirect this page, it is unreadable with old browsers because some <pre> lines need very wide browser windows, and it's redundant with almost the same content as the similar page Help:Wiki_markup_examples. Fighting with vandalism is also easier on one page. -- Omniplex (w:t) 18:23, 12 April 2006 (UTC)
- This page is transcluded into Help:Editing which is itself periodically transferred to the Help:Editing pages of each of the WikiMedia projects (such as Wikipedia:Help:Editing). Help:Wiki markup examples is the old version and was superceded back on 27 Nov 2005. You are correct that one of the two is redundant but I think you've picked the wrong one. As for it's being "unreadable", fix it. (Though I have to say that I use some pretty old browsers at work and haven't noticed any problems). Rossami 22:38, 10 May 2006 (UTC)
Pre-nowiki inside list example doesn't seem to work
[edit]In the Just show what I typed section, we see:
You can combine pre tags with nowiki tags so preformatted examples can go inside of lists.
|
#A <nowiki>newline surrounded by nowiki tags in a list does not mark the end of the list. </nowiki><pre><nowiki> You can combine pre tags with nowiki tags so preformatted examples can go inside of lists. </nowiki></pre> #The list continues. |
But as you can see, the list doesn't continue, it just starts over. I don't know how to fix this. - dcljr 20:41, 2 June 2006 (UTC)
- test item one
- indented (# + colon)
one line monospaced (# + colon + pre)
- test item two (only #, no colon)
- It works only for one line. For more lines...
- ...you could use <tt><nowiki>
- next line starting with #:<tt><nowiki>
- test item three (only #, no colon)
- Instead of a colon a semicolon also works...
- ...without indentation, but be careful with...
- colons then: no issue after <nowiki>
- using #;<tt><nowiki>
- test item four (only #, no semicolon). -- Omniplex (w:t) 03:00, 28 June 2006 (UTC)
- Unfortunately that simply does not fix the issue :-(.
- I simply want a (multi line) block of pre-formatted text inside a list.
- It seems there currently is absolutely no way to achieve that... 10:42, 17 November 2009 (UTC)
- There's a possibility don't use pre tags, use a normal div with CSS style "white-space:pre", and if you still want a monospaced font specify that "font-family:monospace" (you can use the wiki tag "poem" instead of the div tag to preserve newlines, or the source tag with lang="text", but unfortunately the lang attribute is not usable to specify the actual langua but a computer language syntax for syntax coloring, so if you need lang and dir attributes for humane languages, you have to use divs outside; note that the "source" tag will disable all HTML and wiki syntax, including HTML comments which are rendered verbatim).
- If you still want to allow line-wraps (to avoid overflows in side margins) you can also apply the "white-space:pre-wrap" CSS style (which still preserves source newlines but allow additional ones to be inserted in too long lines)
- And to avoid breaking the list on newlines, don't use wiki hash marks (#) but HTML ol and li elements (you don't need nowiki for that, and closing li tags is not required):
|
<ol> <li>A newline surrounded by in li elements in a ol or ul list does not mark the end of the list. <source lang="text"> You can combine source tags in li tags so preformatted examples can go inside of lists. {{example}} <!--HTML comments and templates ignored--> </source></li> <li>The list continues.</li> </ol> |
- Hope this helps. verdy_p (talk) 02:31, 18 May 2014 (UTC)
Who complicated everything again?
[edit]It didn't take long for this page to accumulate all its cruft again.
Do we need massive tables of HTML entities, particularly when all Wikis support Unicode and have better ways of entering these characters? I think not.
The table example is ridiculously complicated. It needs to be a simple, intuitive example, and a separate help page on tables can explain the details.
The purpose of this page is not to explain every detail of every feature of the MediaWiki syntax. It's supposed to be a quick reference, where users can quickly find the syntax for things they actually want to do.
Rspeer 19:17, 27 June 2006 (UTC)
- Add me. I've mostly given up on this page. Help:Table isn't complete, but as you say the best place for list details. All monospaced examples with more than about 50 characters won't fit into narrow browser windows forcing an ugly horizontal scroll bar. -- Omniplex (w:t) 02:38, 28 June 2006 (UTC)
Other date format
[edit]Why is [[1969-07-20]] mentioned nowhere, even though [[1969]]-[[07-20]] is? 82.139.85.101 14:57, 19 November 2006 (UTC)
- Good point, I added that, it is the shortest.--Patrick 00:51, 20 November 2006 (UTC)
Moving text to the right
[edit]How do you move text to the right side of the screen? 75.39.70.115 18:37, 24 December 2006 (UTC)
- <div align="right"> Text goes here! </div> Feezo 19:21, 24 December 2006 (UTC)
Linked Date Formatting
[edit]I apologize in advance if this is the wrong place to post such a question, but I'm wondering, is reformatting of linked dates based on preferences new to 1.10alpha or something? I have a 1.9.2 MediaWiki on which reformatting seems to completely fail, and no unification occurs on the links (i.e. [[1969-07-20]] links to 1969-07-20, [[July 20]] links to July 20, and [[20 July]] links to 20 July).
TIA.
69.117.29.185 08:46, 23 February 2007 (UTC)
Transcluding Variables?
[edit]149,060 42,061,670 Wikitext examples
{{NUMBEROFARTICLES}} {{NUMBEROFUSERS}} {{PAGENAME}}
Spanish?
[edit]Why is some of the text in the Template discussion in Spanish? 67.48.236.90 04:59, 30 May 2007 (UTC)
- We're multilingual here on Meta, even though English dominates. Check Category:Humor for example, and you'll find some non-English entries. Feezo 03:15, 31 May 2007 (UTC)
- Then why is the page in the "English Documentation" category? 128.244.206.128 19:20, 5 June 2007 (UTC)
just show what i typed.
[edit]I want text in a box just like <pre>, but with line breaks. I don't really care if wiki markup is rendered (or not) or if special characters are interpreted (or not). Just text in a box with line breaks. Can it be done? wikibooks:User:Mike.lifeguard
- Yes, using the <poem> tag. MaxSem 20:07, 30 June 2007 (UTC)
Not easy to find stuff
[edit]Ok. I forgot some wikitext syntax. I'm getting old and bitrot is faster than it used to be. So ok, I am searching for font syntax. Dang if I can't find it. "Advanced editing"? no, "editing tips and tricks?" no "special characters?" no.
I gave up and just googled for it on meta because I knew part of the syntax.
Lord knows what civilians do to find stuff. Really, if we just had a page that had everything in it, that would help me out a lot. I have no time to figure out this no doubt taxonmically ideal segmentation of wikitext documentation. Search really is a lot easier. Let's have a version of the docs that leverages that simple concept.-Mak 02:51, 10 September 2007 (UTC)
- I added a search link in the bottom template.--Patrick (talk) 09:51, 10 September 2007 (UTC)
Wiki Lexicon
[edit]I'm wondering if there's a reason certain grammatical choices have been made which deviate from normal written English. I understand there may be Wiki-slang defined somewhere, but I'm curious about certain choices. May just be my novice-ness.
Specifically on this page, is there a reason the phrase "new line" is a single word? Wolfraem 19:28, 19 September 2007 (UTC)
I asked my guru, why guru can I not have a few simple fonts in MEDIAWIKI, to help clarify text and identify VOICES in a cascade of edits?
My guru speaketh: Thou shouldest not want FONTS; FONTS ARE EVIL.
I replied, then I shall worship another guru.
My guru replyeth: "Good luck finding one! All right-thinking gurus deplore fonts in wikis."
Is he correct?
63.230.97.117 05:20, 6 May 2008 (UTC)Nick Thompson (nthompson@clarku.edu)
numbered section links not working
[edit]In the example given, clicking on [[#Example section 3]] does nothing in FF3 or IE7. I have also been unable to get this working on my local wiki, which uses MW 1.7.1. Is anyone else seeing this bug?
POLK KOUNTY??
[edit]At the bottom of the page it says POLK KOUNTY though this doesn't appear on the edit page so I can't remove it. Can someone look into this please. 81.141.67.210 13:05, 25 January 2009 (UTC)
math
[edit]The <math></math> flags are not working on my side even though I was assured that my side has the same Wiki version et al of Wikimedia. Is anyone here aware of a known problem with <math>?
Bold vs Embolden
[edit]I think that text should be "bolded" rather than "emboldened". While I prefer a prescriptivist grammar (we have standards, you know), and I appreciate the crunchy old-world feel of the latter, face it--if we weren't comfortable with coining words and casting as different parts of speech, we would all go shrieking at the word "wiki".
I say change "embolden" to "bold" (verb, transitive), unless it refers to stiffening one's resolve.
Haakondahl 15:00, 13 July 2010 (UTC)
- I changed it.--Patrick (talk) 22:16, 13 July 2010 (UTC)
- Thanks. A little off-topic, I find this set of help pages far more helpful than the ones for mediawiki proper. Similar, but different. Haakondahl
Table and empty line
[edit]Break the table
empty line at the first line !! Header text !! Header text !! Header text | |||
---|---|---|---|
Example | Example | Example | Example |
empty line at the first line || Example || Example || Example | |||
Example |
empty line at the second line || Example || Example | ||
Example | Example | Example | Example |
new line each time || new line each time|| new line each time|| new line each time | |||
Example | Example | Example | Example |
Just show what I typed: Escaping remaining interpretations
[edit]I added some discussion to the Just show what I typed section
on how to escape special characters and end tags from interpretation.
Is this getting too deep into the details for an "examples" page?
I would have preferred to put the discussion on a page that went into the technical details of
<pre>
and <nowiki>
but I couldn't find such a page.
Is there one?
If there is, the examples should link to it. --Brett Wuth (talk) 00:15, 18 May 2014 (UTC)
Regression in redirect example since 2012
[edit]See the last edited line that was surely a small mistake in good faith: Special:Diff/3667816. Maybe relevant to the attention of User:Thehelpfulbot even if so much time has passed. --ValerioBozz (talk) 20:38, 2 May 2024 (UTC)