Wiki - Making a new page from the subsection of an other, and update automatically - mediawiki

I need to turn a subsection of a wiki page into a new page on the wiki. The og page will stay untouched.
If the subsection of the og page is edited, how can I link the two pages to have the copied page be updated automatically?
I thought about turning the original pages into a portal with boxes like https://en.wikipedia.org/wiki/Main_Page but then I won't have the automatic content boxes, which are very important - so if you know how to still have them that would work great too!
If we can't do it on wiki, are there any other ways ? I am only decent at VBA...
Thank you for your answers!

You can use the Labeled Section Transclusion extension.

Use a template and edit/update it directly, not the pages in which it's embedded.

Related

In Jekyll, is it possible to hide a page on production

I want to know if it is possible to hide page(s) in Jekyll when pushed to production. For example, I have a page called crazy-toes that I'm currently developing. But have different edits/changes for other pages that need to be pushed live. Is there a way if someone types in their browser mysite.com/crazy-toes/ they go to a 404? I know there is the published variable for the Front Matters, but for multiple pages, it doesn't seem efficient.
You could store the page in Drafts.

How to make webpage article based?

I'm trying to make my webpage article based. By this I mean, for example, on the main page you have article 1 and article 2, but I want to make it so that you have to click on the heading which will lead you the page containing the whole article, on the main page you should only be able to see a preview of the articles ( with "see more...) if you know what I mean ? How are webpages like that set up (html/css) ?
Well, you can't dynamically create a "article based" page only using HTML and CSS. You should rely on a programming language for web development such as PHP or ASP.NET.
Alternatively you can write on your own all pages you need. You should manually write all the previews and create pages dedicated to the article itself. This is not a good way.

How can I input an anchor link into a section of a theme on Shopify?

I understand that inputting should mark an anchor on a given page but I don't know how to identify the template for sections on the home page. I know that I can modify the homepage in the template "index.liquid" but I don't know to edit the specific sections uploaded to the homepage. I have no coding experience so any guidance on how to identify the liquid file from which the section of a page can be modified will be a huge help.
Thanks!
First off, welcome to StackOverflow!
You're right that the index.liquid is going to be where the "homepage" lives, but all the content that is added to that will be added from the Customize editor.
As far as where to access the sections specifically... if your theme has sections enabled -- which I'll assume that it does -- there should be a folder labeled Sections with all possibilities available in your sidebar. It would be under Templates and above Snippets.
Then just look for the {section}.liquid that you have in question -- it might take some Sherlock Holmes investigation to find the specific one you want -- and add the anchor tag that you want to add.
Some examples of some names of liquid files that you'd find on the homepage are as follows:
featured-blog.liquid
featured-product.liquid
slideshow.liquid
If you have any further questions please feel free to ask and expand on what it is you need - but I just wanted to help point you in the right direction.
Especially if this is your first time reaching out for help on StackOverflow!

mediawiki: have TOC / page sections displayed in the sidebar

one might assume that this would be quite a common question, but I couldn't find any helpful answers yet, so I'll ask. I have to add that I find the whole structure of mediawiki and also their help pages very confusing.
I'm not expecting an exact answer, I'll also be grateful for resources that will help me understand just how mediawiki is structured.
OK, so:
I want to set up a Wiki for personal uses, and I'm trying to get the sidebar customized to my needs, especially I want to have the section headings (that would be level 2 to, say, 4 headings) of the page that is currently viewed displayed in the sidebar (as anchors, I guess).
In other words, have the table of contents not on the top of the body / content part, but on the left hand side in the sidebar.
I have somewhat edited MediaWiki:Sidebar and could get rid of some stuff that I don't really need, but I just can't find a way to get a table of contents there.
Do I need an extension or is this possible with MWs standard functions?
I've seen this, but I would prefer not to edit the html or js myself and rather just edit MediaWiki:Sidebar if that is possible at all.
Thanks for any answers.
There isn't a build in way to do that. I don't know any extension, which actually provides such a feature. But there is a JavaScript, written by a MediaWiki developer, which does, I assume, what you're looking for:
https://github.com/prtksxna/persistent-toc
It will show all ToC levels at the left side, if the first visible area of the page goes out of the viewport (and the top ToC box isn't visible anymore). It would maybe not a big deal to limit the ToC to level 2-4. You could install this script via your MediaWiki:Common.js, your user specific js (like I did for WMF [projects][1] or you create a new extension, which adds the script and the css to your page.
[1]: https://meta.wikimedia.org/wiki/User:Florianschmidtwelzow/global.js projects

Simple blog in CSS and HTML only

I have a simple html/css-only static website on which I would like to add a blog. Comments and RSS aren't necessary.
Now, how do I do that, without having to write all my entries in pure html?
My website consists of a vertical menu and an area to the right of it, where all the content goes on each page. I would like a blog inside that area on the blog page, so a blog on a separate page with its own layout is not what I'm looking for.
Googling this doesn't really help me much since the majority of the hits are on sites offering blog services.
Thanks in advance, I hope I'm not being too difficult. Please leave some feedback on my question if you think there are things I should have tried out before asking.
If i understand what you want the answer is that ist is not possible in pure html and css. With only Html and css you can not make a blog (if you dont want to edit the source everytime you write an entry and have to make a new file for each entry and so on).
You need some code (php or so) that is able to store and load the entrys into your site.
Html and css are not meant to make things working. With Html you define the elements so that they are structed and then with css you "style" your work. But for the task of a blog (i think you want an editor for the text on the site, the ability to edit, delete, more than one site and so on) you need something like php or aps.net that is able to "interact".