Editing MediaWiki/Editing

From Bibliotheca Anonoma

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:


There are also more advanced features that can be utilized, found in this guide: [[MediaWiki/Editing/Advanced]].
There are also more advanced features that can be utilized, found in this guide: [[MediaWiki/Editing/Advanced]].
== Miscellaneous Templates ==
* [[Template:Quotation]] - Quotes in a little textbox, with author and publication specifiable.
* [[:Category:Color Templates|Color Templates]] - Color templates you can use to give text different colors.
* [[Special:Interwiki]] - You can have interwiki links to related pages on other wikis or websites: {{ic|<nowiki>[[mw:Help:Editing Pages]]</nowiki>}}. Ask an admin if you want to create more.
** The Know Your Meme interwiki link uses subdirectories under the main {{ic|/memes}} directory, so if it were {{ic|/memes/subcultures/association-football}}, use {{ic|<nowiki>{{kym:subcultures/association-football}}</nowiki>}}.
=== 4chan Templates ===
* [[Template:Greentext]]/[[Template:Gt]] - If you have greentext from 4chan, just copy and paste, enclose the lines with this template and it will look perfect.
** [[Template:GreentextTalk]]/[[Template:Gtt]] - Use greentext in a single line without having to add an arrow. Meant for comments on talk pages or image captions.
* [[Template:Fortune]] (proposed) - Using the [https://www.mediawiki.org/wiki/Extension:RandomSelection RandomSelection] extension, randomly display a line from a preset array. Could be used to resurrect the 4chan fortunes function: or provide BSD-style fortunes.


== Code ==
== Code ==
* Use [[Template:bc]] for block code without line numbers.
* Use [[Template:lc]] for block code with line numbers.
* Use [[Template:hc]] for block code with header.
* Use [[Template:ic]] for inline code.


=== Inline Code ===
=== Inline Code ===


You can use {{Ic|inline code}} here:
=== Code Templates ===


<pre>
In practice, only hc is used.
{{Ic|your inline code}}
</pre>
 
If there are errors, enclose your code in nowiki blocks.


<pre>
<pre>
{{Ic|&lt;nowiki&gt;Weird HTML block code here: <p></p>&lt;/nowiki&gt;}}
</pre>
=== Block Code ===
Block code can just be indented with spaces to turn them into monospaced blocks with no text wrapping.
You can also avoid adding spaces by using [[Template:Bc]] (or [[Template:Lc]] for line numbers):
<pre>{{bc|
block
code
}}</pre>
{{bc|
block
code
}}
By specifying the language to use, you can get syntax highlighting as well. Here's a [[mw:Extension:SyntaxHighlight#Supported_languages|long list of supported languages.]]
<pre>{{Bc|
# says hello
print "hello world"
# says goodbye
print "goodbye world"
|lang=python}}</pre>
{{Bc|
# says hello
print "hello world"
# says goodbye
print "goodbye world"
|lang=python}}
=== Code with Header ===
{{Note|Header code is currently not highlighted and may need nowiki tags, but we're working on it.}}
Just like on the Arch Wiki, it might be useful to provide a header to the code to state a filename or something.
{{hc|/path/to/filename.sh|<nowiki>
{{hc|/path/to/filename.sh|<nowiki>
# The content of a file is included here.
# The content of a file is included here.
echo "Hello World"
echo "Hello World"
</nowiki>}}
</nowiki>}}
<pre>
{{hc|/path/to/filename.sh|&lt;nowiki&gt;
# The content of a file is included here.
echo "Hello World"
&lt;/nowiki&gt;}}
</pre>
</pre>


=== Advanced Block Code ===
=== Code Highlighting ===


The [[mw:Extension:SyntaxHighlight_GeSHi#Usage|SyntaxHighlight Extension]] is utilized in the code formatting templates above, but you can use it directly to make use of special features.
Code can also have highlighting enabled.


<syntaxhighlight lang="python" line='line'>
[[mw:Extension:SyntaxHighlight_GeSHi#Usage]]
def quickSort(arr):
less = []
pivotList = []
more = []
if len(arr) <= 1:
return arr
else:
pass
</syntaxhighlight>
 
<pre><nowiki>
<syntaxhighlight lang="python" line='line'>
def quickSort(arr):
less = []
pivotList = []
more = []
if len(arr) <= 1:
return arr
else:
pass
</syntaxhighlight>
</nowiki></pre>


== Uploading Files ==
== Uploading Files ==


You can upload images, pdfs, or webms (strongly preferred over gif, please convert) for media that is closely tied to the wiki at [[Special:Upload]]. You can even upload multiple files using [[Special:BatchUpload]]. File size limit is 50MB.
You can upload images, pdfs, or webms (strongly preferred over gif, please convert) for media that is closely tied to the wiki at [[Special:UploadWizard]]. You can even upload multiple files. File size limit is 50MB.
 
=== Some Files Go on Eikonos ===
 
{{#eimage:https://img.bibanon.org/data/image/4c/4a/4c4a18aeb28ad5bff49ab24664627562.jpg|200x100px|thumb|inline|Eikonos image embed test.}}
 
Some ''media is interesting in itself'', such as screencaps, greentext, and reaction images. [https://img.bibanon.org Eikonos] is our image tag database system that works as an online museum gallery to sort and organize our large collection of images.


These should be posted to Eikonos and linked back here instead. The exact size of the preview must be specified. See the syntax below, and an example to the right.
Notice that 4chan content of interest, such as screencaps, greentext, and reaction images should be posted to Eikonos and linked back here instead.
 
<pre>{{#eimage:https://img.bibanon.org/data/image/4c/4a/4c4a18aeb28ad5bff49ab24664627562.jpg|200x100px|thumb|inline|Eikonos image embed test.}}</pre>
 
=== Embedding Videos or Music ===
 
Use the [[mw:Extension:EmbedVideo|EmbedVideo]] extension to embed YouTube videos and such.


== Categories ==
== Categories ==
Line 158: Line 52:
{{#eimage:your_url_or_id|options|caption}}
{{#eimage:your_url_or_id|options|caption}}
</nowiki>}}
</nowiki>}}
== Table Design ==
You might find it useful to have table column coloring templates, which can highlight table cells with some text. [[wp:Category:Unified_table_cell_templates]]
See [[wp:Template:Yes#Templates|this guide]] for usage instructions. Note that templates that are not yet on the wiki need to be copied over to work.
== Citing and Archiving Sources ==
All URLs that you post should be archived, in case they ever go down or suffer link rot.
This handy form and API from our sister project provides an easy way to archive through all three known public URL scraping systems. This way when we see a URL, we will not lose it. http://archivenow.memestudies.org


== Design Models ==
== Design Models ==
Line 178: Line 60:
* [http://wiki.travellerrpg.com/Special:CargoTables Traveller RPG Wiki] - The cargo templates are heavily influenced by their implementation here.
* [http://wiki.travellerrpg.com/Special:CargoTables Traveller RPG Wiki] - The cargo templates are heavily influenced by their implementation here.
* Tanasinn.info - Their VIP quality templates are just plain hilarious.
* Tanasinn.info - Their VIP quality templates are just plain hilarious.
* Wikimedia - Lua templates and other complex templates are imported from the less complex Mediawiki instances at the Wikimedia Foundation.
** Templates from Wikipedia are generally avoided since they tend to be significantly more complex to provide all features for its broad userbase.
Please note that all contributions to Bibliotheca Anonoma are considered to be released under the Creative Commons Attribution-ShareAlike (see Bibliotheca Anonoma:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Templates used on this page: