Jump to content

User talk:Qv1et: Difference between revisions

Add topic
From Solarpunk Wiki
Qv1et (talk | contribs)
m Add MediaWiki wiki link
Qv1et (talk | contribs)
Add section on re-using templates
 
Line 26: Line 26:


When you open the [[Special:Upload]] page and select a license you will see a link to the template for this license below the drop-down menu. When there is no license yet, the link will be red. You can click on the link to create the template. You can use the license templates on Wikipedia, the [[mediawikiwiki:Category:License_templates|MediaWiki wiki]] or other MediaWiki sites as a reference.
When you open the [[Special:Upload]] page and select a license you will see a link to the template for this license below the drop-down menu. When there is no license yet, the link will be red. You can click on the link to create the template. You can use the license templates on Wikipedia, the [[mediawikiwiki:Category:License_templates|MediaWiki wiki]] or other MediaWiki sites as a reference.
=== Re-using Templates and Page Code from Wikipedia ===
You can go to any Wikipedia page click on "Edit source" and copy the code your wiki page. However, the result will probably not end up looking identical to the Wikipedia page. The reason is that the code depends on templates and modules that might not be available on your wiki. It can be helpful to edit the Wikipedia page down to a minimum working example, removing all the code you don't need (your changes will not be published as long as you don't click on "Publish changes"). Then go through all of the templates that are used in the code (which can be identified by the double curly brackets) and create the ones that don't exist on your wiki yet.
Example: If the page code contains the string <code><nowiki>{{Round corners}}</nowiki></code> you need to create the page <your wiki URL>/wiki/Template:Round_corners. Just visit this URL and if the template does not exist yet, click on "Create source". Then use the code of the corresponding template from Wikipedia. This template might in turn also use other templates so you might need to repeat this process a couple of times.
If you are having trouble parsing and making sense of the Wikipedia source code, you can also use a language model to assist you, break the source code down and help with identifying sources of errors.

Latest revision as of 16:30, 12 October 2025

Spam page found[edit source]

Hey there, just wanted to let you know that United On Their Knees looks like a spam page.

Thanks, I have deleted it.--Qv1et (talk) 10:50, 24 July 2025 (UTC)

MediaWiki Basics[edit source]

I am new to MediaWiki, so here I am collecting useful things I am learning as I start using it. This might develop into an article for MediaWiki newcomers at some point. If you have good resources or little tips that people should know about how to use MediaWiki, feel free to add them.

Talk Pages[edit source]

This video (2:31) gives a short introduction to talk pages.

TLDW: Start a new thread on a talk/discussion page by clicking "Add topic" (top right). Give it a title (Subject). Reply to a post by putting your reply below it and using one more level of indentation than the post your are replying to. Indicate the level of indentation by putting the corresponding number of colon characters (:) in front of your reply. End each post with a signature by either clikcing the signature button (next to italics) or by manually writing --~~~~.

Linking[edit source]

You can link to a specific section of a page by adding #Section_name at the end of the URL (i. e. # followed by the name of the section with spaced replaced with underscores). Example: https://en.wikipedia.org/wiki/Wikipedia:Linking_to_Wikipedia#Linking_to_sections

Templates[edit source]

To find a list of all templates that are defined in the wiki, go to Special:AllPages and select the namespace "Template".

MediaWiki Advanced[edit source]

Creating Licenses[edit source]

Licenses are relevant in the context of images. When you upload a file, you can select a license for it from a drop-down menu. To add licenses that will appear in this menu, you have to add them to the list on the MediaWiki:Licenses page. There can be multiple levels of nesting in the list to group together licenses. As an example, see the licenses on Wikipedia.

When you open the Special:Upload page and select a license you will see a link to the template for this license below the drop-down menu. When there is no license yet, the link will be red. You can click on the link to create the template. You can use the license templates on Wikipedia, the MediaWiki wiki or other MediaWiki sites as a reference.

Re-using Templates and Page Code from Wikipedia[edit source]

You can go to any Wikipedia page click on "Edit source" and copy the code your wiki page. However, the result will probably not end up looking identical to the Wikipedia page. The reason is that the code depends on templates and modules that might not be available on your wiki. It can be helpful to edit the Wikipedia page down to a minimum working example, removing all the code you don't need (your changes will not be published as long as you don't click on "Publish changes"). Then go through all of the templates that are used in the code (which can be identified by the double curly brackets) and create the ones that don't exist on your wiki yet. Example: If the page code contains the string {{Round corners}} you need to create the page <your wiki URL>/wiki/Template:Round_corners. Just visit this URL and if the template does not exist yet, click on "Create source". Then use the code of the corresponding template from Wikipedia. This template might in turn also use other templates so you might need to repeat this process a couple of times. If you are having trouble parsing and making sense of the Wikipedia source code, you can also use a language model to assist you, break the source code down and help with identifying sources of errors.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.